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 93d6ad77ee
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -38,19 +38,19 @@ const meta = `{
<Layout> <Layout>
{meta && <script type="application/ld+json" is:inline set:html={meta} />} {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"> <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']}> <div class="header">
<hgroup> <hgroup>
<h1 id="title">{note.data.title}</h1> <h1 id="title">{note.data.title}</h1>
<h2 id="subtitle">{note.data.sub_heading}</h2> <h2 id="subtitle">{note.data.sub_heading}</h2>
</hgroup> </hgroup>
<section id="meta"> <section id="meta">
<time>{dateFormat(note.data.date)}</time> <time>{dateFormat(note.data.date)}</time>
<span class="divider"> <span class="divider">
<ul class="tags"> <ul class="tags">
{note.data.tags?.filter((tag: string) => (tag != 'notes')).map((tag: string) => ( {note.data.tags?.filter((tag: string) => (tag != 'notes')).map((tag: string) => (
<li>{titleCase(tag)}</li> <li>{titleCase(tag)}</li>
))}</ul> ))}</ul>
</section> </section>
</div> </div>
<div id="content" class="p-6"> <div id="content" class="p-6">
<Content /> <Content />