feat: use page content field for home page description instead of subtitle header

This commit is contained in:
2026-06-21 10:49:54 +02:00
parent ff9ea3a0a7
commit 3018ae16ff
3 changed files with 8 additions and 8 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
--- ---
title: Into the East title: Into the East
subtitle: 'A few moments from past journeys'
visible: false visible: false
routable: true routable: true
--- ---
A few moments from past journeys.
+4 -5
View File
@@ -17,8 +17,7 @@ form:
validate: validate:
required: true required: true
header.subtitle: content:
type: text type: markdown
label: Subtitle label: Content
placeholder: 'A few moments from past journeys' help: 'Shown below the title in between-trips mode'
help: 'Short line shown below the title in between-trips mode'
+2 -2
View File
@@ -252,8 +252,8 @@ homeMap.on('load', function () {
<div class="home-feed-col"> <div class="home-feed-col">
<div class="home-highlights-header"> <div class="home-highlights-header">
<h1 class="home-highlights-title">{{ page.title }}</h1> <h1 class="home-highlights-title">{{ page.title }}</h1>
{% if page.header.subtitle %} {% if page.content %}
<p class="home-highlights-subtitle">{{ page.header.subtitle }}</p> <div class="home-highlights-subtitle">{{ page.content|raw }}</div>
{% endif %} {% endif %}
</div> </div>