Simplify header and remove bg image.

Background images don't work well on mobile, and there's no way to make
it look particularly great.
This commit is contained in:
Benjamin A. Shelton 2026-06-11 18:57:20 -06:00
commit cea3a96bc5
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -38,19 +38,19 @@ const meta = `{
<Layout>
{meta && <script type="application/ld+json" is:inline set:html={meta} />}
<article class="mx-auto p-4 lg:p-0 lg:max-w-6xl xl:p-0 xl:max-w-6xl 2xl:p-0 2xl:max-w-6xl" id="notes-page">
<div class:list={[`bg-[url(${urlfrag(base, note.data.post_image)})]`, 'bg-gray-100 rounded-md p-6']}>
<hgroup>
<h1 id="title">{note.data.title}</h1>
<h2 id="subtitle">{note.data.sub_heading}</h2>
</hgroup>
<section id="meta">
<time>{dateFormat(note.data.date)}</time>
<span class="divider">
<ul class="tags">
{note.data.tags?.filter((tag: string) => (tag != 'notes')).map((tag: string) => (
<li>{titleCase(tag)}</li>
))}</ul>
</section>
<div class="header">
<hgroup>
<h1 id="title">{note.data.title}</h1>
<h2 id="subtitle">{note.data.sub_heading}</h2>
</hgroup>
<section id="meta">
<time>{dateFormat(note.data.date)}</time>
<span class="divider">
<ul class="tags">
{note.data.tags?.filter((tag: string) => (tag != 'notes')).map((tag: string) => (
<li>{titleCase(tag)}</li>
))}</ul>
</section>
</div>
<div id="content" class="p-6">
<Content />