Get all the fingerprinting done!
- Add partials in the resources folder for each of the major resources of my site - Consolidate .css and .js files via resources.Concat where possible
This commit is contained in:
parent
d0b223fa33
commit
294fa8343b
14 changed files with 58 additions and 39 deletions
|
@ -6,20 +6,10 @@
|
|||
{{ partial "single_main.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "styles" }}
|
||||
{{- if .HasShortcode "figures/railroad" -}}
|
||||
<link rel="preload stylesheet" as="style" href="{{ `styles/railroad.css` | absURL }}">
|
||||
{{- end -}}
|
||||
<link rel="preload stylesheet" as="style" href="{{ `styles/monokai.css` | absURL }}">
|
||||
{{ end }}
|
||||
|
||||
{{ define "scripts" }}
|
||||
{{- if .HasShortcode "figures/railroad" -}}
|
||||
{{- with partial "secure_asset.html" "scripts/lib/railroad.js" -}}
|
||||
<script defer type="module" src="{{ .Secure.Permalink }}" integrity="{{ .Secure.Data.Integrity }}"></script>
|
||||
{{- end -}}
|
||||
{{- with resources.Get "scripts/railroad-utils.js" -}}
|
||||
<script defer type="module" src="{{ .Secure.Permalink }}" integrity="{{ .Secure.Data.Integrity }}"></script>
|
||||
{{- with partial "resources/railroad_utils.html" . -}}
|
||||
<script defer type="module" src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}"></script>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue