Skip to content

Commit 7dc52ed

Browse files
committed
og tags
1 parent bf854ac commit 7dc52ed

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

themes/usips/templates/base.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
1111
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
1212
<link rel="manifest" href="/site.webmanifest">
13+
14+
{% block extra_head %}{% endblock %}
1315
</head>
1416

1517
<body>

themes/usips/templates/blog-post.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
{% block title %}{{ page.title }} | {{ config.title }}{% endblock %}
44

5+
{% block extra_head %}
6+
<meta property="og:title" content="{{ page.title }} | {{ config.title }}">
7+
<meta property="og:type" content="article">
8+
<meta property="og:url" content="{{ current_url | safe }}">
9+
{% if page.extra.blog_image %}
10+
<meta property="og:image" content="{{ get_url(path=page.extra.blog_image) }}">
11+
{% endif %}
12+
{% endblock %}
13+
14+
515
{% block content %}
616
<article class="blog-post container">
717
{% if page.extra.blog_image %}

0 commit comments

Comments
 (0)