From 0b8d8f16dbc9e1234e4a0c57610a971165865905 Mon Sep 17 00:00:00 2001 From: samaradel Date: Sun, 17 Apr 2022 15:25:22 +0200 Subject: [PATCH] Add opengraph --- templates/partials/head.html | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/templates/partials/head.html b/templates/partials/head.html index 08220b535..a0216f901 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -5,12 +5,36 @@ {% set zolaVer = '0.13.0' %} - {% block title %} {% if current_path == '/' %} {{ config.title }} - + + + {%if section.title%} + {{ section.title }} + + {%endif%} + {%if page.title%} + {{ page.title }} + + {%endif%} + {%if section.extra.imgPath %} + + + {%endif%} + {%if page.extra.imgPath%} + + + {%endif%} + {%if section.description%} + + + {%endif%} + {%if page.description%} + + + {%endif%} {% else %} {% if section.title %}{{ section.title }} • {% endif %}{% if page.title %}{{ page.title }} • {% endif %}{{ config.title }}