could create standalone pages for CVs or other purposes with inlineCSS

This commit is contained in:
Stefan Midjich 2022-12-08 03:23:05 +01:00
parent 4bd96d6271
commit da850cb172

View File

@ -67,12 +67,16 @@
{{- /* Add extended css after theme style */ -}}
{{- $stylesheet := (slice $license_css $core $extended) | resources.Concat "assets/css/stylesheet.css" }}
{{- if site.Params.assets.inlineCSS }}
<style>{{ $stylesheet.Content | safeCSS }}</style>
{{- else }}
{{- if not site.Params.assets.disableFingerprinting }}
{{- $stylesheet := $stylesheet | fingerprint }}
<link crossorigin="anonymous" href="{{ $stylesheet.RelPermalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="preload stylesheet" as="style">
{{- else }}
<link crossorigin="anonymous" href="{{ $stylesheet.RelPermalink }}" rel="preload stylesheet" as="style">
{{- end }}
{{- end }}
{{- /* Search */}}
{{- if (eq .Layout `search`) -}}