From fdf89765702adc962749dd6cbb693a6e5fb38f7c Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 14 May 2023 13:47:52 +0100 Subject: [PATCH] Add OpenGraph tags --- _en/index.md | 1 + _it/index.md | 1 + _layouts/base.html | 17 ++++++++++++++--- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/_en/index.md b/_en/index.md index ce9555c..5de50e0 100644 --- a/_en/index.md +++ b/_en/index.md @@ -1,6 +1,7 @@ --- title: Front Cover layout: default +description: An easy guide to learn how to create mods for Minetest homepage: true no_header: true root: .. diff --git a/_it/index.md b/_it/index.md index 5074fbd..09575f2 100644 --- a/_it/index.md +++ b/_it/index.md @@ -1,5 +1,6 @@ --- title: Copertina +description: An easy guide to learn how to create mods for Minetest layout: default homepage: true no_header: true diff --git a/_layouts/base.html b/_layouts/base.html index 59a6529..59fa679 100644 --- a/_layouts/base.html +++ b/_layouts/base.html @@ -16,12 +16,19 @@ layout: compress {% if page.homepage %}{% else %}{{ page.title }} - {% endif %}Minetest Modding Book - - - + + + + {% if page.description %} + + + {% endif %} + {% if page.image %} + + {% endif %} {% assign oldSegment = "/" | append: language | append: "/" %} {% for other_lang in site.data.languages %} @@ -33,6 +40,10 @@ layout: compress {% endunless %} {% endfor %} + {% if page.noindex %} + + {% endif %} +