Skip to content

Commit a14fdeb

Browse files
committed
added tags to header for articles. resolves #169
1 parent 550964e commit a14fdeb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/_layouts/base.html

+6-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@
2323
<meta name="url" property="og:url" content="{{ page_url | url }}" />
2424
<meta name="description" property="og:description" content="{{ description }}" />
2525
{% if page_type == "article" %}
26-
<meta name="author" property="article:author" content="{{ site.author }}" />
27-
<meta name="published_time" property="article:published_time" content="{{ date }}" />
28-
<meta name="publish_time" property="article:publish_date" content="{{ date }}" />
26+
<meta name="author" property="og:article:author" content="{{ site.author }}" />
27+
<meta name="published_time" property="og:article:published_time" content="{{ date }}" />
28+
<meta name="publish_time" property="og:article:publish_date" content="{{ date }}" />
29+
{% for tag in tags %}
30+
<meta name="tag" property="og:article:tag" content="{{ tag }}" />
31+
{% endfor %}
2932
{% endif %}
3033
{% if image %}
3134
{% capture page_image %}

0 commit comments

Comments
 (0)