From ad6b0f7c415780dceac144a40475778acb303a36 Mon Sep 17 00:00:00 2001 From: Robert Fox Date: Mon, 25 Jul 2022 12:16:08 +0800 Subject: [PATCH] Add param for "noindex" --- exampleSite/config.toml | 1 + layouts/partials/head.html | 1 + 2 files changed, 2 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index a307cae..f47369b 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -15,6 +15,7 @@ ignoreErrors = ["error-remote-getjson"] sectionPagesMenu = "main" [params] +noindex = false [params.theme] palette = "gruvbox-dark" diff --git a/layouts/partials/head.html b/layouts/partials/head.html index ce6930e..3f67415 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -3,6 +3,7 @@ +{{ if .Site.Params.noindex }} {{ end }}