site/layouts: add new FSC extension

We use a custom style block in the base that defaults to ISEAL, but
gets overridden in the FSC layout. Layout is determined in the term
frontmatter, either "home" or "fsc".
This commit is contained in:
2021-12-21 18:31:02 +02:00
parent d4bd504ff2
commit d8065f0634
3 changed files with 82 additions and 1 deletions

View File

@ -7,8 +7,10 @@
<link rel="canonical" href="{{ .Permalink }}">
{{ $style := resources.Get "css/style.min.css" | resources.Fingerprint }}
{{ block "style" . }}
{{ $style := resources.Get "css/iseal.min.css" | resources.Fingerprint }}
<link href="{{ $style.Permalink }}" rel="stylesheet" integrity="{{ $style.Data.Integrity }}" crossorigin="anonymous">
{{ end }}
</head>
<!-- body start is in main because it needs scrollspy only on home -->