Skip to content

Commit

Permalink
fix: metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
TrebledJ committed Nov 4, 2023
1 parent 2ec5c23 commit b0ccf04
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions _includes/utilities/metadata.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{% if excerpt %}
<meta name="description" content="{{ excerpt | mdInline | safe | striptags }}">
{% else %}
<meta name="description" content="{{ site.excerpt }}">
<meta name="description" content="{{ site.description }}">
{% endif %}

{# Compatibility #}
Expand Down Expand Up @@ -71,15 +71,15 @@
<meta content="website" property="og:type"/>
{% endif %}
{% if excerpt %}
<meta content="{{ excerpt | mdInline | striptags }}" property="og:excerpt"/>
<meta content="{{ excerpt | mdInline | striptags }}" property="og:description"/>
{% else %}
<meta content="{{ site.description }}" property="og:excerpt"/>
<meta content="{{ site.description }}" property="og:description"/>
{% endif %}
{% if page.url %}
<meta content="{{ site.url }}{{ page.url }}" property="og:url"/>
{% endif %}
{% if thumbnail %}
<meta content="{{ site.url }}{{ thumbnail | resolveImageOutputPath(page) }}" property="og:image"/>
{% if thumbnail_src %}
<meta content="{{ site.url }}{{ thumbnail_src | resolveImageOutputPath(page) }}" property="og:image"/>
{% endif %}
{% if page.date %}
<meta content="{{ page.date | dateISO }}" property="article:published_time"/>
Expand Down

0 comments on commit b0ccf04

Please sign in to comment.