Remove the railroad shortcode

This partial moved to railroad-diagrams. Except it's pissing me off. 🙃
This commit is contained in:
Eryn Wells 2024-10-08 08:46:28 -07:00
parent e0b2683ef9
commit 5510a738fa

View file

@ -1,8 +0,0 @@
{{ $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>