Add support for series title metadata
This commit is contained in:
parent
76eee516ff
commit
8fca29e91d
@ -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 }} » 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 }} »{% endif %}{% endcapture -%}
|
||||
<title>{{ page_title }} »{{ 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">
|
||||
|
@ -1,9 +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 }} • {% endif %}{% endcapture -%}
|
||||
<h1>{{ page.title }}</h1>
|
||||
{{ page.text }}
|
||||
<p><br><a href="{{ home_url | relative_link }}" title=Home>« Home</a>
|
||||
<p><br><a href="{{ home_url | relative_link }}" title="{{ home_name }}Home">« {{ 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,2 +1,2 @@
|
||||
Bit Badger Solutions
|
||||
20250308
|
||||
20250309
|
Loading…
x
Reference in New Issue
Block a user