Add description metadata
This commit is contained in:
@@ -14,9 +14,7 @@
|
||||
<meta http-equiv="X-WebKit-CSP" content="{{ csp }}">
|
||||
{% endcomment %}
|
||||
<meta charset="utf-8" />
|
||||
{% comment %}
|
||||
Support for OpenGraph
|
||||
{% endcomment %}
|
||||
{% comment %} Support for OpenGraph {% endcomment %}
|
||||
{% if page.url != nil %}
|
||||
<meta property="og:url" content="{{ page.url | absolute_url }}" />
|
||||
{% else %}
|
||||
@@ -25,8 +23,10 @@ Support for OpenGraph
|
||||
<meta property="og:site_name" content="{{ site.title }}" />
|
||||
<meta property="og:title" content="{{ page.title | default: site.title | strip_html }}" />
|
||||
{% if site.xaymar.opengraph.excerpt.enabled == true %}
|
||||
<meta property="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncatewords: site.xaymar.opengraph.excerpt.length }}" />
|
||||
<meta property="og:description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncatewords: site.xaymar.opengraph.excerpt.length }}" />
|
||||
{% else %}
|
||||
<meta property="description" content="{{ site.description | strip_html }}" />
|
||||
<meta property="og:description" content="{{ site.description | strip_html }}" />
|
||||
{% endif %}
|
||||
<meta property="og:type" content="{{ page.opengraph.type | default: "website" }}" />
|
||||
|
||||
Reference in New Issue
Block a user