From 05df40cfe6c148cbb1b72f126ebce24e4a47f58b Mon Sep 17 00:00:00 2001 From: kurets Date: Sun, 18 Dec 2022 22:55:12 +0200 Subject: [PATCH] updated footer, with tags, square brackets n shit --- new-site/config.toml | 6 +++++- new-site/public/blog/index.html | 4 +++- new-site/public/blog/pluralization-issues/index.html | 9 ++++++++- new-site/public/categories/index.html | 4 +++- new-site/public/helloworld/index.html | 8 +++++++- new-site/public/index.html | 4 +++- new-site/public/tags/blog/index.html | 4 +++- new-site/public/tags/index.html | 4 +++- new-site/public/tags/updates/index.html | 4 +++- new-site/themes/lugo/layouts/_default/baseof.html | 1 + new-site/themes/lugo/layouts/partials/taglist.html | 2 ++ 11 files changed, 41 insertions(+), 9 deletions(-) diff --git a/new-site/config.toml b/new-site/config.toml index 13d44e9a..354541f5 100644 --- a/new-site/config.toml +++ b/new-site/config.toml @@ -2,4 +2,8 @@ baseURL = 'https://vodoraslo.xyz/' languageCode = 'en-us' title = 'vodoraslo' theme = 'lugo' -pluralizelisttitles = false \ No newline at end of file +pluralizelisttitles = false +[params] +showrss = true +nextprev = true +taglist = true \ No newline at end of file diff --git a/new-site/public/blog/index.html b/new-site/public/blog/index.html index a39dd980..5f5e569c 100644 --- a/new-site/public/blog/index.html +++ b/new-site/public/blog/index.html @@ -19,11 +19,13 @@ + +

diff --git a/new-site/public/blog/pluralization-issues/index.html b/new-site/public/blog/pluralization-issues/index.html index 1a7139b5..cdf31ccf 100644 --- a/new-site/public/blog/pluralization-issues/index.html +++ b/new-site/public/blog/pluralization-issues/index.html @@ -27,11 +27,18 @@ pluralizelisttitles = false "> +
+
Previous:
Hello world
+
+
+ Tags: [Blog] +
+

diff --git a/new-site/public/categories/index.html b/new-site/public/categories/index.html index 6ed65e50..6d465bc2 100644 --- a/new-site/public/categories/index.html +++ b/new-site/public/categories/index.html @@ -18,11 +18,13 @@ + +

diff --git a/new-site/public/helloworld/index.html b/new-site/public/helloworld/index.html index 887c7c2a..7b46cb09 100644 --- a/new-site/public/helloworld/index.html +++ b/new-site/public/helloworld/index.html @@ -38,11 +38,17 @@ im adding this bit in just to check if the scuffed shell script i made actually

im adding this bit in just to check if the scuffed shell script i made actually works (it’s supposed to cd into the .git where hugo is, rsync the /public/ folder into var/www [where my site is])

+
Next:
Pluralization issues (Blogs instead of Blog)
+
+
+ Tags: [Updates] +
+

diff --git a/new-site/public/index.html b/new-site/public/index.html index bf9e028d..a1a8b65c 100644 --- a/new-site/public/index.html +++ b/new-site/public/index.html @@ -21,11 +21,13 @@
  • Blog
  • Hello world
  • + +

    diff --git a/new-site/public/tags/blog/index.html b/new-site/public/tags/blog/index.html index 388c4bca..a859a947 100644 --- a/new-site/public/tags/blog/index.html +++ b/new-site/public/tags/blog/index.html @@ -19,11 +19,13 @@ + +

    diff --git a/new-site/public/tags/index.html b/new-site/public/tags/index.html index 34283074..5c60ad9e 100644 --- a/new-site/public/tags/index.html +++ b/new-site/public/tags/index.html @@ -20,11 +20,13 @@
  • blog
  • updates
  • + +

    diff --git a/new-site/public/tags/updates/index.html b/new-site/public/tags/updates/index.html index ad29561e..3b966794 100644 --- a/new-site/public/tags/updates/index.html +++ b/new-site/public/tags/updates/index.html @@ -19,11 +19,13 @@ + +

    diff --git a/new-site/themes/lugo/layouts/_default/baseof.html b/new-site/themes/lugo/layouts/_default/baseof.html index 6fa10262..9815c7aa 100644 --- a/new-site/themes/lugo/layouts/_default/baseof.html +++ b/new-site/themes/lugo/layouts/_default/baseof.html @@ -24,6 +24,7 @@ {{ end }} {{ if .Param "nextprev" }}{{ partial "nextprev.html" . -}}{{ end -}} {{ if .Param "taglist" }}{{ partial "taglist.html" . }}{{ end -}} +

    {{ block "footer" . }} diff --git a/new-site/themes/lugo/layouts/partials/taglist.html b/new-site/themes/lugo/layouts/partials/taglist.html index 757db6f5..f2400b1c 100644 --- a/new-site/themes/lugo/layouts/partials/taglist.html +++ b/new-site/themes/lugo/layouts/partials/taglist.html @@ -2,12 +2,14 @@ {{- $tagsLen := len .Params.tags -}} {{- if gt $tagsLen 0 -}}
    + Tags: [ {{- with .Site.Params.relatedtext }}{{ . }}
    {{ end -}} {{- range $k, $v := .Params.tags -}} {{- $url := printf "tags/%s" (. | urlize | lower) -}} {{ . | title }} {{- if lt $k (sub $tagsLen 1) }} · {{ end -}} {{- end -}} + ]
    {{- end -}} {{- end }}