forked from drowl87/hextra_mirror

refactor: move pager to partial/components chore: add head-css and favicons - support favicons and page descriptions - dynamic title based on page - add custom head-end hook feat: add opengraph to head fix: sidebar not hiding when resizing
11 lines
505 B
HTML
11 lines
505 B
HTML
{{ $options := dict "inlineImports" true }}
|
|
{{ $styles := resources.Get "css/styles.css" }}
|
|
{{ $styles = $styles | resources.PostCSS $options }}
|
|
{{ if not hugo.IsProduction }}
|
|
<link href="{{ $styles.RelPermalink }}" rel="stylesheet" />
|
|
{{ else }}
|
|
{{ $styles = $styles | minify | fingerprint | resources.PostProcess }}
|
|
<link rel="preload" href="{{ $styles.RelPermalink }}" as="style" />
|
|
<link href="{{ $styles.RelPermalink }}" rel="stylesheet" integrity="{{ $styles.Data.integrity }}" />
|
|
{{ end }}
|