From 2fbd3f949f806d6446d81afb9672c95f676db6af Mon Sep 17 00:00:00 2001 From: Greenscreener Date: Thu, 15 Oct 2020 12:20:54 +0200 Subject: [PATCH] Added programmatic switching of online mode to config. --- config.json | 7 +++++++ themes/patek/layouts/index.html | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/config.json b/config.json index 6807dc8..cdd4c53 100644 --- a/config.json +++ b/config.json @@ -12,6 +12,13 @@ "languageName": "English" } }, + "params": { + "onlineOnly": { + "active": true, + "link": "/blog/covidbreak-part2", + "displayText":"Online mode" + } + }, "taxonomies": { "tag": "tags", "project": "projects", diff --git a/themes/patek/layouts/index.html b/themes/patek/layouts/index.html index 417ab45..53cc19a 100644 --- a/themes/patek/layouts/index.html +++ b/themes/patek/layouts/index.html @@ -29,9 +29,11 @@
Pátek + {{ if .Site.Params.onlineOnly.active }} + {{ end }}