Move all layouts to platters theme
This commit is contained in:
parent
de8101efed
commit
66adceaf24
91 changed files with 0 additions and 0 deletions
8
themes/platters/layouts/shortcodes/scripts/railroad.html
Normal file
8
themes/platters/layouts/shortcodes/scripts/railroad.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{{ $parentID := .Parent.Get "id" -}}
|
||||
{{ $narrowOnly := not (not (.Get "narrow")) | default false }}
|
||||
<script defer type="module">
|
||||
import { railroadDiagram } from {{ (partial "resources/railroad_utils.html" .).RelPermalink }};
|
||||
railroadDiagram(rr => {
|
||||
{{ .Inner | safeJS }}
|
||||
}, "{{ $parentID }}", {{ cond $narrowOnly "true" "false" | safeJS }});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue