Skip to content

Commit e5f53ac

Browse files
feat: Add opengraph tags to base html template (#52)
* feat: Add opengraph tags to base html template * feat: add image link in og_image metatag
1 parent 3d0a092 commit e5f53ac

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

templates/portal/base.html

+12-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@
1010
{% block head_title %}
1111
{% endblock head_title %}
1212
</title>
13+
14+
<meta property="og:title" content="{% block og_title %}PyLadiesCon Portal{% endblock og_title %}" />
15+
<meta property="og:description" content="{% block og_description %}PyLadiesCon volunteer portal and conference management system{% endblock og_description %}" />
16+
<meta property="og:type" content="{% block og_type %}website{% endblock og_type %}" />
17+
<meta property="og:url" content="{% block og_url %}{{ request.build_absolute_uri }}{% endblock og_url %}" />
18+
<meta property="og:image" content="{% block og_image %}https://conference.pyladies.com/img/banner.png{% endblock og_image %}" />
19+
<meta property="og:image:alt" content="{% block og_image_alt %}PyLadiesCon logo{% endblock og_image_alt %}">
20+
<meta property="og:site_name" content="PyLadiesCon Portal" />
21+
<meta property="og:locale" content="en_US">
22+
23+
1324
{% block extra_head %}
1425
<script src="https://kit.fontawesome.com/8774ceef9d.js" crossorigin="anonymous"></script>
1526
{% endblock extra_head %}
@@ -93,4 +104,4 @@
93104
{% endblock %}
94105
</div>
95106
</body>
96-
</html>
107+
</html>

0 commit comments

Comments
 (0)