From a897f476e6984137a97dbf53d7a410827173b896 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Thu, 18 Aug 2022 20:18:05 -0700 Subject: [PATCH] Include Railroad.js files in --- layouts/partials/head.html | 7 +++++-- layouts/shortcodes/railroad_diagram.html | 2 ++ static/styles/railroad.css | 19 +++++++++++++++---- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 51b8a16..686d544 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -19,6 +19,9 @@ {{ if or (eq .Kind "list") (eq .Kind "term") }} {{ end }} + {{ if and .IsPage (.Page.Scratch.Get "includes_railroad_diagram") }} + + {{ end }} {{ range $stylesheet := .Resources.Match "*.css" }} {{ end }} @@ -44,8 +47,8 @@ {{ end }} {{ if and .IsPage (.Page.Scratch.Get "includes_railroad_diagram") }} - - + + {{ end }} {{ if and .IsPage (.Page.Scratch.Get "includes_p5_sketch") }} diff --git a/layouts/shortcodes/railroad_diagram.html b/layouts/shortcodes/railroad_diagram.html index d5e4785..ecdda1e 100644 --- a/layouts/shortcodes/railroad_diagram.html +++ b/layouts/shortcodes/railroad_diagram.html @@ -1,6 +1,8 @@ {{ $id := .Get "id" }} {{ .Page.Scratch.Set "includes_railroad_diagram" true }} +
+