mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 07:21:05 +00:00
Dynamically generate talk page
This commit is contained in:
parent
8564251136
commit
1a8818cda0
3
www-zola/content/posts/_index.md
Normal file
3
www-zola/content/posts/_index.md
Normal file
@ -0,0 +1,3 @@
|
||||
+++
|
||||
title = "Posts"
|
||||
+++
|
@ -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!
|
||||
-->
|
7
www-zola/content/talk/podcasts.csv
Normal file
7
www-zola/content/talk/podcasts.csv
Normal 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
|
|
39
www-zola/templates/talk.html
Normal file
39
www-zola/templates/talk.html
Normal file
@ -0,0 +1,39 @@
|
||||
{% extends "htmx-theme/templates/base.html" %}
|
||||
|
||||
{% block title %}
|
||||
{% set html_title = "</> 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 →</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 %}
|
Loading…
x
Reference in New Issue
Block a user