From 26e3dca2ea7e24e9d4e3361b4e3f987c0f25ea3d Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 3 May 2022 15:05:35 -0700 Subject: [PATCH] * Fixing brokens URI paths to font and favicon in gitlab pages --- .gitlab-ci.yml | 4 ++++ themes/shockrah.xyz/layouts/partials/head.html | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eebd715..9bcc860 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,10 +18,14 @@ build-pages: stage: build extends: .builder script: + # Build the base config first - hugo --config configs/pages.toml + # Next we fix the path to the font + - sed -i 's/\/media/\/shockrah-city\/media/g' public/css/style.css +# Deploys the gitlab Page for pages: stage: deploy needs: diff --git a/themes/shockrah.xyz/layouts/partials/head.html b/themes/shockrah.xyz/layouts/partials/head.html index fa81a0b..541f75d 100644 --- a/themes/shockrah.xyz/layouts/partials/head.html +++ b/themes/shockrah.xyz/layouts/partials/head.html @@ -3,7 +3,7 @@ - + {{ $title := print .Title }} {{ if .IsHome }}{{ $title = .Site.Title}}{{end}} {{ $title }} @@ -22,7 +22,7 @@ {{ else }} - {{ $ogimage := "/favicon.png" }} + {{ $ogimage := "{{ .Site.BaseURL }}/favicon.png" }} {{ if .Params.Image }} {{ $ogimage = .Params.Image }} {{ end }}