From 4c9c3761e9f4d609e5d08d013d01e05e7714e23c Mon Sep 17 00:00:00 2001 From: Samuel Gratzl Date: Thu, 12 Nov 2020 16:18:32 -0500 Subject: [PATCH] feat: add covidcast page as embedded from --- content/covidcast.md | 13 +++++++++++++ layouts/covidcast/baseof.html | 11 +++++++++++ layouts/covidcast/single.html | 1 + layouts/shortcodes/covidcast.html | 8 ++++++++ themes/delphi/assets/js/main.js | 6 +++--- 5 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 content/covidcast.md create mode 100644 layouts/covidcast/baseof.html create mode 100644 layouts/covidcast/single.html create mode 100644 layouts/shortcodes/covidcast.html diff --git a/content/covidcast.md b/content/covidcast.md new file mode 100644 index 000000000..982b45d94 --- /dev/null +++ b/content/covidcast.md @@ -0,0 +1,13 @@ +--- +title: COVIDCast +type: covidcast +scripts: + - https://deploy-preview-631--cmu-delphi-covidcast.netlify.app/vendors.js + - https://deploy-preview-631--cmu-delphi-covidcast.netlify.app/styles.js + - https://deploy-preview-631--cmu-delphi-covidcast.netlify.app/bundle.js +styles: + - https://deploy-preview-631--cmu-delphi-covidcast.netlify.app/vendors.css + - https://deploy-preview-631--cmu-delphi-covidcast.netlify.app/styles.css +--- + +{{}} \ No newline at end of file diff --git a/layouts/covidcast/baseof.html b/layouts/covidcast/baseof.html new file mode 100644 index 000000000..8cf5dccf2 --- /dev/null +++ b/layouts/covidcast/baseof.html @@ -0,0 +1,11 @@ + + + + {{ partial "head.html" . }} + + {{ partial "nav.html" . }} + {{ block "main" . }} + {{ end }} + {{ partial "footer.html" . }} + + diff --git a/layouts/covidcast/single.html b/layouts/covidcast/single.html new file mode 100644 index 000000000..d975ecbd1 --- /dev/null +++ b/layouts/covidcast/single.html @@ -0,0 +1 @@ +{{ define "main" }} {{ .Content }} {{ end }} diff --git a/layouts/shortcodes/covidcast.html b/layouts/shortcodes/covidcast.html new file mode 100644 index 000000000..38ab20304 --- /dev/null +++ b/layouts/shortcodes/covidcast.html @@ -0,0 +1,8 @@ +
+ +
diff --git a/themes/delphi/assets/js/main.js b/themes/delphi/assets/js/main.js index b65c49b8f..713b37043 100644 --- a/themes/delphi/assets/js/main.js +++ b/themes/delphi/assets/js/main.js @@ -1,6 +1,6 @@ -import UIKit from '../uikit/dist/js/uikit.js'; +import UIkit from '../uikit/dist/js/uikit.js'; import plugin from '../uikit/dist/js/uikit-icons.js'; -UIKit.use(plugin); +UIkit.use(plugin); -window.UIKit = UIKit; \ No newline at end of file +window.UIkit = UIkit; \ No newline at end of file