Use assets folder for bgimg and homeimg

This commit is contained in:
Joe Hutchinson
2020-07-13 23:00:17 -04:00
parent 77dbbb0254
commit 0b275717d3
4 changed files with 10 additions and 11 deletions

View File

@@ -28,19 +28,18 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/katex.min.css" integrity="sha384-9eLZqc9ds8eNjO3TmqPeYcDj8n+Qfa4nuSiGYa6DjLNcv9BtN69ZIulL9+8CqC9Y" crossorigin="anonymous">
{{ $mainStyle := resources.Get "css/style.css" }}
{{ $xcodeStyle := resources.Get "css/xcode.css" }}
{{ $fontStyle := resources.Get "css/latolatinfonts.css" }}
{{ $overrideStyle := resources.Get "css/override.css" }}
{{ $style := slice $xcodeStyle $fontStyle $mainStyle $overrideStyle | resources.Concat "css/concated.css" | minify }}
{{ $style := slice $fontStyle $mainStyle $overrideStyle | resources.Concat "css/concated.css" | minify }}
<link href="{{ $style.Permalink }}" rel="stylesheet">
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
{{ template "_internal/google_analytics.html" . }}
{{ if isset $.Site.Params "bgimg" -}}
{{ with resources.Get $.Site.Params.bgimg -}}
<style>
body {
background: #ecedef url("{{ $.Site.Params.bgimg | absURL | safeCSS }}") repeat;
background: #ecedef url("{{ .Permalink | safeCSS }}") repeat;
}
</style>
{{- end }}