From 3320068329c280d241ac5e82b5af5a90952704f2 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Mon, 20 Sep 2021 16:11:51 -0700 Subject: [PATCH] alignment fix to menu; move some header code to head; add video page and iframe templates; add cwtch explainer video page and iframe --- content/videos/_index.md | 2 + content/videos/explainer.html | 9 +++ content/videos/explainer_video.html | 9 +++ themes/cwtch/layouts/_default/single.html | 4 +- .../cwtch/layouts/_default/videoIframe.html | 46 ++++++++++++++ themes/cwtch/layouts/_default/videoPage.html | 63 +++++++++++++++++++ themes/cwtch/layouts/index.html | 2 + themes/cwtch/layouts/partials/head.html | 41 ++++++++++++ themes/cwtch/layouts/partials/header.html | 42 +------------ themes/cwtch/static/css/style.css | 6 +- 10 files changed, 180 insertions(+), 44 deletions(-) create mode 100644 content/videos/_index.md create mode 100644 content/videos/explainer.html create mode 100644 content/videos/explainer_video.html create mode 100644 themes/cwtch/layouts/_default/videoIframe.html create mode 100644 themes/cwtch/layouts/_default/videoPage.html diff --git a/content/videos/_index.md b/content/videos/_index.md new file mode 100644 index 0000000..a845151 --- /dev/null +++ b/content/videos/_index.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/content/videos/explainer.html b/content/videos/explainer.html new file mode 100644 index 0000000..201fc10 --- /dev/null +++ b/content/videos/explainer.html @@ -0,0 +1,9 @@ +--- +title: "Cwtch Explainer Video" +date: 2020-12-10T14:07:19-08:00 +draft: false +layout: videoPage +videoIframeUrl: "/videos/explainer_video/" +description: "A video Explaining Cwtch" +pageUrl: /videos/explainer/" +--- diff --git a/content/videos/explainer_video.html b/content/videos/explainer_video.html new file mode 100644 index 0000000..9d68f1a --- /dev/null +++ b/content/videos/explainer_video.html @@ -0,0 +1,9 @@ +--- +title: "Cwtch Explainer Video" +date: 2020-12-10T14:07:19-08:00 +draft: false +layout: videoIframe +videoUrl: /cwtch-explainer.mp4 +description: "A video Explaining Cwtch" +pageUrl: /videos/explainer/" +--- diff --git a/themes/cwtch/layouts/_default/single.html b/themes/cwtch/layouts/_default/single.html index ed98246..cd3de9b 100644 --- a/themes/cwtch/layouts/_default/single.html +++ b/themes/cwtch/layouts/_default/single.html @@ -1,4 +1,4 @@ - +{{ partial "head.html" . }} {{ partial "header.html" . }}
@@ -6,4 +6,4 @@ {{.Content}}
-{{ partial "footer.html" . }} \ No newline at end of file +{{ partial "footer.html" . }} diff --git a/themes/cwtch/layouts/_default/videoIframe.html b/themes/cwtch/layouts/_default/videoIframe.html new file mode 100644 index 0000000..7572eb6 --- /dev/null +++ b/themes/cwtch/layouts/_default/videoIframe.html @@ -0,0 +1,46 @@ + + + + + + + + + + + {{ .Title }} + + + + + + + + + + + + +   + + + + + diff --git a/themes/cwtch/layouts/_default/videoPage.html b/themes/cwtch/layouts/_default/videoPage.html new file mode 100644 index 0000000..e8cf196 --- /dev/null +++ b/themes/cwtch/layouts/_default/videoPage.html @@ -0,0 +1,63 @@ + + + + + + + + + + + {{ .Title }} + + + + + + + + + + + + +   + + + + + + + + + + +{{ partial "header.html" .}} + +
+ +
+
+
+

{{ .Title }}

+
+
+ +
+ + + + +
+ +
+
+

{{ .Params.description }}

+
+
+
+ +{{ partial "footer.html" . }} + + + diff --git a/themes/cwtch/layouts/index.html b/themes/cwtch/layouts/index.html index 1af9b6d..7691f3e 100644 --- a/themes/cwtch/layouts/index.html +++ b/themes/cwtch/layouts/index.html @@ -1,5 +1,7 @@ +{{ partial "head.html" . }} {{ partial "header.html" . }} +
diff --git a/themes/cwtch/layouts/partials/head.html b/themes/cwtch/layouts/partials/head.html index e69de29..a656ad4 100644 --- a/themes/cwtch/layouts/partials/head.html +++ b/themes/cwtch/layouts/partials/head.html @@ -0,0 +1,41 @@ + + + + + + + + + + + + + Cwtch: Decentralized, Surveillance Resistant Infrastructure + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/themes/cwtch/layouts/partials/header.html b/themes/cwtch/layouts/partials/header.html index 586daf1..28a6be1 100644 --- a/themes/cwtch/layouts/partials/header.html +++ b/themes/cwtch/layouts/partials/header.html @@ -1,43 +1,3 @@ - - - - - - - - - - - - - Cwtch: Decentralized, Surveillance Resistant Infrastructure - - - - - - - - - - - - - - - - - - - - - - - - - -
\ No newline at end of file +
diff --git a/themes/cwtch/static/css/style.css b/themes/cwtch/static/css/style.css index 26d6b6d..ed31cbf 100644 --- a/themes/cwtch/static/css/style.css +++ b/themes/cwtch/static/css/style.css @@ -27,6 +27,10 @@ nav { text-decoration: none; } +nav ul { + padding-left: 0px; +} + nav li { list-style: none none; } @@ -194,4 +198,4 @@ footer a { code { font-size: 12px; text-wrap: none; -} \ No newline at end of file +}