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/assets/css/main.scss b/themes/patek/assets/css/main.scss index 9f5a533..3c7647f 100644 --- a/themes/patek/assets/css/main.scss +++ b/themes/patek/assets/css/main.scss @@ -314,3 +314,18 @@ patek-logo { color: #737373 !important; } // /Custom styles + +.patek-logo-top { + position: relative; +} +.patek-logo-top .online-notice { + white-space: nowrap; + position: absolute; + display: inline-block; + font-size: 2rem; + padding: 0px 5px; + border-radius: 3px; + background-color: red; + font-family: 'Fira Code', monospace; + transform: rotate(-27deg) translate(-190px, -50px); +} diff --git a/themes/patek/layouts/index.html b/themes/patek/layouts/index.html index 8306476..c8621a1 100644 --- a/themes/patek/layouts/index.html +++ b/themes/patek/layouts/index.html @@ -5,6 +5,11 @@
Pátek + {{ if .Site.Params.onlineOnly.active }} + + {{ end }}