Skip to content

Commit 1f3abde

Browse files
committed
Add description and full preview
1 parent a2d5bc3 commit 1f3abde

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/overrides/main.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,19 @@
1212
<meta property="og:title" content="{{ config.site_name }}}" />
1313
{% endif %}
1414

15+
{% if page.meta and page.meta.description %}
16+
<meta property="og:description" content="{{ page.meta.description }}" />
17+
{% elif config.site_description %}
18+
<meta property="og:description" content="{{ config.site_description }}" />
19+
{% endif %}
20+
1521
<meta property="og:type" content="website" />
1622
{% if page.canonical_url %}
1723
<meta property="og:url" content="{{ page.canonical_url }}" />
1824

1925
{% endif %}
2026

21-
<meta property="og:image" content="{{ 'img/preview.jpg' | url }}" />
27+
<meta property="og:image" content="{{ config.site_url }}img/preview.jpg" />
2228

2329
{% endblock %}
2430

0 commit comments

Comments
 (0)