Skip to content

Commit a2d5bc3

Browse files
committed
Add preview
1 parent 9b6a724 commit a2d5bc3

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

docs/img/preview.jpg

37.6 KB
Loading

docs/overrides/main.html

+22
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
{% extends "base.html" %}
22

3+
<!-- Meta tags -->
4+
{% block site_meta %}
5+
{{ super() }}
6+
7+
{% if page.meta and page.meta.title %}
8+
<meta property="og:title" content="{{ page.meta.title }} - {{ config.site_name }}" />
9+
{% elif page.title and not page.is_homepage %}
10+
<meta property="og:title" content="{{ page.title | striptags }} - {{ config.site_name }}" />
11+
{% else %}
12+
<meta property="og:title" content="{{ config.site_name }}}" />
13+
{% endif %}
14+
15+
<meta property="og:type" content="website" />
16+
{% if page.canonical_url %}
17+
<meta property="og:url" content="{{ page.canonical_url }}" />
18+
19+
{% endif %}
20+
21+
<meta property="og:image" content="{{ 'img/preview.jpg' | url }}" />
22+
23+
{% endblock %}
24+
325
{% block scripts %}
426
<!-- Add scripts that need to run before here -->
527
{{ super() }}

0 commit comments

Comments
 (0)