Update Beautiful Jekyll to the latest commit version
This commit is contained in:
parent
55804453a2
commit
484c65f982
33 changed files with 983 additions and 408 deletions
|
@ -2,7 +2,7 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
{% capture title %}
|
||||
{% capture pagetitle %}
|
||||
{%- if page.share-title -%}
|
||||
{{ page.share-title | strip_html | xml_escape }}
|
||||
{%- elsif page.title -%}
|
||||
|
@ -12,6 +12,14 @@
|
|||
{%- endif -%}
|
||||
{% endcapture %}
|
||||
|
||||
{% capture title %}
|
||||
{%- if site.title and site.title-on-all-pages and (site.title != pagetitle) -%}
|
||||
{{ pagetitle }} | {{ site.title }}
|
||||
{%- else -%}
|
||||
{{ pagetitle }}
|
||||
{%- endif -%}
|
||||
{% endcapture %}
|
||||
|
||||
{% capture description %}
|
||||
{%- if page.share-description -%}
|
||||
{{ page.share-description | strip_html | xml_escape }}
|
||||
|
@ -25,8 +33,15 @@
|
|||
|
||||
<title>{{ title }}</title>
|
||||
|
||||
{% if site.author %}
|
||||
<meta name="author" content="{{ site.author }}">
|
||||
{% capture author %}
|
||||
{%- if page.author -%}
|
||||
{{ page.author | strip_html }}
|
||||
{%- elsif site.author -%}
|
||||
{{ site.author }}
|
||||
{%- endif -%}
|
||||
{% endcapture %}
|
||||
{% if author != "" %}
|
||||
<meta name="author" content="{{ author }}">
|
||||
{% endif %}
|
||||
|
||||
<meta name="description" content="{{ description }}">
|
||||
|
@ -39,11 +54,15 @@
|
|||
<meta name="keywords" content="{{ site.keywords }}">
|
||||
{% endif %}
|
||||
|
||||
{% if site.rss-description %}
|
||||
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ '/feed.xml' | absolute_url }}">
|
||||
{% endif %}
|
||||
|
||||
{% include gtag.html %}
|
||||
{% include gtm_head.html %}
|
||||
{% include google_analytics.html %}
|
||||
{% include cloudflare_analytics.html %}
|
||||
{% include mathjax.html %}
|
||||
|
||||
{% if layout.common-ext-css %}
|
||||
{% for css in layout.common-ext-css %}
|
||||
|
@ -109,7 +128,9 @@
|
|||
|
||||
{% if page.id %}
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:article:author" content="{{ site.author }}">
|
||||
{% if author != "" %}
|
||||
<meta property="og:article:author" content="{{ author }}">
|
||||
{% endif %}
|
||||
<meta property="og:article:published_time" content="{{ page.date | date_to_xmlschema }}">
|
||||
<meta property="og:url" content="{{ page.url | absolute_url }}">
|
||||
<link rel="canonical" href="{{ page.url | absolute_url }}">
|
||||
|
@ -140,6 +161,11 @@
|
|||
<link rel="stylesheet" href="{{ "/assets/css/staticman.css" | relative_url }}">
|
||||
{% endif %}
|
||||
|
||||
{% assign favicon_exists = site.static_files | where: "path", "/favicon.ico" | size %}
|
||||
{% if favicon_exists == 1 %}
|
||||
<link rel="icon" href="{{ '/favicon.ico' | relative_url }}" />
|
||||
{% endif %}
|
||||
|
||||
{% if page.head-extra %}
|
||||
{% for file in page.head-extra %}
|
||||
{% include {{ file }} %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue