From 1a8818cda0cc54d17ef3475714a76559da80a07a Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Thu, 9 Mar 2023 19:31:16 -0500 Subject: [PATCH] Dynamically generate talk page --- www-zola/content/posts/_index.md | 3 ++ www-zola/content/{talk.md => talk/index.md} | 3 ++ www-zola/content/talk/podcasts.csv | 7 ++++ www-zola/templates/talk.html | 39 +++++++++++++++++++++ 4 files changed, 52 insertions(+) create mode 100644 www-zola/content/posts/_index.md rename www-zola/content/{talk.md => talk/index.md} (98%) create mode 100644 www-zola/content/talk/podcasts.csv create mode 100644 www-zola/templates/talk.html diff --git a/www-zola/content/posts/_index.md b/www-zola/content/posts/_index.md new file mode 100644 index 00000000..43b166a1 --- /dev/null +++ b/www-zola/content/posts/_index.md @@ -0,0 +1,3 @@ ++++ +title = "Posts" ++++ \ No newline at end of file diff --git a/www-zola/content/talk.md b/www-zola/content/talk/index.md similarity index 98% rename from www-zola/content/talk.md rename to www-zola/content/talk/index.md index b7596b31..221e3df0 100644 --- a/www-zola/content/talk.md +++ b/www-zola/content/talk/index.md @@ -1,5 +1,6 @@ +++ title = "htmx Talk" +template = "talk.html" +++ [htmx Discord Server](/discord) @@ -37,6 +38,7 @@ Email: [htmx@bigsky.software](mailto:htmx@bigsky.software) [feed.xml](/feed.xml) + diff --git a/www-zola/content/talk/podcasts.csv b/www-zola/content/talk/podcasts.csv new file mode 100644 index 00000000..fb7e7552 --- /dev/null +++ b/www-zola/content/talk/podcasts.csv @@ -0,0 +1,7 @@ +Name,URL +Devmode.fm - Dynamic HTML with htmx,https://devmode.fm/episodes/dynamic-html-with-htmx +JS Party - Less JavaScript more htmx,https://changelog.com/jsparty/171 +Software Breakthroughs for the 21s Century,https://www.youtube.com/watch?v=O4ZFIx1ckSg +Django Chat,https://djangochat.com/episodes/htmx-carson-gross +Talk Python,https://talkpython.fm/episodes/show/321/htmx-clean-dynamic-html-pages +.NET Rocks!,https://www.dotnetrocks.com/?show=1749 diff --git a/www-zola/templates/talk.html b/www-zola/templates/talk.html new file mode 100644 index 00000000..61370d58 --- /dev/null +++ b/www-zola/templates/talk.html @@ -0,0 +1,39 @@ +{% extends "htmx-theme/templates/base.html" %} + +{% block title %} + {% set html_title = "</> htmx ~ " ~ page.title %} +{% endblock title %} + +{% block content %} +

{{ page.title | safe }}

+ {{ page.content | safe }} + + {% set section = get_section(path="posts/_index.md") -%} +

+ 🔗Announcements +

+ + + {% set essays = get_section(path="essays/_index.md", metadata_only=true) %} +

+ 🔗Essays +

+

See the essays page →

+ + {% set podcasts = load_data(path="content/talk/podcasts.csv") %} +

+ 🔗Podcasts +

+ + +

Contact Us to Join You on Your Podcast!

+ +{% endblock content %} \ No newline at end of file