Files
blog/template.html
Pascal Maas a1fb581d21
All checks were successful
Build blog / build (push) Successful in 0s
Add blog template, build script and CI workflow
2026-10-03 14:50:40 +02:00

78 lines
3.0 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Pascal Maas · Blog</title>
<style>
:root {
--bg: #fbfaf7; --fg: #1d1d1b; --muted: #6b6a66; --line: #e4e1da;
--accent: #2f5d8a; --code-bg: #f1eee7;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #161616; --fg: #e8e6e1; --muted: #9a978f; --line: #2c2b29;
--accent: #8ab4dc; --code-bg: #222120;
}
}
* { box-sizing: border-box; }
body {
margin: 0; background: var(--bg); color: var(--fg);
font: 17px/1.65 Georgia, "Iowan Old Style", "Times New Roman", serif;
}
.wrap { max-width: 44rem; margin: 0 auto; padding: 3rem 1rem 4rem; }
a { color: var(--accent); }
h1, h2, h3, .meta, nav, footer { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.site-header h1 { margin: 0; font-size: 1.6rem; letter-spacing: -0.01em; }
.site-header p { margin: .25rem 0 0; color: var(--muted); }
nav { margin: 2.5rem 0 1rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
nav h2 { margin: 0 0 .5rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
nav ol { margin: 0; padding: 0; list-style: none; }
nav li { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
nav li time { color: var(--muted); font-size: .85rem; white-space: nowrap; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
article { padding: 2.5rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
article header h2 { margin: 0; font-size: 1.45rem; line-height: 1.25; }
article header h2 a { color: inherit; text-decoration: none; }
article header h2 a:hover { color: var(--accent); }
.meta { margin: .35rem 0 1.25rem; font-size: .85rem; color: var(--muted); display: flex; gap: .75rem; align-items: center; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 0 .55rem; }
img { max-width: 100%; height: auto; }
pre, code { font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; font-size: .88em; }
code { background: var(--code-bg); padding: .1em .3em; border-radius: 4px; }
pre { background: var(--code-bg); padding: 1rem; border-radius: 6px; overflow-x: auto; }
pre code { background: none; padding: 0; }
blockquote { margin: 1.25rem 0; padding-left: 1rem; border-left: 3px solid var(--line); color: var(--muted); }
table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--line); padding: .4rem .6rem; text-align: left; }
footer { margin-top: 2.5rem; font-size: .85rem; color: var(--muted); }
</style>
</head>
<body>
<div class="wrap">
<header class="site-header">
<h1>Pascal Maas</h1>
<p>Notes and writing.</p>
</header>
<nav aria-label="Posts">
<h2>Posts</h2>
<ol>
{{toc}}
</ol>
</nav>
<main>
{{posts}}
</main>
<footer>© {{year}} Pascal Maas</footer>
</div>
</body>
</html>