htmx/www/templates/page.html
Christian Tanul 25c2a08617
Pimp out the website for htmx 4.0 (#3499)
flatten website directory structure and redesign UI
- move all templates from themes/htmx-theme/templates/ to www/templates/
- move all static assets from themes/htmx-theme/static/ to www/static/
- remove theme layer and update config.toml
- add tailwind css with typography plugin
- update hero section with 3D effects and subtle synthwave aesthetic
- update header with improved design and navigation
- add shortcut for search bar in header (CMD+K on macos, CTRL+K elsewhere)
- add status bar in header that displays title=... attribute on hover for any element
- update footer with improved design and navigation
- rename "examples" to "patterns" throughout site and docs
- reorganize patterns page from 7 categories to 4 (loading, interaction, display, advanced)
- add mac os9 finder-style design to patterns page with Chicago FLF font (classic OS9 window title font)
- add sidebar table of contents for /docs/, /reference/, and /htmx-4/ pages (mobile version still TODO)
- add `npm run site` script that uses npx for tailwindcss and zola-bin (no external dependencies needed)
- remove github buttons.js dependency and replace with custom buttons
- consolidate sponsor images into www/static/img/sponsors/ with logo-<company>.png|svg format
- standardize all image filenames to lowercase kebab-case
- clean up unused sponsor images from www/static/img/
- create construction_warning() shortcode for work-in-progress sections
- add reusable template components (toc, anchor links, sponsors shortcode)
- add horse easter egg when URL includes ?horse=true
- update website htmx.js to latest version
- update npm dependencie
2025-11-09 10:53:39 -07:00

37 lines
1.1 KiB
HTML

{% extends "base.html" %}
{% block title %}
{% if page.title -%}
{% if page.path is starting_with("/extensions/") -%}
{% set html_title = "&lt;/&gt; htmx ~ The " ~ page.title ~ " Extension" -%}
{% elif page.path is starting_with("/attributes/") -%}
{% set html_title = "&lt;/&gt; htmx ~ " ~ page.title ~ " Attribute" -%}
{% else -%}
{% set html_title = "&lt;/&gt; htmx ~ " ~ page.title -%}
{% endif -%}
{% 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 -%}
{% else -%}
{% set show_title = true -%}
{% endif -%}
{% if page.path is starting_with("/attributes") -%}
{% set page_title = "<code>" ~ page.title ~ "</code>" -%}
{% else -%}
{% set page_title = page.title -%}
{% endif -%}
{% if show_title %}<h1>{{ page_title | safe }}</h1>{% endif %}
{{ page.content | safe }}
{% endblock content %}