Rename sub_heading -> subtitle and add scripture as separate field.
This commit is contained in:
parent
1d0f25a3b4
commit
50bb6dc93a
1 changed files with 5 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue