From 8ab675d87d48d0ea18e039bda135375611f7bca3 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 31 May 2024 06:12:36 +0300 Subject: [PATCH] Allow overriding robots tag per-site & per-page --- _config.yml | 2 ++ _includes/head.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 215cf6c..14a3771 100644 --- a/_config.yml +++ b/_config.yml @@ -12,6 +12,8 @@ baseurl: "" # the subpath of your site, e.g. /blog/ # At least it's just a static page. #url: "https://www.aminda.eu" # the base hostname & protocol for your site url: "https://aminda.eu" # the base hostname & protocol for your site +# Default meta-robots tags, can be set per-page +robots: noai, nofollow, noindex codeberg_username: Mikaela github_username: Mikaela diff --git a/_includes/head.html b/_includes/head.html index a499fef..6159934 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -2,7 +2,7 @@ - + {% if page.title %}{{ page.title }} ~~ {{ site.title | strip_html }}{% else %}{{ site.title }}{% endif %}