Skip to content

Commit 1d4daac

Browse files
authored
Merge pull request pycontw#735 from mattwang44/add-fb-og-tag
Add facebook open graph tags for description & image
2 parents aec7661 + 0fe0d41 commit 1d4daac

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
31.3 KB
Loading

src/templates/pycontw-2020/base.html

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
<link rel="icon" type="image/png" href="{% static 'pycontw-2020/assets/favicon/favicon-32x32.png' %}" sizes="32x32">
2121
<link rel="icon" type="image/png" href="{% static 'pycontw-2020/assets/favicon/favicon-192x192.png' %}" sizes="192x192">
2222

23+
{% block meta_og %}
24+
<meta property="og:description" content="{% block meta_description %}{% endblock meta_description %}">
25+
<meta property="og:image" content="{{ request.scheme }}://{{ request.get_host }}{% static 'pycontw-2020/assets/og-image.png' %}">
26+
{% endblock meta_og %}
27+
2328
<link rel="stylesheet" href="https://fonts.googleapis.com/earlyaccess/notosanstc.css">
2429
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Quicksand:300,400|Raleway:300,400|Philosopher|Quicksand&display=swap">
2530
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.css">

0 commit comments

Comments
 (0)