Dynamically generate talk page

This commit is contained in:
Daniel J. Summers 2023-03-09 19:31:16 -05:00
parent 8564251136
commit 1a8818cda0
4 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,3 @@
+++
title = "Posts"
+++

View File

@ -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)
<!--
## Announcements
<ul>
@ -61,3 +63,4 @@ Email: [htmx@bigsky.software](mailto:htmx@bigsky.software)
* [.NET Rocks!](https://www.dotnetrocks.com/?show=1749)
[Contact Us](mailto:podcasts@bigsky.software) to Join You on Your Podcast!
-->

View File

@ -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
1 Name URL
2 Devmode.fm - Dynamic HTML with htmx https://devmode.fm/episodes/dynamic-html-with-htmx
3 JS Party - Less JavaScript more htmx https://changelog.com/jsparty/171
4 Software Breakthroughs for the 21s Century https://www.youtube.com/watch?v=O4ZFIx1ckSg
5 Django Chat https://djangochat.com/episodes/htmx-carson-gross
6 Talk Python https://talkpython.fm/episodes/show/321/htmx-clean-dynamic-html-pages
7 .NET Rocks! https://www.dotnetrocks.com/?show=1749

View File

@ -0,0 +1,39 @@
{% extends "htmx-theme/templates/base.html" %}
{% block title %}
{% set html_title = "&lt;/&gt; htmx ~ " ~ page.title %}
{% endblock title %}
{% block content %}
<h1>{{ page.title | safe }}</h1>
{{ page.content | safe }}
{% set section = get_section(path="posts/_index.md") -%}
<h2 id="announcements">
<a class="zola-anchor" href="#announcements" aria-label="Anchor link for: announcements">🔗</a>Announcements
</h2>
<ul>
{% for page in section.pages | sort(attribute="date") | reverse -%}
<li><a href="{{ page.permalink }}">{{ page.date }} - {{ page.title }} </a>🔥🔥</li>
{% endfor %}
</ul>
{% set essays = get_section(path="essays/_index.md", metadata_only=true) %}
<h2 id="essays">
<a class="zola-anchor" href="#essays" aria-label="Anchor link for: essays">🔗</a>Essays
</h2>
<p><a href="{{ essays.permalink }}">See the essays page &rarr;</a></p>
{% set podcasts = load_data(path="content/talk/podcasts.csv") %}
<h2 id="podcasts">
<a class="zola-anchor" href="#podcasts" aria-label="Anchor link for: podcasts">🔗</a>Podcasts
</h2>
<ul>
{% for podcast in podcasts.records %}
<li><a href="{{ podcast[1] }}" target="_blank" rel="noopener">{{ podcast[0] | safe }}</a></li>
{% endfor %}
</ul>
<p><a href="mailto:podcasts@bigsky.software">Contact Us</a> to Join You on Your Podcast!</p>
{% endblock content %}