From 2ddbc2b056af0585b905606a2c6887d43f9c3b01 Mon Sep 17 00:00:00 2001 From: Leonardo Santiago Date: Sat, 1 Jun 2024 17:30:03 -0300 Subject: localize bearblog, update some UI --- themes/hugo-bearblog | 1 - themes/hugo-bearblog/layouts/_default/baseof.html | 43 +++++++++++++++++++++++ themes/hugo-bearblog/layouts/_default/list.html | 38 ++++++++++++++++++++ themes/hugo-bearblog/layouts/_default/single.html | 20 +++++++++++ 4 files changed, 101 insertions(+), 1 deletion(-) delete mode 160000 themes/hugo-bearblog create mode 100644 themes/hugo-bearblog/layouts/_default/baseof.html create mode 100644 themes/hugo-bearblog/layouts/_default/list.html create mode 100644 themes/hugo-bearblog/layouts/_default/single.html (limited to 'themes/hugo-bearblog/layouts/_default') diff --git a/themes/hugo-bearblog b/themes/hugo-bearblog deleted file mode 160000 index efc24bc..0000000 --- a/themes/hugo-bearblog +++ /dev/null @@ -1 +0,0 @@ -Subproject commit efc24bc5e95f0ccb88051e1a7d95e8a1404e953e diff --git a/themes/hugo-bearblog/layouts/_default/baseof.html b/themes/hugo-bearblog/layouts/_default/baseof.html new file mode 100644 index 0000000..6bce2dc --- /dev/null +++ b/themes/hugo-bearblog/layouts/_default/baseof.html @@ -0,0 +1,43 @@ + + + + + + + + {{- partial "favicon.html" . -}} + {{- block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{- end }} + + {{- partial "seo_tags.html" . -}} + + + {{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} + + {{- partial "style.html" . -}} + + + {{- partial "custom_head.html" . -}} + + + +
+ {{- partial "header.html" . -}} +
+
+ {{- block "main" . }}{{- end }} +
+ + + + {{- partial "custom_body.html" . -}} + + + diff --git a/themes/hugo-bearblog/layouts/_default/list.html b/themes/hugo-bearblog/layouts/_default/list.html new file mode 100644 index 0000000..443cd2f --- /dev/null +++ b/themes/hugo-bearblog/layouts/_default/list.html @@ -0,0 +1,38 @@ +{{ define "main" }} + + {{ if .Data.Singular }} +

filtering for "{{ .Title }}"

+ + remove filter + + {{ end }} + + {{ if .Data.Singular }} + {{else}} + +
+ {{ range .Site.Taxonomies.tags }} + #{{ .Page.Title }}  + {{ end }} +
+
+ {{ end }} +
+{{ end }} diff --git a/themes/hugo-bearblog/layouts/_default/single.html b/themes/hugo-bearblog/layouts/_default/single.html new file mode 100644 index 0000000..346c9bc --- /dev/null +++ b/themes/hugo-bearblog/layouts/_default/single.html @@ -0,0 +1,20 @@ +{{ define "main" }} +{{ if eq .Type "blog" }}{{ if not .Params.menu }} +

{{ .Title }}

+

+ + + +

+{{ end }}{{ end }} + + {{ .Content }} + +

+ {{ range (.GetTerms "tags") }} + #{{ .LinkTitle }} + {{ end }} +

+{{ end }} -- cgit v1.2.3