From f53d9214aa62ecb99f460b40dcf44568a3db4339 Mon Sep 17 00:00:00 2001 From: tdro Date: Sun, 8 May 2022 03:08:47 -0400 Subject: themes/default/layouts/partials/head: Add default home link --- config.json | 1 + config.toml | 1 + config.yaml | 1 + themes/default/layouts/partials/head.html | 5 +++++ 4 files changed, 8 insertions(+) diff --git a/config.json b/config.json index 94656ff..27ae6df 100644 --- a/config.json +++ b/config.json @@ -10,6 +10,7 @@ "enableRobotsTXT": true, "author": { "default": { + "home": "canory", "user": "default", "webring": "canory", "picturegallery": "canory" diff --git a/config.toml b/config.toml index 548178b..d3592d5 100644 --- a/config.toml +++ b/config.toml @@ -11,6 +11,7 @@ enableRobotsTXT = true footer = "A Micro Blog\n" [author.default] + home = "canory" user = "default" webring = "canory" picturegallery = "canory" diff --git a/config.yaml b/config.yaml index a3eee9d..9eb06d4 100644 --- a/config.yaml +++ b/config.yaml @@ -12,6 +12,7 @@ enableRobotsTXT: true author: default: + home: canory user: default webring: canory picturegallery: canory diff --git a/themes/default/layouts/partials/head.html b/themes/default/layouts/partials/head.html index da9c04a..33c1a6a 100644 --- a/themes/default/layouts/partials/head.html +++ b/themes/default/layouts/partials/head.html @@ -36,6 +36,11 @@ {{- partial "head-search.html" . -}} + +{{- range first 1 (where .Site.Pages "Params.Author" .Site.Author.default.home) -}} + +{{- end }} + {{- $index := resources.Get "js/index.js" -}} {{- $default := resources.Get "css/default.css" -}} -- cgit v1.2.3