From 33a68fc44f6745d970e4eed18d098a63ccf7a4a6 Mon Sep 17 00:00:00 2001 From: dadosch Date: Thu, 22 Oct 2020 17:27:04 +0000 Subject: [PATCH] fix URLs when serving from a subdirectory (#120) --- layouts/404.html | 4 ++-- layouts/_default/list.html | 6 +++--- layouts/_default/single.html | 6 +++--- layouts/index.html | 22 +++++++++++----------- layouts/partials/footer.html | 4 ++-- layouts/partials/header.html | 10 +++++----- layouts/partials/scripts.html | 10 +++++----- 7 files changed, 31 insertions(+), 31 deletions(-) diff --git a/layouts/404.html b/layouts/404.html index 5c2c730..bcf8eab 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,5 +1,5 @@ {{ define "header" }} - + {{ end }} {{ define "navbar" }} @@ -9,7 +9,7 @@ {{ define "content" }}
- +

404

The page you are looking for is not there yet.

diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 23d8b5c..cccfd77 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,6 +1,6 @@ {{ define "header" }} - - + + {{ end }} {{ define "navbar" }} @@ -47,5 +47,5 @@ {{ end }} {{ define "scripts" }} - + {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index efd9741..e54de46 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,8 +4,8 @@ rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/styles/atom-one-dark.min.css" /> - - + + {{ end }} {{ define "navbar" }} @@ -97,7 +97,7 @@ {{ define "scripts" }} - + diff --git a/layouts/index.html b/layouts/index.html index d742e14..226f073 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -7,13 +7,13 @@ {{- partial "header.html" . -}} - - - - - - - + + + + + + + {{ if .Site.GoogleAnalytics }} @@ -62,9 +62,9 @@ {{ partial "scripts.html" . }} - - - - + + + + diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index b6f14c0..d707663 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -76,7 +76,7 @@