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 26 additions and 18 deletions
+19 -16
View File
@@ -3,15 +3,21 @@
<meta charset=utf-8>
<meta name=viewport content="width=device-width">
<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">
{% page_head -%}
<body hx-boost:inherited=true hx-target:inherited=main hx-indicator:inherited=#loadOverlay
hx-swap:inherited="innerHTML show:top showTarget:body">
<body hx-boost=true hx-target=main hx-indicator=#loadOverlay hx-swap="innerHTML show:body:top">
<header class=site-header>
<div class=header-logo>
<a href={{ "" | relative_link }}>
<img src={{ "bitbadger.png" | theme_asset }}
<a href="{{ "" | relative_link }}">
<img src="{{ "bitbadger.png" | theme_asset }}"
alt="A cartoon badger looking at a computer screen, with his paw on a mouse"
title="Bit Badger Solutions">
</a>
@@ -20,31 +26,28 @@
<div class=header-spacer> &nbsp; </div>
<div class=header-social>
<a href=https://twitter.com/Bit_Badger title="Bit_Badger on Twitter" target=_blank>
<img src={{ "twitter.png" | theme_asset }} alt="Twitter">
<img src="{{ "twitter.png" | theme_asset }}" alt="Twitter">
</a> &nbsp;
<a href=https://www.facebook.com/bitbadger.solutions title="Bit Badger Solutions on Facebook" target=_blank>
<img src={{ "facebook.png" | theme_asset }} alt="Facebook">
<img src="{{ "facebook.png" | theme_asset }}" alt="Facebook">
</a>
</div>
</header>
<div class=load-overlay id=loadOverlay><h1>Loading&hellip;</h1></div>
<div class=load-overlay id="loadOverlay"><h1>Loading&hellip;</h1></div>
<main>{{ content }}</main>
<footer hx-boost:inherited=false>
<footer hx-boost=false>
<div>
<small>
{% if is_logged_on -%}
<a href={{ "admin/dashboard" | relative_link }}>Dashboard</a> ~
<form id=mwl-log-off method=post action={{ "user/log-off" | relative_link }} style="display:inline">
<a href={{ "user/log-off" | relative_link}}
onclick="document.getElementById('mwl-log-off').submit(); return false">Log Off</a>
</form>
<a href="{{ "admin/dashboard" | relative_link }}">Dashboard</a> ~
<a href="{{ "user/log-off" | relative_link }}">Log Off</a>
{% else %}
<a href={{ "user/log-on" | relative_link }}>Log On</a>
<a href="{{ "user/log-on" | relative_link }}">Log On</a>
{% endif %}
</small>
</div>
<div class=footer-by>
A <strong><a href={{ "" | relative_link }}>Bit Badger Solutions</a></strong> original design
A <strong><a href="{{ "" | relative_link }}">Bit Badger Solutions</a></strong> original design
</div>
</footer>
{% page_foot %}
+6 -1
View File
@@ -1,7 +1,12 @@
<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>
{{ 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 -%}
<p><small><a hx-boost=false href="{{ page | edit_page_link }}">Edit This Page</a></small>
{% endif %}
+1 -1
View File
@@ -1,2 +1,2 @@
Bit Badger Solutions
20260719
20250309