From 3067775c1f2f269473003439d7ab2135a466db04 Mon Sep 17 00:00:00 2001 From: Adam Tao Date: Sun, 13 Feb 2022 20:29:02 +0800 Subject: [PATCH] fix(home): Change to use RelPermalink Permalink will generate a absolute link like https://localhost:1313/css/main.min.css, which will make the browser cannot find the file if you browse your resume in another machine insteal of the one running `hugo server`. Changing to use RelPermalink will fix it, which will generate a relative link like /css/main.min.css. Signed-off-by: Adam Tao --- layouts/home.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/home.html b/layouts/home.html index 10c4558..1236513 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -5,7 +5,7 @@ {{ $style := resources.Get "css/main.scss" | toCSS | minify | fingerprint }} - + {{ if .Site.Params.useFontAwesome }} @@ -13,7 +13,7 @@ {{ range .Site.Params.css }} {{ $style := resources.Get (printf "css/%s" .) }} {{ if $style }} - + {{ end }} {{ end }} {{ .Site.Title }}