Skip to content

Commit f8a90fb

Browse files
committed
Improved open graph metadata in blog index and blog articles
1 parent 22d18a6 commit f8a90fb

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/_includes/article.njk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ eleventyComputed:
99
"og:type": article
1010
"og:publish_date": "{{ date | date }}"
1111
"og:type": article"
12+
og_locale: "{{ site.locale | safe }}"
13+
fb_app_id: "{{ site.facebookAppId }}"
1214
---
1315
{% from "analytics.njk" import track with context %}
1416

src/blog/blog.html.njk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ eleventyComputed:
55
og_image: "{% generateShareImage site.blogTitle %}"
66
title: "{{ site.blogTitle }}"
77
description: "{{ site.blogDescription }}"
8+
eleventyComputed:
9+
og_type:
10+
"og:type": website
11+
og_locale: "{{ site.locale | safe }}"
12+
fb_app_id: "{{ site.facebookAppId }}"
813
---
914
<div class="blog">
1015
<section class="hero is-medium bg-green bd-rd">

0 commit comments

Comments
 (0)