2 Commits

Author SHA1 Message Date
danieljsummers 8fca29e91d Add support for series title metadata 2025-03-09 21:47:45 -04:00
danieljsummers 76eee516ff Add home_url metadata handling 2025-03-08 15:02:14 -05:00
3 changed files with 15 additions and 3 deletions
+8 -1
View File
@@ -3,7 +3,14 @@
<meta charset=utf-8> <meta charset=utf-8>
<meta name=viewport content="width=device-width"> <meta name=viewport content="width=device-width">
<meta name=htmx-config content='{"historyCacheSize":0}'> <meta name=htmx-config content='{"historyCacheSize":0}'>
<title>{{ page_title }} &raquo; Bit Badger Solutions</title> {%- if page -%}
{%- assign series_name = page.metadata | value: "series_name" -%}
{%- if series_name == "-- series_name not found --" %}{% assign series_name = "" %}{% endif -%}
{%- else -%}
{%- assign series_name = "" -%}
{%- endif -%}
{%- capture extra_title %}{% if series_name == "" %}{% else %} {{ series_name }} &raquo;{% endif %}{% endcapture -%}
<title>{{ page_title }} &raquo;{{ extra_title }} Bit Badger Solutions</title>
<link rel=stylesheet href="https://fonts.googleapis.com/css?family=Oswald|Raleway"> <link rel=stylesheet href="https://fonts.googleapis.com/css?family=Oswald|Raleway">
{% page_head -%} {% page_head -%}
<body hx-boost=true hx-target=main hx-indicator=#loadOverlay hx-swap="innerHTML show:body:top"> <body hx-boost=true hx-target=main hx-indicator=#loadOverlay hx-swap="innerHTML show:body:top">
+6 -1
View File
@@ -1,7 +1,12 @@
<article class="content auto"> <article class="content auto">
{%- assign home_url = page.metadata | value: "home_url" -%}
{%- if home_url == "-- home_url not found --" %}{% assign home_url = "" %}{% endif -%}
{%- assign series_name = page.metadata | value: "series_name" -%}
{%- if series_name == "-- series_name not found --" %}{% assign series_name = "" %}{% endif -%}
{%- capture home_name %}{% if series_name == "" %}{% else %}{{ series_name }} &bull; {% endif %}{% endcapture -%}
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>
{{ page.text }} {{ page.text }}
<p><br><a href="{{ "" | relative_link }}" title=Home>&laquo; Home</a> <p><br><a href="{{ home_url | relative_link }}" title="{{ home_name }}Home">&laquo; {{ home_name }}Home</a>
{% if is_logged_on -%} {% if is_logged_on -%}
<p><small><a hx-boost=false href="{{ page | edit_page_link }}">Edit This Page</a></small> <p><small><a hx-boost=false href="{{ page | edit_page_link }}">Edit This Page</a></small>
{% endif %} {% endif %}
+1 -1
View File
@@ -1,2 +1,2 @@
Bit Badger Solutions Bit Badger Solutions
20240724 20250309