Fix social media metadata
This commit is contained in:
@@ -21,13 +21,13 @@
|
||||
<meta property="og:url" content="{{ site.url | absolute_url }}" />
|
||||
{% endif %}
|
||||
<meta property="og:site_name" content="{{ site.title }}" />
|
||||
<meta property="og:title" content="{{ page.autopages.display_name | default: page.autopage.display_name | default: page.title | default: site.title | strip_html }}" />
|
||||
<meta property="og:title" content="{{ page.autopages.display_name | default: page.autopage.display_name | default: page.title | default: site.title | strip_html | xml_escape }}" />
|
||||
{% if site.xaymar.opengraph.excerpt.enabled == true %}
|
||||
<meta name="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 }}" />
|
||||
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncatewords: site.xaymar.opengraph.excerpt.length | xml_escape }}" />
|
||||
<meta property="og:description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncatewords: site.xaymar.opengraph.excerpt.length | xml_escape }}" />
|
||||
{% else %}
|
||||
<meta name="description" content="{{ site.description | strip_html }}" />
|
||||
<meta property="og:description" content="{{ site.description | strip_html }}" />
|
||||
<meta name="description" content="{{ site.description | strip_html | xml_escape }}" />
|
||||
<meta property="og:description" content="{{ site.description | strip_html | xml_escape }}" />
|
||||
{% endif %}
|
||||
<meta property="og:type" content="{{ page.opengraph.type | default: "website" }}" />
|
||||
{% if page.opengraph.image != nil %}
|
||||
@@ -43,9 +43,9 @@
|
||||
{% endif %}
|
||||
<meta property="article:published_time" content="{{ page.date | default: site.time | date_to_xmlschema }}" />
|
||||
{% if page.title == nil %}
|
||||
<title>{{ site.title }} - {{ site.tagline }} </title>
|
||||
<title>{{ site.title | xml_escape }} - {{ site.tagline | xml_escape }} </title>
|
||||
{% else %}
|
||||
<title>{{ page.autopages.display_name | default: page.autopage.display_name | default: page.title }} | {{ site.title }} - {{ site.tagline }} </title>
|
||||
<title>{{ page.autopages.display_name | default: page.autopage.display_name | default: page.title | xml_escape }} | {{ site.title | xml_escape }} - {{ site.tagline | xml_escape }} </title>
|
||||
{% endif %}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" href="{{ site.xaymar.data.logo | absolute_url }}">
|
||||
|
||||
Reference in New Issue
Block a user