diff options
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 426b21d..4dae5fd 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -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 }} |