forked from drowl87/hextra_mirror
feat: allow disable toc on page frontmatter
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
This commit is contained in:
10
layouts/partials/head-css.html
Normal file
10
layouts/partials/head-css.html
Normal file
@ -0,0 +1,10 @@
|
||||
{{ $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 }}
|
Reference in New Issue
Block a user