Add pub/update dates to essays

- Fix feed post selection
- Add section definitions for subdirectories
- Fix menu on demo pages
- Fix formatting on HATEOAS essay
- Merge changes from upstream
This commit is contained in:
Daniel J. Summers 2023-03-18 11:26:43 -04:00
parent 0ce50f8a39
commit 53b69c88af
21 changed files with 58 additions and 51 deletions

View File

@ -4,6 +4,7 @@ theme = "htmx-theme"
compile_sass = false
build_search_index = false
generate_feed = true
taxonomies = [
{ name = "tag", render = false, feed = true }
@ -11,7 +12,7 @@ taxonomies = [
[markdown]
highlight_code = true
highlight_theme = "visual-studio-dark"
highlight_theme = "two-dark"
external_links_target_blank = true
smart_punctuation = true
@ -20,3 +21,18 @@ paths_keep_dates = true
[extra]
# Put all your custom variables here
## Candidate code highlighting schemes:
# 1337
# ayu-mirage
# boron
# charcoal
# material-dark
# monokai
# subway-madrid
# subway-moscow
# Tomorrow
# two-dark
# visual-studio-dark
# zenburn

View File

@ -0,0 +1,3 @@
+++
# There is no /attributes URL; this file exists to define a Zola section for this directory
+++

View File

@ -1,5 +1,7 @@
+++
title = "A Real World React -> htmx Port"
date = 2022-09-29
updated = 2022-10-15
[taxonomies]
tag = ["posts"]
+++

View File

@ -1,5 +1,7 @@
+++
title = "A Response To "Have Single-Page Apps Ruined the Web?""
date = 2021-12-24
updated = 2022-05-27
[taxonomies]
tag = ["posts"]
+++

View File

@ -1,5 +1,7 @@
+++
title = "Complexity Budget"
date = 2020-10-29
updated = 2022-02-06
[taxonomies]
tag = ["posts"]
+++

View File

@ -1,5 +1,7 @@
+++
title = "HATEOAS"
date = 2021-10-16
updated = 2022-02-06
[taxonomies]
tag = ["posts"]
[extra]
@ -240,27 +242,6 @@ necessity for building RESTful systems.
letter-spacing: 0;
}
.content pre, .content code {
background: none;
padding: none;
color: black;
text-shadow: none;
font-weight: inherit;
}
.content code {
filter: brightness(.8);
}
.content pre {
padding: 0 1em;
scrollbar-width: thin;
scrollbar-color: #aaa transparent;
background: #f5f5f5;
margin: 16px 32px !important;
border-radius: 0;
}
.content a {
font-variant: all-small-caps;
letter-spacing: .08em;

View File

@ -2,6 +2,7 @@
title = "How Did REST Come To Mean The Opposite of REST?"
author = "Carson Gross <carson@bigsky.software>"
date = 2022-07-18
updated = 2022-11-26
[taxonomies]
tag = ["posts"]
+++

View File

@ -1,5 +1,7 @@
+++
title = "Hypermedia APIs vs. Data APIs"
date = 2021-07-17
updated = 2022-04-07
[taxonomies]
tag = ["posts"]
+++

View File

@ -1,5 +1,7 @@
+++
title = "Hypermedia Clients"
date = 2023-01-28
updated = 2023-01-29
[taxonomies]
tag = ["posts"]
+++

View File

@ -1,5 +1,7 @@
+++
title = "Hypermedia-Driven Applications"
date = 2022-02-06
updated = 2022-10-18
[taxonomies]
tag = ["posts"]
+++

View File

@ -1,5 +1,7 @@
+++
title = "Hypermedia-Friendly Scripting"
date = 2022-11-17
updated = 2022-11-29
[taxonomies]
tag = ["posts"]
+++

View File

@ -1,5 +1,7 @@
+++
title = "Locality of Behaviour (LoB)"
date = 2020-05-29
updated = 2023-01-20
[taxonomies]
tag = ["posts"]
+++

View File

@ -1,5 +1,7 @@
+++
title = "REST - Explained For Beginners"
date = 2021-07-13
updated = 2022-02-06
+++
There is no topic that generates more confusion in web development than the idea of Representational State Transfer,

View File

@ -1,5 +1,7 @@
+++
title = "SPA Alternative"
date = 2020-10-29
updated = 2022-02-06
[taxonomies]
tag = ["posts"]
+++

View File

@ -1,5 +1,7 @@
+++
title = "Splitting Your Data &amp; Application APIs: Going Further"
date = 2021-09-16
updated = 2022-02-06
[taxonomies]
tag = ["posts"]
+++

View File

@ -1,5 +1,7 @@
+++
title = "Template Fragments"
date = 2022-08-03
updated = 2023-03-18
[taxonomies]
tag = ["posts"]
+++
@ -144,5 +146,7 @@ Here are some known implementations of the fragment concept:
* [jinja_partials package](https://github.com/mikeckennedy/jinja_partials) ([discussion](https://github.com/mikeckennedy/jinja_partials/issues/1) on motivation)
* [chameleon_partials package](https://github.com/mikeckennedy/chameleon_partials)
* [htmlgenerator](https://github.com/basxsoftwareassociation/htmlgenerator)
* .NET
* [Giraffe.ViewEngine.Htmx](https://github.com/bit-badger/Giraffe.Htmx/tree/main/src/ViewEngine.Htmx)
Please [let me know](/discord) if you know of others, so I can add them to this list.

View File

@ -1,5 +1,7 @@
+++
title = "When Should You Use Hypermedia?"
date = 2022-10-23
updated = 2023-02-03
[taxonomies]
tag = ["posts"]
+++

View File

@ -0,0 +1,3 @@
+++
# There is no /headers URL; this file exists to define a Zola section for this directory
+++

View File

@ -36,31 +36,4 @@ Email: [htmx@bigsky.software](mailto:htmx@bigsky.software)
## Atom Feed (Announcements & Essays)
[feed.xml](/feed.xml)
<!--
## Announcements
<ul>
{%- for post in collections.announcements reversed -%}
<li><a href="{{ post.url }}">{{ post.date | date: "%Y-%m-%d"}} - {{ post.data.title }} </a>🔥🔥</li>
{%- endfor -%}
</ul>
## Essays
[See the essays page &rarr;](@/essays/_index.md)
## Podcasts
* [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)
[Contact Us](mailto:podcasts@bigsky.software) to Join You on Your Podcast!
-->
[atom.xml](/atom.xml)

View File

@ -191,6 +191,7 @@ h4 {
display: none !important;
}
.hamburger {
display: revert;
float: right;
}
.nav {
@ -466,6 +467,7 @@ pre[class|="language"] {
padding: .5rem;
margin: .5rem 0;
border-radius: .25rem;
color: lightgray;
}
.zola-anchor {
font-size: 80%;

View File

@ -29,7 +29,7 @@
<rect y="60" width="100" height="20" style="fill:rgb(52, 101, 164)" rx="10"></rect>
</svg>
</div>
{% if section and section.path is starting_with("/examples/") %}
{% if page and page.path is starting_with("/examples") %}
<div id="nav" class="navigation"> <!-- don't boost on demo pages, sinon hijacks everything :/ -->
{% else %}
<div id="nav" class="navigation" hx-boost="true">