From 6819e4dc898acae3606170490eec850c20f86427 Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Tue, 21 Dec 2021 09:25:48 +0100 Subject: [PATCH] small fixes and optimizations --- README.md | 2 ++ layouts/_default/baseof.html | 2 +- layouts/partials/head.html | 2 +- layouts/partials/iconlink.html | 2 ++ layouts/partials/nerdlink.html | 2 ++ 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8c4ab24..f10c246 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,8 @@ These are some parameters you can use in your `config.toml` to customize Ficurin baseURL = "https://example.com/" theme = "hugo-ficurinia" title = "My nice blog" +languageCode = "en" +defaultContentLanguage = "en" # this will be included in the footer after the current year the site is last # built, followed by the (c) symbol diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 54da3cf..ec073c1 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - + {{- partial "head.html" . -}}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 374c2fb..20f5413 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -4,7 +4,7 @@ if (location.host != new URL("{{ .Site.BaseURL }}").host) location.href = "{{ .Site.BaseURL }}" {{ end }} - + diff --git a/layouts/partials/iconlink.html b/layouts/partials/iconlink.html index 46b789a..bd93b85 100644 --- a/layouts/partials/iconlink.html +++ b/layouts/partials/iconlink.html @@ -1,6 +1,8 @@ {{ if eq (lower (index . 0)) "gitlab" }}