capsite/potluck: a weekly zine of issues, not a blog
- issues collection (ISO-week slug, week, dek, rich-text body); home, /issues, and /issues/<week> pages; seed/issues.json holds three sketched issues (W38-W40) from public diigo bookmarks, editorial lines marked (draft); issues-sketch.md is the dry run behind them - microformats: h-feed of h-entry lists; an issue is an h-entry (p-name, dt-published, p-summary, e-content); off-site links render as h-cite, /tag/<tag> links as rel-tag p-category (CiteLink.astro) - diigo tags: shown on each bookmark and attached to issues via the tag taxonomy (now posts + issues); /tag/<tag> lists issues - demo blog content gone: posts dropped from the seed, home page lists issues, site title/tagline, footer About widget, and About page rewritten; nav is Home / About / Issues; search and RSS cover issues - .column container gives potluck's pages the header's margins Generated-by: Claude Opus 5.5
This commit is contained in:
1 parent
b9f3156d6d
commit
fd7fd5728d
13 files changed
+2444
-1198
No files matched your search
@@ -0,0 +1,45 @@
|
||||
---
|
||||
import { getEmDashCollection } from "emdash";
|
||||
import Base from "../../layouts/Base.astro";
|
||||
|
||||
const { entries: issues, cacheHint } = await getEmDashCollection("issues", {
|
||||
orderBy: { published_at: "desc" },
|
||||
limit: 52,
|
||||
});
|
||||
|
||||
if (Astro.cache?.enabled) Astro.cache.set(cacheHint);
|
||||
---
|
||||
|
||||
<Base title="Issues" description="potluck, week by week">
|
||||
<div class="column">
|
||||
<h1>Issues</h1>
|
||||
{
|
||||
issues.length === 0 ? (
|
||||
<p>No issues yet.</p>
|
||||
) : (
|
||||
<ul class="h-feed">
|
||||
{issues.map((issue) => (
|
||||
<li class="h-entry">
|
||||
<span class="week">{issue.data.week}</span>{" "}
|
||||
<a class="u-url p-name" href={`/issues/${issue.id}`}>{issue.data.title}</a>
|
||||
{issue.data.dek && <>: <span class="p-summary">{issue.data.dek}</span></>}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
)
|
||||
}
|
||||
</div>
|
||||
</Base>
|
||||
|
||||
<style>
|
||||
h1,
|
||||
ul {
|
||||
margin-block: 1em;
|
||||
}
|
||||
ul {
|
||||
padding-inline-start: 1.5em;
|
||||
}
|
||||
.week {
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user