summaryrefslogtreecommitdiffstatshomepage
path: root/www/themes
diff options
context:
space:
mode:
authorWilliam Jackson <565174+williamjacksn@users.noreply.github.com>2025-01-29 11:53:42 -0600
committerGitHub <noreply@github.com>2025-01-29 10:53:42 -0700
commit6d39919b996ec2965dbde2585dcdc8dc9bd55ffd (patch)
treeb0965300e49576fe345a14543c5352fca133b82e /www/themes
parentf760d3f27db5402bf71be2ac44a8b3ccbddb897a (diff)
downloadhtmx-6d39919b996ec2965dbde2585dcdc8dc9bd55ffd.tar.gz
htmx-6d39919b996ec2965dbde2585dcdc8dc9bd55ffd.zip
Essay descriptions (#3154)
* Add description to architectural-sympathy And fix some typos * Add description to codin-dirty * Add description to complexity-budget * Add description to does-hypermedia-scale * Add description to future and fix date * Add description to hateoas * Add description to how-did-rest-come-to-mean-... * Add description to htmx-sucks * Add description to hypermedia-apis-vs-data-apis * Add description to hypermedia-clients * Add description to hypermedia-driven-applications * Update hypermedia-friendly-scripting.md * Update hypermedia-on-whatever-youd-like.md * Update is-htmx-another-javascript-framework.md * Update locality-of-behaviour.md * Update lore.md * Update mvc.md * Update no-build-step.md * Update prefer-if-statements.md * Update rest-copypasta.md * Update right-click-view-source.md * Update spa-alternative.md * Update splitting-your-apis.md * Update template-fragments.md * Update rest-explained.md * Update two-approaches-to-decoupling.md * Update vendoring.md * Remove double-quote characters from descriptions * Add description block to demo.html * Update view-transitions.md * Update web-security-basics-with-htmx.md * Update webcomponents-work-great.md * Update when-to-use-hypermedia.md * Update why-gumroad-didnt-choose-htmx.md * Update why-tend-not-to-use-content-negotiation.md * Update you-cant.md * Fix description for htmx-sucks * Use `authors` built-in variable Instead of the custom `author` taxonomy * Descriptions and typos in interviews * That double word is actually correct
Diffstat (limited to 'www/themes')
-rw-r--r--www/themes/htmx-theme/templates/essay.html4
-rw-r--r--www/themes/htmx-theme/templates/page.html8
2 files changed, 10 insertions, 2 deletions
diff --git a/www/themes/htmx-theme/templates/essay.html b/www/themes/htmx-theme/templates/essay.html
index ec8ec710..bc4dc6af 100644
--- a/www/themes/htmx-theme/templates/essay.html
+++ b/www/themes/htmx-theme/templates/essay.html
@@ -30,8 +30,8 @@
{% set page_title = page.title -%}
{% if show_title %}<h1>{{ page_title | safe }}</h1>{% endif %}
- {% if show_author and page.taxonomies.author %}
- <address>{{ page.taxonomies.author | join(sep=", ") }}</address>
+ {% if show_author and page.authors | length > 0 %}
+ <address>{{ page.authors | join(sep=", ") }}</address>
<time>{{ page.date | date(format="%B %d, %Y") }}</time>
{% endif %}
diff --git a/www/themes/htmx-theme/templates/page.html b/www/themes/htmx-theme/templates/page.html
index 256374fa..9d958933 100644
--- a/www/themes/htmx-theme/templates/page.html
+++ b/www/themes/htmx-theme/templates/page.html
@@ -12,6 +12,14 @@
{% endif -%}
{% endblock title %}
+{% block description %}
+ {%- if page.description -%}
+ {{- page.description | safe -}}
+ {%- else -%}
+ {{- super() -}}
+ {%- endif -%}
+{% endblock description %}
+
{% block content %}
{% if page.extra and page.extra.show_title is defined -%}
{% set show_title = page.extra.show_title -%}