From ca02d852a773b15ad48a2228bd840b3a0cf6a412 Mon Sep 17 00:00:00 2001 From: Chris McCormick Date: Tue, 23 Jun 2020 15:37:08 +0800 Subject: [PATCH] Static build with video. --- Makefile | 2 +- src/slingcode-embed.html | 1 + src/slingcode-site-bootleg.clj | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 src/slingcode-embed.html diff --git a/Makefile b/Makefile index 6af8bf3..2b22d8a 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ STATIC=index.html style.css logo.png BUILD=build/js/main.js $(foreach S, $(STATIC), build/$(S)) -SITEFILES=public/style.css public/img/computers-in-our-lives.jpg public/img/appleIIe.jpg public/logo.svg public/logo.png +SITEFILES=public/style.css public/img/computers-in-our-lives.jpg public/img/appleIIe.jpg public/img/youtube.png public/logo.svg public/logo.png SITEFILES_DEST=$(foreach S, $(SITEFILES), slingcode.net/$(S)) DISTFILES=index.html publish.html slingcode.html license.txt revision.txt ENV Procfile nginx.conf DEFAULTAPPS=hello-world chromium-dinosaur-game preact-demo mithril-todomvc savings-calculator widgets-order-form leaflet-map banana-dungeon-game jquery-ui-demo party-like-its-98 text-log 8bit-interface diff --git a/src/slingcode-embed.html b/src/slingcode-embed.html new file mode 100644 index 0000000..a7b944c --- /dev/null +++ b/src/slingcode-embed.html @@ -0,0 +1 @@ + diff --git a/src/slingcode-site-bootleg.clj b/src/slingcode-site-bootleg.clj index 1c1be82..4139c63 100644 --- a/src/slingcode-site-bootleg.clj +++ b/src/slingcode-site-bootleg.clj @@ -6,6 +6,7 @@ static (enlive/at static [:section#about] (enlive/content (markdown (str "../" (last *command-line-args*)) :hickory-seq))) static (enlive/at static [:p#gh-logo] (enlive/substitute nil)) static (enlive/at static [:section#about] (enlive/prepend (convert-to [:img {:src "public/img/computers-in-our-lives.jpg"}] :hickory-seq))) + static (enlive/at static [:p#youtube] (enlive/substitute (html "slingcode-embed.html" :hickory-seq))) ;static (enlive/at static [:section#about] (enlive/prepend (convert-to [:div [:p.title "Slingcode personal computing platform."]] :hickory-seq))) ] (enlive/at template [:body] (enlive/content static)))