From 8759247e32bcc28c7e4cd7fbd35d33ec1ea5518e Mon Sep 17 00:00:00 2001 From: Alekos Filini Date: Sat, 5 Jun 2021 21:21:26 +0200 Subject: [PATCH] Add baseURL back, fix templates to use relative URLs --- config.toml | 2 +- layouts/_default/list.html | 38 ++++++++++++++++++++++++++++++++++++ layouts/_default/single.html | 20 +++++++++++++++++++ 3 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/single.html diff --git a/config.toml b/config.toml index 5ad7365..83e4716 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,4 @@ -baseURL = "" +baseURL = "https://afilini.com" # The name of this wonderful theme ;-). theme = 'hugo-bearblog' diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..c381481 --- /dev/null +++ b/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/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..fa5e909 --- /dev/null +++ b/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 }} -- 2.49.0