Add support for series title metadata

This commit is contained in:
2025-03-09 21:47:45 -04:00
parent 76eee516ff
commit 8fca29e91d
3 changed files with 13 additions and 3 deletions

View File

@@ -3,7 +3,14 @@
<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=true hx-target=main hx-indicator=#loadOverlay hx-swap="innerHTML show:body:top">