Skip to content

Commit

Permalink
Add Open Graph Image Meta Tag (yousinix#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcaneIRE authored May 22, 2022
1 parent b5fc4ae commit a8a76a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

{% assign title = page.title | default: site.title | escape %}
{% assign description = page.description | default: site.description | strip_html | strip_newlines | truncate: 160 %}
{% assign image = page.image | default: site.author.image %}

{% if page.name and page.collection == 'projects' %}
{% assign title = page.name | escape %}
Expand All @@ -14,6 +15,7 @@
<meta property="og:type" content="website">
<meta property="og:title" content="{{ title }}">
<meta property="og:description" content="{{ description }}">
<meta property="og:image" content="{{ image }}">

<title>{{ title }}</title>
<meta name="description" content="{{ description }}">
Expand Down

0 comments on commit a8a76a5

Please sign in to comment.