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
|
@ -1,8 +1,8 @@
|
|||
{{- $parentID := .Parent.Get "id" -}}
|
||||
{{- $narrowOnly := .Get "narrow" }}
|
||||
{{ $parentID := .Parent.Get "id" -}}
|
||||
{{ $narrowOnly := not (not (.Get "narrow")) | default false }}
|
||||
<script defer type="module">
|
||||
import { railroadDiagram } from {{ `/scripts/railroad-utils.js` | relURL }};
|
||||
import { railroadDiagram } from {{ (partial "resources/railroad_utils.html" .).RelPermalink }};
|
||||
railroadDiagram(rr => {
|
||||
{{ .Inner | safeJS }}
|
||||
}, "{{ $parentID }}", {{ if $narrowOnly }}true{{ else }}false{{ end }});
|
||||
}, "{{ $parentID }}", {{ cond $narrowOnly "true" "false" | safeJS }});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue