Store CSS as an asset file

This commit is contained in:
vimux 2019-12-07 15:40:26 -05:00
parent 6dc14f2df3
commit 965c3fa699
No known key found for this signature in database
GPG key ID: 5A34FDC4EE832E34
2 changed files with 3 additions and 1 deletions

View file

@ -14,7 +14,9 @@
{{- if .Site.Params.twitter_cards }} {{- if .Site.Params.twitter_cards }}
{{ template "_internal/twitter_cards.html" . }} {{ template "_internal/twitter_cards.html" . }}
{{- end }} {{- end }}
<link rel="stylesheet" href="{{ "css/main.css" | relURL }}"> {{- $cssMain := resources.Get "css/main.css" }}
{{- $style := $cssMain }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
{{- range .Site.Params.customCSS }} {{- range .Site.Params.customCSS }}
<link rel="stylesheet" href="{{ . | relURL }}"> <link rel="stylesheet" href="{{ . | relURL }}">
{{- end }} {{- end }}