Added meta tags to posts
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -6,6 +6,29 @@
|
||||
<meta name="description"
|
||||
content='{% if page.excerpt %}{{ page.excerpt | strip_html | strip | truncatewords: 75 }}{% elsif page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}'>
|
||||
|
||||
<meta property="og:site_name" content="{{ site.title }}">
|
||||
{% if page.title %}
|
||||
<meta property="og:title" content="{{ page.title }}">
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:description" content="{{ page.excerpt | strip_html }}"/>
|
||||
{% else %}
|
||||
<meta property="og:title" content="{{ site.title }}">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:description" content="{{ site.description }}">
|
||||
{% endif %}
|
||||
{% if page.date %}
|
||||
<meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}">
|
||||
{% endif %}
|
||||
<meta property="og:url" content="{{ site.url }}{{ page.url }}" />
|
||||
{% if page.tags %}
|
||||
<meta itemprop="keywords" content="{{ page.tags | join: ',' }}" />
|
||||
{% for tag in page.tags %}
|
||||
<meta property="article:tag" content="{{ tag }}">
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if author %}
|
||||
<meta property="article:author" content="{{ author.name }}" />
|
||||
{% endif %}
|
||||
{% asset main.css %}
|
||||
{% asset fa-svg-with-js.css %}
|
||||
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
||||
|
||||
Reference in New Issue
Block a user