* Fixing brokens URI paths to font and favicon in gitlab pages
This commit is contained in:
parent
ad14b96fbe
commit
26e3dca2ea
@ -18,10 +18,14 @@ build-pages:
|
|||||||
stage: build
|
stage: build
|
||||||
extends: .builder
|
extends: .builder
|
||||||
script:
|
script:
|
||||||
|
# Build the base config first
|
||||||
- hugo --config configs/pages.toml
|
- 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:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
needs:
|
needs:
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}/css/style.css">
|
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}/css/style.css">
|
||||||
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css" integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous">
|
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css" integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous">
|
||||||
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
|
<link rel="shortcut icon" type="image/png" href="{{ .Site.BaseURL }}/favicon.png"/>
|
||||||
{{ $title := print .Title }}
|
{{ $title := print .Title }}
|
||||||
{{ if .IsHome }}{{ $title = .Site.Title}}{{end}}
|
{{ if .IsHome }}{{ $title = .Site.Title}}{{end}}
|
||||||
<title>{{ $title }}</title>
|
<title>{{ $title }}</title>
|
||||||
@ -22,7 +22,7 @@
|
|||||||
<meta property="og:video:width" content="640">
|
<meta property="og:video:width" content="640">
|
||||||
<meta property="og:video:height" content="480">
|
<meta property="og:video:height" content="480">
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $ogimage := "/favicon.png" }}
|
{{ $ogimage := "{{ .Site.BaseURL }}/favicon.png" }}
|
||||||
{{ if .Params.Image }}
|
{{ if .Params.Image }}
|
||||||
{{ $ogimage = .Params.Image }}
|
{{ $ogimage = .Params.Image }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user