feat: use page content field for home page description instead of subtitle header
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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'
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user