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 compile_sass = false
build_search_index = false build_search_index = false
generate_feed = true
taxonomies = [ taxonomies = [
{ name = "tag", render = false, feed = true } { name = "tag", render = false, feed = true }
@ -11,7 +12,7 @@ taxonomies = [
[markdown] [markdown]
highlight_code = true highlight_code = true
highlight_theme = "visual-studio-dark" highlight_theme = "two-dark"
external_links_target_blank = true external_links_target_blank = true
smart_punctuation = true smart_punctuation = true
@ -20,3 +21,18 @@ paths_keep_dates = true
[extra] [extra]
# Put all your custom variables here # 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" title = "A Real World React -> htmx Port"
date = 2022-09-29
updated = 2022-10-15
[taxonomies] [taxonomies]
tag = ["posts"] tag = ["posts"]
+++ +++

View File

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

View File

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

View File

@ -1,5 +1,7 @@
+++ +++
title = "HATEOAS" title = "HATEOAS"
date = 2021-10-16
updated = 2022-02-06
[taxonomies] [taxonomies]
tag = ["posts"] tag = ["posts"]
[extra] [extra]
@ -240,27 +242,6 @@ necessity for building RESTful systems.
letter-spacing: 0; 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 { .content a {
font-variant: all-small-caps; font-variant: all-small-caps;
letter-spacing: .08em; letter-spacing: .08em;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,7 @@
+++ +++
title = "REST - Explained For Beginners" 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, 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" title = "SPA Alternative"
date = 2020-10-29
updated = 2022-02-06
[taxonomies] [taxonomies]
tag = ["posts"] tag = ["posts"]
+++ +++

View File

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

View File

@ -1,5 +1,7 @@
+++ +++
title = "Template Fragments" title = "Template Fragments"
date = 2022-08-03
updated = 2023-03-18
[taxonomies] [taxonomies]
tag = ["posts"] 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) * [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) * [chameleon_partials package](https://github.com/mikeckennedy/chameleon_partials)
* [htmlgenerator](https://github.com/basxsoftwareassociation/htmlgenerator) * [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. 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?" title = "When Should You Use Hypermedia?"
date = 2022-10-23
updated = 2023-02-03
[taxonomies] [taxonomies]
tag = ["posts"] 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) ## Atom Feed (Announcements & Essays)
[feed.xml](/feed.xml) [atom.xml](/atom.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!
-->

View File

@ -191,6 +191,7 @@ h4 {
display: none !important; display: none !important;
} }
.hamburger { .hamburger {
display: revert;
float: right; float: right;
} }
.nav { .nav {
@ -466,6 +467,7 @@ pre[class|="language"] {
padding: .5rem; padding: .5rem;
margin: .5rem 0; margin: .5rem 0;
border-radius: .25rem; border-radius: .25rem;
color: lightgray;
} }
.zola-anchor { .zola-anchor {
font-size: 80%; 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> <rect y="60" width="100" height="20" style="fill:rgb(52, 101, 164)" rx="10"></rect>
</svg> </svg>
</div> </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 :/ --> <div id="nav" class="navigation"> <!-- don't boost on demo pages, sinon hijacks everything :/ -->
{% else %} {% else %}
<div id="nav" class="navigation" hx-boost="true"> <div id="nav" class="navigation" hx-boost="true">