From 6004f5dcd833eddbb01f0a40c0beb2062075c90e Mon Sep 17 00:00:00 2001 From: Steve Miller Date: Thu, 20 May 2021 23:17:19 -0400 Subject: Move to Relative Links (#9) * Absolute links to Relative Links * Additional updates to permalinks Signed-off-by: Steve Miller --- assets/css/custom.css | 2 +- layouts/_default/list.html | 2 +- layouts/index.html | 2 +- layouts/partials/head.html | 4 ++-- layouts/partials/post-list.html | 2 +- layouts/post/single.html | 2 +- layouts/shortcodes/card.html | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/assets/css/custom.css b/assets/css/custom.css index 65a0929..acaaaac 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -1,6 +1,6 @@ /* base */ body { - background-image: url('{{ "img/geometry2.png" | absURL }}'); + background-image: url('{{ "img/geometry2.png" | relURL }}'); } /* anchors */ diff --git a/layouts/_default/list.html b/layouts/_default/list.html index dab975e..46f70de 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -5,7 +5,7 @@ {{ $pages := .Pages }} {{ range $pages.ByPublishDate.Reverse }}

- + {{ .Title }}

diff --git a/layouts/index.html b/layouts/index.html index 75987b9..283c619 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -5,7 +5,7 @@ {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} {{ range $pages.ByPublishDate.Reverse }}

- + {{ .Title }}

diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 6b23466..68540ee 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -24,11 +24,11 @@ - + {{ $customCssPath := "css/custom.css" }} {{ $customCss:= resources.Get $customCssPath | resources.ExecuteAsTemplate $customCssPath . }} - + {{ $title := print .Title " | " .Site.Title }} {{ if .IsHome }} diff --git a/layouts/partials/post-list.html b/layouts/partials/post-list.html index 7f0e2f9..1dc7471 100644 --- a/layouts/partials/post-list.html +++ b/layouts/partials/post-list.html @@ -2,7 +2,7 @@ {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} {{ range $pages.ByPublishDate.Reverse }}

- + {{ .Title }}

diff --git a/layouts/post/single.html b/layouts/post/single.html index af31882..fd95b62 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -8,7 +8,7 @@ {{ with .Params.tags }} Tags: {{ range . }} - {{ . }} + {{ . }} {{ end }} {{ end }} diff --git a/layouts/shortcodes/card.html b/layouts/shortcodes/card.html index 42a9fbb..d5faa66 100644 --- a/layouts/shortcodes/card.html +++ b/layouts/shortcodes/card.html @@ -18,8 +18,8 @@ {{ end }}
- - + +
{{ with (.Get "title" )}} -- cgit v1.2.3