Add OpenGraph support

Add the necessary OpenGraph meta tags to all pages.

Fix https://github.com/pawroman/zola-theme-terminimal/issues/3
This commit is contained in:
Heitor Pascoal de Bittencourt 2023-10-31 18:03:20 -03:00
parent a9969735db
commit 6af6b597fa
No known key found for this signature in database
GPG key ID: 2DD9C1566E2774A2
5 changed files with 95 additions and 2 deletions

View file

@ -11,6 +11,8 @@
<title>{%- block title %}{{ config.title }}{% endblock title -%}</title>
{{ head_macros::head(config=config) }}
{%- block open_graph %}{{ head_macros::open_graph(config=config) }}{% endblock open_graph -%}
{%- if config.generate_feed %}
{%- if "rss" in config.feed_filename %}
{% set feed_type = 'rss+xml' %}