Skip to content

Commit

Permalink
Add Open Graph description and article published time
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKvalheim committed Feb 23, 2024
1 parent 9757d83 commit 47b603d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<meta property="og:type" content="{{ page.open_graph_type | default: 'website' }}" />
<meta property="og:title" content="{{ page.title }}" />
<meta property="og:image" content="{{ page.image | default: site.image | absolute_url }}" />
{% if page.description %}<meta property="og:description" content="{{ page.description }}" />{% endif %}
{% if page.open_graph_type == 'article' %}<meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}" />{% endif %}

<link rel="shortcut icon" href="/icons/favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="/icons/favicon-16x16.png">
Expand Down

0 comments on commit 47b603d

Please sign in to comment.