Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devs may now exclude & customize Google fonts & icons #7

Open
wants to merge 2 commits into
base: production
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions header-meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,27 @@
{% endif %}
<meta property="og:type" content="{{ page.type | default: site.type | default: 'website' }}" />
<meta property="og:url" content="{{ site.url }}{{ page.url }}" />
{%- if site.author -%}
{%- if site.author %}
<meta name="author" content="{{ site.author.name }}" />
{%- if site.author.first-name %}
<meta property="profile:first_name" content="{{ site.author.first-name }}" />
{%- endif %}
{%- if site.author.last-name %}
<meta property="profile:last_name" content="{{ site.author.last-name }}" />
{%- endif %}
{%- if site.social.default-username -%}
{%- endif %}
{%- if site.social.default-username %}
<meta property="profile:username" content="{{ site.social.default-username }}" />
{%- endif %}

<link rel="apple-touch-icon" type="image/png" href="{{ site.url }}{{ site.baseurl | default: '' }}/_img/Icon%201.1.1%20(1024p).png" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"/>
<link rel="shortcut icon" type="image/x-icon" href="{{ site.url }}{{ site.baseurl | default: '' }}/favicon.ico"/>
<link rel="shortcut icon" type="image/icns" href="/favicon.icns"/>
<link rel="shortcut icon" type="image/icns" href="{{ site.url }}{{ site.baseurl | default: '' }}/favicon.icns"/>
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
<link rel="shortcut icon" type="image/png" href="{{ site.url }}{{ site.baseurl | default: '' }}/favicon.png"/>

<meta name="twitter:card" content="summary_large_image" /><!-- Tell twitter that this link can be presented as a large image with a summary -->
<meta name="msapplication-TileImage" content="/images/MS-Tile-Image.png" /><!-- When pinned as a tile for Windows' Start, this is the image -->
<meta property="og:image" content="{{ page.social-preview-image-url | default: page.hero-image | default: site.social-preview-image-url | default: '/images/Social-Preview.png' }}" /><!-- Image for sharing on social networks -->
Expand Down
37 changes: 28 additions & 9 deletions header-stylesheets.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
<link rel="stylesheet" type="text/css" id="flex" href="https://stylesheets.bhstudios.org/assets/v2/structure/flex.css" />
<link rel="stylesheet" type="text/css" id="neon-tables" href="https://stylesheets.bhstudios.org/assets/v2/neon/neon-tables.css" />
<link rel="stylesheet" type="text/css" id="stylesheet-print" href="https://stylesheets.bhstudios.org/assets/v2/basics/print.css" />
<link rel="stylesheet" type="text/css" id="framework-stylesheet" href="https://stylesheets.bhstudios.org/assets/v2/neon/neon-renderer.css" />
<link rel="stylesheet" type="text/css" id="theme-stylesheet" href="{{ site.default-neon-theme-url | default: 'https://stylesheets.bhstudios.org/assets/v2/neon/neon-water.css' }}" />
<link rel="stylesheet" type="text/css" id="material-icons" href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Sharp|Material+Icons+Round|Material+Icons+Two+Tone" />
<link rel="stylesheet" type="text/css" id="google-fonts" href="https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700|Questrial|ZCOOL+QingKe+HuangYou|Oswald:600&amp;subset=chinese-simplified,korean,latin-ext,vietnamese,cyrillic,cyrillic-ext,greek,greek-ext">
<link rel="stylesheet" type="text/css" id="site-styles" href="{{ site.baseurl }}/site.css" />
{%- assign exclude-google-icons = include.exclude-google-icons | default: site.style.google-icons.exclude | default: false -%}
{%- assign exclude-google-fonts = include.exclude-google-fonts | default: site.style.google-fonts.exclude | default: false -%}
{%- assign google-fonts-list = include.google-fonts-plaintext-font-list | default: site.style.google-fonts.plaintext-font-list -%}



<link rel="stylesheet" type="text/css" id="flex" href="https://stylesheets.bhstudios.org/assets/v2/structure/flex.css" />
<link rel="stylesheet" type="text/css" id="neon-tables" href="https://stylesheets.bhstudios.org/assets/v2/neon/neon-tables.css" />
<link rel="stylesheet" type="text/css" id="stylesheet-print" href="https://stylesheets.bhstudios.org/assets/v2/basics/print.css" />
<link rel="stylesheet" type="text/css" id="framework-stylesheet" href="https://stylesheets.bhstudios.org/assets/v2/neon/neon-renderer.css" />
<link rel="stylesheet" type="text/css" id="theme-stylesheet" href="{{ site.default-neon-theme-url | default: 'https://stylesheets.bhstudios.org/assets/v2/neon/neon-water.css' }}" />

{%- unless exclude-google-icons %}
<link rel="stylesheet" type="text/css" id="material-icons" href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Sharp|Material+Icons+Round|Material+Icons+Two+Tone" />
{%- endunless -%}

{%- unless exclude-google-fonts %}
<link rel="stylesheet" type="text/css" id="google-fonts" href="https://fonts.googleapis.com/css?family={{ google-fonts-list | default: 'Roboto:100,100i,300,300i,400,400i,500,500i,700|Questrial|ZCOOL+QingKe+HuangYou|Oswald:600' }}&amp;subset=chinese-simplified,korean,latin-ext,vietnamese,cyrillic,cyrillic-ext,greek,greek-ext" />
{%- endunless %}

<link rel="stylesheet" type="text/css" id="site-styles" href="{{ site.baseurl }}/site.css" />

{%- for stylesheet in site.site-specific-stylesheets %}
<link rel="stylesheet" type="text/css" class="site-specific-stylesheet" href="{{ stylesheet }}" />
{%- endfor %}


{%- for stylesheet in page.page-specific-stylesheets %}
<link rel="stylesheet" type="text/css" href="{{ stylesheet }}" />
<link rel="stylesheet" type="text/css" class="page-specific-stylesheet" href="{{ stylesheet }}" />
{%- endfor %}