Preload fewer fonts, tweak markup
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
f1bd94338c
commit
490f46fde9
|
@ -4,11 +4,11 @@
|
||||||
<span>also on
|
<span>also on
|
||||||
{%- for me in config.extra.me_links -%}
|
{%- for me in config.extra.me_links -%}
|
||||||
{%- if loop.last -%}
|
{%- if loop.last -%}
|
||||||
<span> and </span>
|
 and 
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
<a href="{{ me.url | safe }}" target="_blank" rel="me noopener noreferrer">{{ me.name }}</a>
|
<a href="{{ me.url | safe }}" target="_blank" rel="me noopener noreferrer">{{ me.name }}</a>
|
||||||
{%- if not loop.last -%},{%- else %}
|
{%- if not loop.last -%},{%- else %}
|
||||||
</span>
|
</span>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{% endfor -%}
|
{% endfor %}
|
||||||
{% endblock main_content %}
|
{% endblock main_content %}
|
|
@ -10,11 +10,9 @@
|
||||||
<link rel="icon" type="image/{{ favicon_ext }}" href="{{ get_url(path=config.extra.favicon, cachebust=true) }}" />
|
<link rel="icon" type="image/{{ favicon_ext }}" href="{{ get_url(path=config.extra.favicon, cachebust=true) }}" />
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{% for font in config.extra.fonts -%}
|
{% for font in config.extra.fonts -%}
|
||||||
{% for style in ["Bold", "BoldItalic", "Italic", "Regular"] -%}
|
{% set font_path = '/font/' ~ font.path ~ '/' ~ font.name ~ '-Regular.woff2' %}
|
||||||
{% set font_path = '/font/' ~ font.path ~ '/' ~ font.name ~ '-' ~ style ~ '.woff2' %}
|
|
||||||
<link rel="preload" href="{{ get_url(path=font_path, trailing_slash=false) }}" as="font" type="font/woff2" crossorigin>
|
<link rel="preload" href="{{ get_url(path=font_path, trailing_slash=false) }}" as="font" type="font/woff2" crossorigin>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endfor %}
|
|
||||||
<link href="{{ get_url(path='style/fonts.css', cachebust=true) }}" rel="stylesheet preload" as="style" />
|
<link href="{{ get_url(path='style/fonts.css', cachebust=true) }}" rel="stylesheet preload" as="style" />
|
||||||
{# Atom #}
|
{# Atom #}
|
||||||
{%- block rss -%}
|
{%- block rss -%}
|
||||||
|
@ -51,10 +49,10 @@
|
||||||
<meta property="og:image" content="{{ get_url(path=current_path) }}/hero.webp">
|
<meta property="og:image" content="{{ get_url(path=current_path) }}/hero.webp">
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{#- Twitter #}
|
{#- Twitter #}
|
||||||
<meta property="twitter:card" content="summary_large_image">
|
|
||||||
<meta property="twitter:title" content="{{ current_title }}">
|
<meta property="twitter:title" content="{{ current_title }}">
|
||||||
<meta property="twitter:description" content="{{ current_description }}">
|
<meta property="twitter:description" content="{{ current_description }}">
|
||||||
{%- if hero -%}
|
{%- if hero -%}
|
||||||
<meta property="twitter:image" content="{{ get_url(path=current_path) }}/hero.webp">
|
<meta property="twitter:image" content="{{ get_url(path=current_path) }}/hero.webp">
|
||||||
|
<meta property="twitter:card" content="summary_large_image">
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in New Issue