From e614497a363c5c7664559645acd71a1933dbd433 Mon Sep 17 00:00:00 2001 From: rohan kumar Date: Wed, 18 Nov 2020 17:02:24 -0800 Subject: [PATCH] Fix: fix relative links on different domains --- config.toml | 6 +++--- deploy.sh | 2 +- themes/etch-custom/layouts/partials/head.html | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config.toml b/config.toml index b067ac3..0d63b81 100644 --- a/config.toml +++ b/config.toml @@ -5,7 +5,7 @@ theme = "etch-custom" enableInlineShortcodes = true # disablePathToLower = true -# uglyurls = true +uglyurls = true pygmentsCodeFences = true pygmentsUseClasses = true @@ -24,14 +24,14 @@ name = "Rohan Kumar" identifier = "posts" name = "posts" title = "posts" - url = "/posts/" + url = "/posts.html" weight = 10 [[menu.main]] identifier = "about" name = "about" title = "about" - url = "/about/" + url = "/about.html" weight = 20 [permalinks] diff --git a/deploy.sh b/deploy.sh index 39b91e1..090811b 100755 --- a/deploy.sh +++ b/deploy.sh @@ -24,4 +24,4 @@ esac rsync -rvzP --exclude "gemini" --exclude "*.gmi" public/ "$www_prefix/" rsync -rvzP --exclude "*.html" public/gemini/ public/about public/posts "$gemini_prefix/" -rsync -rvzP public/posts/gemini/index.xml "$gemini_prefix/feed.xml" +rsync -rvzP public/posts/gemini.xml "$gemini_prefix/feed.xml" diff --git a/themes/etch-custom/layouts/partials/head.html b/themes/etch-custom/layouts/partials/head.html index ac99fb6..78b922e 100644 --- a/themes/etch-custom/layouts/partials/head.html +++ b/themes/etch-custom/layouts/partials/head.html @@ -9,9 +9,9 @@ {{ $resources := slice -}} - {{ $resources = $resources | append (resources.Get "css/main.css") -}} + {{ $resources = $resources | append (resources.Get "/css/main.css") -}} - {{ $resources = $resources | append (resources.Get "css/min770px.css") -}} + {{ $resources = $resources | append (resources.Get "/css/min770px.css") -}} {{ $dark := .Site.Params.dark | default "auto" -}} {{ if not (eq $dark "off") -}}