1<!DOCTYPE html>2<html lang="en">3<head>4 <meta charset="utf-8">5 <meta name="viewport" content="width=device-width, initial-scale=1">6 <title>{% block title %}{{ config.title }}{% endblock %}</title>7 <style>8 :root { --bg: #fafafa; --fg: #222; --accent: #2563eb; --muted: #666; --border: #e5e7eb; --code-bg: #f3f4f6; }9 @media (prefers-color-scheme: dark) {10 :root { --bg: #1a1a2e; --fg: #e0e0e0; --accent: #60a5fa; --muted: #999; --border: #333; --code-bg: #252540; }11 }12 * { margin: 0; padding: 0; box-sizing: border-box; }13 body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--fg); line-height: 1.6; }14 .container { max-width: 640px; margin: 0 auto; padding: 2rem 1rem; }15 header { margin-bottom: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }16 header h1 { font-size: 1.5rem; }17 header h1 a { color: var(--fg); text-decoration: none; }18 header p { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }19 nav { margin-top: 0.5rem; display: flex; gap: 1rem; }20 nav a { color: var(--accent); text-decoration: none; font-size: 0.9rem; }21 nav a:hover { text-decoration: underline; }22 a { color: var(--accent); }23 h1, h2, h3 { margin: 1.5rem 0 0.5rem; }24 h1 { font-size: 1.75rem; }25 h2 { font-size: 1.3rem; }26 p { margin-bottom: 1rem; }27 ul, ol { margin: 0 0 1rem 1.5rem; }28 pre { background: var(--code-bg); padding: 1rem; border-radius: 6px; overflow-x: auto; margin-bottom: 1rem; font-size: 0.875rem; }29 code { font-family: "SF Mono", Menlo, monospace; font-size: 0.875em; }30 :not(pre) > code { background: var(--code-bg); padding: 0.15em 0.3em; border-radius: 3px; }31 .post-list { list-style: none; margin-left: 0; }32 .post-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }33 .post-list .date { color: var(--muted); font-size: 0.8rem; }34 .post-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }35 footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.8rem; }36 </style>37</head>38<body>39 <div class="container">40 <header>41 <h1><a href="{{ config.base_url }}">{{ config.title }}</a></h1>42 <p>{{ config.description }}</p>43 <nav>44 <a href="{{ config.base_url }}">home</a>45 <a href="{{ config.base_url }}about/">about</a>46 </nav>47 </header>48 <main>49 {% block content %}{% endblock %}50 </main>51 <footer>52 built with <a href="https://www.getzola.org">zola</a> on <a href="https://sublimated.com">sublimated</a>53 </footer>54 </div>55</body>56</html> v1 of v9
commit a15dd6d
message create base.html via macOS
author anton
date Apr 19, 2026
size 2.6 KB