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 }}