Rename sub_heading -> subtitle and add scripture as separate field.

This commit is contained in:
Benjamin A. Shelton 2026-12-03 20:21:51 -07:00
commit 50bb6dc93a
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -5,6 +5,7 @@ import { type CollectionEntry } from 'astro:content';
import { dateFormat } from '../../utils/date';
import { urlfrag } from '../../utils/path';
import { titleCase } from '../../utils/strings';
import { Icon } from 'astro-icon/components';
interface Props {
note: CollectionEntry<'notes'>;
@ -45,7 +46,10 @@ const meta = `{
<div class="header">
<hgroup>
<h1 id="title">{note.data.title}</h1>
<h2 id="subtitle">{note.data.sub_heading}</h2>
<h2 id="subtitle">{note.data.subtitle}</h2>
{note.data.scripture ?
<h2 id="scripture"><Icon name="bible" /> {note.data.scripture}</h2>
: '' }
</hgroup>
<section id="meta">
<time>{dateFormat(note.data.date)}</time>