Commit c03e38b07c
Verified · cmc
Layout: unified · split
.github/workflows/deploy.yml added +39
| @@ -0,0 +1,39 @@ | |||
| 1 | name: Deploy to GitHub Pages | ||
| 2 | |||
| 3 | on: | ||
| 4 | push: | ||
| 5 | branches: [main] | ||
| 6 | workflow_dispatch: | ||
| 7 | |||
| 8 | permissions: | ||
| 9 | contents: read | ||
| 10 | pages: write | ||
| 11 | id-token: write | ||
| 12 | |||
| 13 | concurrency: | ||
| 14 | group: pages | ||
| 15 | cancel-in-progress: true | ||
| 16 | |||
| 17 | jobs: | ||
| 18 | build: | ||
| 19 | runs-on: ubuntu-latest | ||
| 20 | steps: | ||
| 21 | - uses: actions/checkout@v4 | ||
| 22 | - name: Build with Zola | ||
| 23 | uses: shalzz/zola-deploy-action@master | ||
| 24 | env: | ||
| 25 | BUILD_ONLY: true | ||
| 26 | BUILD_DIR: . | ||
| 27 | - uses: actions/upload-pages-artifact@v3 | ||
| 28 | with: | ||
| 29 | path: public | ||
| 30 | |||
| 31 | deploy: | ||
| 32 | needs: build | ||
| 33 | runs-on: ubuntu-latest | ||
| 34 | environment: | ||
| 35 | name: github-pages | ||
| 36 | url: ${{ steps.deployment.outputs.page_url }} | ||
| 37 | steps: | ||
| 38 | - id: deployment | ||
| 39 | uses: actions/deploy-pages@v4 | ||
.gitignore added +1
| @@ -0,0 +1 @@ | |||
| 1 | /public | ||
README.md added +33
| @@ -0,0 +1,33 @@ | |||
| 1 | # krz.sh | ||
| 2 | |||
| 3 | Source for [krz.sh](https://krz.sh) — the krazy warez website. Built with | ||
| 4 | [Zola](https://www.getzola.org/). | ||
| 5 | |||
| 6 | ## Develop | ||
| 7 | |||
| 8 | ```sh | ||
| 9 | zola serve | ||
| 10 | ``` | ||
| 11 | |||
| 12 | Then open http://127.0.0.1:1111. | ||
| 13 | |||
| 14 | ## Build | ||
| 15 | |||
| 16 | ```sh | ||
| 17 | zola build | ||
| 18 | ``` | ||
| 19 | |||
| 20 | Output is written to `public/`. | ||
| 21 | |||
| 22 | ## Structure | ||
| 23 | |||
| 24 | - `config.toml` — site configuration | ||
| 25 | - `content/` — pages (home, `services/`, `apps/`, `about/`) | ||
| 26 | - `templates/` — Tera templates | ||
| 27 | - `sass/main.scss` — styles (compiled to `main.css`) | ||
| 28 | - `static/` — assets, `favicon.svg`, and `CNAME` | ||
| 29 | |||
| 30 | ## Deploy | ||
| 31 | |||
| 32 | Pushing to `main` builds and publishes to GitHub Pages via | ||
| 33 | `.github/workflows/deploy.yml`. The custom domain is set in `static/CNAME`. | ||
config.toml added +17
| @@ -0,0 +1,17 @@ | |||
| 1 | base_url = "https://krz.sh" | ||
| 2 | title = "krazy warez" | ||
| 3 | description = "Small, durable software focused on utility, privacy, and control." | ||
| 4 | default_language = "en" | ||
| 5 | |||
| 6 | compile_sass = true | ||
| 7 | minify_html = true | ||
| 8 | build_search_index = false | ||
| 9 | generate_feeds = false | ||
| 10 | |||
| 11 | [markdown] | ||
| 12 | smart_punctuation = true | ||
| 13 | |||
| 14 | [extra] | ||
| 15 | email = "root@krz.sh" | ||
| 16 | github = "https://github.com/krazywarez" | ||
| 17 | tagline = "Small, durable software focused on utility, privacy, and control." | ||
content/_index.md added +22
| @@ -0,0 +1,22 @@ | |||
| 1 | +++ | ||
| 2 | title = "krazy warez" | ||
| 3 | +++ | ||
| 4 | |||
| 5 | ## about | ||
| 6 | |||
| 7 | krazy warez builds native apps and self-hosted, privacy-respecting frontends. two people, a few servers, no investors. local-first data, few dependencies, no ads, no tracking. | ||
| 8 | |||
| 9 | ## principles | ||
| 10 | |||
| 11 | - fixed scope. a tool that's done stays done. | ||
| 12 | - local-first. your data stays on your device, not our servers. | ||
| 13 | - fewer dependencies. less to break, less to trust. | ||
| 14 | - maintenance over features. we'd rather fix than pad. | ||
| 15 | |||
| 16 | ## status | ||
| 17 | |||
| 18 | active. slow. not recruiting. | ||
| 19 | |||
| 20 | ## greetz | ||
| 21 | |||
| 22 | everyone still writing plain text on purpose. | ||
content/apps/_index.md added +10
| @@ -0,0 +1,10 @@ | |||
| 1 | +++ | ||
| 2 | title = "Apps" | ||
| 3 | description = "Small, durable apps and privacy-focused frontends from krazy warez." | ||
| 4 | sort_by = "weight" | ||
| 5 | template = "section.html" | ||
| 6 | page_template = "page.html" | ||
| 7 | +++ | ||
| 8 | |||
| 9 | Native apps and privacy-respecting frontends. Each one is small, focused, and | ||
| 10 | built to last. Source is on [GitHub](https://github.com/krazywarez). | ||
content/apps/daybyday.md added +13
| @@ -0,0 +1,13 @@ | |||
| 1 | +++ | ||
| 2 | title = "Day by Day" | ||
| 3 | description = "An educational iOS app that helps children learn the calendar." | ||
| 4 | weight = 5 | ||
| 5 | |||
| 6 | [extra] | ||
| 7 | link = "https://github.com/krazywarez/daybyday" | ||
| 8 | link_label = "Source" | ||
| 9 | appstore = "https://apps.apple.com/app/day-by-day/id000000000" | ||
| 10 | +++ | ||
| 11 | |||
| 12 | Day by Day is a gentle, ad-free iOS app that helps children learn days, weeks, | ||
| 13 | months, and seasons. Designed for little hands, with no data collection. | ||
content/apps/domain-dig.md added +14
| @@ -0,0 +1,14 @@ | |||
| 1 | +++ | ||
| 2 | title = "Domain Dig" | ||
| 3 | description = "DNS and SSL analysis, in your pocket." | ||
| 4 | weight = 2 | ||
| 5 | |||
| 6 | [extra] | ||
| 7 | link = "https://github.com/krazywarez/domain-dig" | ||
| 8 | link_label = "Source" | ||
| 9 | appstore = "https://apps.apple.com/app/domain-dig/id000000000" | ||
| 10 | +++ | ||
| 11 | |||
| 12 | Domain Dig is an iOS app for inspecting DNS records and SSL certificates on the | ||
| 13 | go. Look up A, AAAA, MX, TXT, and more, and check certificate chains — no | ||
| 14 | account, no tracking. | ||
content/apps/hutch.md added +14
| @@ -0,0 +1,14 @@ | |||
| 1 | +++ | ||
| 2 | title = "Hutch" | ||
| 3 | description = "A native iOS client for Sourcehut." | ||
| 4 | weight = 1 | ||
| 5 | |||
| 6 | [extra] | ||
| 7 | link = "https://github.com/krazywarez/hutch" | ||
| 8 | link_label = "Source" | ||
| 9 | appstore = "https://apps.apple.com/app/hutch/id000000000" | ||
| 10 | +++ | ||
| 11 | |||
| 12 | Hutch is a fast, focused iOS client for [Sourcehut](https://sr.ht) — browse | ||
| 13 | repositories, read tickets, and follow activity without leaving your phone. | ||
| 14 | Built to be minimal and offline-friendly. | ||
content/apps/solar.md added +13
| @@ -0,0 +1,13 @@ | |||
| 1 | +++ | ||
| 2 | title = "Solar" | ||
| 3 | description = "A native iOS client for Cloudflare." | ||
| 4 | weight = 3 | ||
| 5 | |||
| 6 | [extra] | ||
| 7 | link = "https://github.com/krazywarez/solar" | ||
| 8 | link_label = "Source" | ||
| 9 | +++ | ||
| 10 | |||
| 11 | Solar is an iOS client for [Cloudflare](https://cloudflare.com) — manage DNS, | ||
| 12 | review analytics, and tweak settings across your zones from a clean, native | ||
| 13 | interface. | ||
content/services/_index.md added +42
| @@ -0,0 +1,42 @@ | |||
| 1 | +++ | ||
| 2 | title = "Services" | ||
| 3 | description = "Public self-hosted services from krazy warez." | ||
| 4 | sort_by = "weight" | ||
| 5 | +++ | ||
| 6 | |||
| 7 | Public services hosted by krazy warez. | ||
| 8 | |||
| 9 | These are maintained on a best-effort basis. Logging and retention are kept | ||
| 10 | minimal where practical. | ||
| 11 | |||
| 12 | ## proxies / front-ends | ||
| 13 | |||
| 14 | - [AnonymousOverflow](https://ao.krz.sh) — StackOverflow alternative front-end | ||
| 15 | - [SkunkyArt](https://art.krz.sh) — DeviantArt alternative front-end | ||
| 16 | - [BiblioReads](https://br.krz.sh) — Goodreads alternative front-end | ||
| 17 | - [BreezeWiki](https://bw.krz.sh) — Fandom alternative front-end | ||
| 18 | - [Gothub](https://gh.krz.sh) — alternative GitHub interface | ||
| 19 | - [hn](https://hn.krz.sh) — Hacker News proxy | ||
| 20 | - [LibremDB](https://ld.krz.sh) — IMDb alternative front-end | ||
| 21 | - [Binternet](https://pin.krz.sh) — Pinterest alternative front-end | ||
| 22 | - [Piped](https://pipedapi.krz.sh) — YouTube alternative front-end | ||
| 23 | - [Small](https://small.krz.sh) — Medium alternative front-end | ||
| 24 | |||
| 25 | ## other services | ||
| 26 | |||
| 27 | - [CyberChef](https://cc.krz.sh) — the Cyber Swiss Army Knife | ||
| 28 | - [Hat.sh](https://hat.krz.sh) — simple, fast, secure client-side file encryption | ||
| 29 | - [LibreTranslate](https://lt.krz.sh) — a translation engine | ||
| 30 | - [Mazanoke](https://mz.krz.sh) — local image optimizer that runs in your browser | ||
| 31 | - [Office](https://office.krz.sh) — the world's smallest office suite | ||
| 32 | - [SearXNG](https://search.krz.sh) — a privacy-respecting open metasearch engine | ||
| 33 | - [Send](https://send.krz.sh) — simple, private file sharing | ||
| 34 | |||
| 35 | ## services i built | ||
| 36 | |||
| 37 | - [1kb](https://rogue.krz.sh/1kb/#g) — ultra-small roguelike game | ||
| 38 | - [1mb](https://rogue.krz.sh/1mb/) — extension of 1kb, showing what's possible with 1mb | ||
| 39 | - [FlashPaper](https://paste.krz.sh) — one-time encrypted password and secret sharing | ||
| 40 | - [org-live](https://org.krz.sh) — a basic org-mode editor for the web | ||
| 41 | - [projects](https://projects.krz.sh) — bare nginx directory listing of web-based projects | ||
| 42 | - [Slash](https://slash.krz.sh) — bookmark and link sharing platform | ||
sass/main.scss added +170
| @@ -0,0 +1,170 @@ | |||
| 1 | // krazy warez — plain-text-on-purpose. ascii frames, uppercase labels, | ||
| 2 | // mono, near-black/white, mostly monochrome with one link accent. | ||
| 3 | |||
| 4 | @mixin dark { | ||
| 5 | --bg: #0a0a0b; | ||
| 6 | --surface: #101012; | ||
| 7 | --border: #2a2a2e; | ||
| 8 | --text: #f1f1ef; | ||
| 9 | --muted: #9b9b9e; | ||
| 10 | --dim: #6a6a6e; | ||
| 11 | --blue: #6f9dff; | ||
| 12 | --btn-bg: #f1f1ef; | ||
| 13 | --btn-fg: #0a0a0b; | ||
| 14 | --sel-bg: #6f9dff; | ||
| 15 | --sel-fg: #0a0a0b; | ||
| 16 | } | ||
| 17 | |||
| 18 | @mixin light { | ||
| 19 | --bg: #fbfbf9; | ||
| 20 | --surface: #ffffff; | ||
| 21 | --border: #d9d8d2; | ||
| 22 | --text: #17171a; | ||
| 23 | --muted: #5c5c5f; | ||
| 24 | --dim: #8a8a8d; | ||
| 25 | --blue: #2f6bd6; | ||
| 26 | --btn-bg: #17171a; | ||
| 27 | --btn-fg: #fbfbf9; | ||
| 28 | --sel-bg: #2f6bd6; | ||
| 29 | --sel-fg: #ffffff; | ||
| 30 | } | ||
| 31 | |||
| 32 | :root { @include dark; } | ||
| 33 | @media (prefers-color-scheme: light) { :root { @include light; } } | ||
| 34 | |||
| 35 | :root { | ||
| 36 | --mono: "SF Mono", "JetBrains Mono", "Fira Code", ui-monospace, Menlo, Consolas, monospace; | ||
| 37 | --max: 52rem; | ||
| 38 | } | ||
| 39 | |||
| 40 | * { box-sizing: border-box; } | ||
| 41 | html { -webkit-text-size-adjust: 100%; } | ||
| 42 | |||
| 43 | body { | ||
| 44 | margin: 0; | ||
| 45 | background: var(--bg); | ||
| 46 | color: var(--muted); | ||
| 47 | font-family: var(--mono); | ||
| 48 | font-size: 15.5px; | ||
| 49 | line-height: 1.7; | ||
| 50 | min-height: 100vh; | ||
| 51 | display: flex; | ||
| 52 | flex-direction: column; | ||
| 53 | -webkit-font-smoothing: antialiased; | ||
| 54 | } | ||
| 55 | |||
| 56 | a { color: var(--blue); text-decoration: none; } | ||
| 57 | a:hover { text-decoration: underline; text-underline-offset: 3px; } | ||
| 58 | |||
| 59 | ::selection { background: var(--sel-bg); color: var(--sel-fg); } | ||
| 60 | |||
| 61 | // ---- Header ---------------------------------------------------------------- | ||
| 62 | .site-header { | ||
| 63 | display: flex; | ||
| 64 | align-items: center; | ||
| 65 | justify-content: space-between; | ||
| 66 | gap: 1rem; | ||
| 67 | flex-wrap: wrap; | ||
| 68 | max-width: var(--max); | ||
| 69 | width: 100%; | ||
| 70 | margin: 0 auto; | ||
| 71 | padding: 1.5rem 1.25rem; | ||
| 72 | border-bottom: 1px solid var(--border); | ||
| 73 | } | ||
| 74 | .brand { color: var(--text); font-weight: 700; letter-spacing: -0.01em; } | ||
| 75 | .brand:hover { text-decoration: none; } | ||
| 76 | |||
| 77 | .site-nav { display: flex; align-items: center; gap: 0.7rem; font-size: 0.92rem; } | ||
| 78 | .site-nav a { color: var(--muted); } | ||
| 79 | .site-nav a:hover { color: var(--text); text-decoration: none; } | ||
| 80 | .sep { color: var(--dim); } | ||
| 81 | |||
| 82 | // ---- Main ------------------------------------------------------------------ | ||
| 83 | .site-main { | ||
| 84 | flex: 1; | ||
| 85 | max-width: var(--max); | ||
| 86 | width: 100%; | ||
| 87 | margin: 0 auto; | ||
| 88 | padding: 3rem 1.25rem 4rem; | ||
| 89 | } | ||
| 90 | |||
| 91 | // ---- Hero ------------------------------------------------------------------ | ||
| 92 | .tagline { color: var(--muted); font-size: 1rem; margin: 0 0 2rem; } | ||
| 93 | |||
| 94 | .hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0 0 1rem; } | ||
| 95 | .btn { | ||
| 96 | display: inline-block; | ||
| 97 | font-family: var(--mono); | ||
| 98 | font-size: 0.92rem; | ||
| 99 | padding: 0.6rem 1.1rem; | ||
| 100 | border: 1px solid var(--border); | ||
| 101 | color: var(--text); | ||
| 102 | background: transparent; | ||
| 103 | } | ||
| 104 | .btn:hover { text-decoration: none; border-color: var(--dim); } | ||
| 105 | .btn-primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); } | ||
| 106 | .btn-primary:hover { opacity: 0.88; border-color: var(--btn-bg); } | ||
| 107 | |||
| 108 | // ---- Prose ----------------------------------------------------------------- | ||
| 109 | .prose { max-width: 44rem; } | ||
| 110 | .page-label { | ||
| 111 | color: var(--text); | ||
| 112 | font-size: 1rem; | ||
| 113 | font-weight: 700; | ||
| 114 | text-transform: uppercase; | ||
| 115 | letter-spacing: 0.2em; | ||
| 116 | margin: 0 0 1.75rem; | ||
| 117 | } | ||
| 118 | .prose h2 { | ||
| 119 | color: var(--dim); | ||
| 120 | font-size: 0.82rem; | ||
| 121 | font-weight: 700; | ||
| 122 | text-transform: uppercase; | ||
| 123 | letter-spacing: 0.18em; | ||
| 124 | margin: 2.5rem 0 0.85rem; | ||
| 125 | } | ||
| 126 | .prose p { margin: 0 0 1rem; } | ||
| 127 | .prose a { color: var(--blue); } | ||
| 128 | .prose strong { color: var(--text); font-weight: 700; } | ||
| 129 | .prose ul { list-style: none; padding-left: 0; margin: 1rem 0; } | ||
| 130 | .prose li { margin: 0.4rem 0; padding-left: 1.3rem; position: relative; } | ||
| 131 | .prose li::before { content: "-"; position: absolute; left: 0; color: var(--dim); } | ||
| 132 | .prose hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; } | ||
| 133 | .prose .lede { color: var(--muted); margin: -0.5rem 0 1.25rem; } | ||
| 134 | |||
| 135 | .back { font-size: 0.9rem; margin: 0 0 1.5rem; } | ||
| 136 | .back a { color: var(--muted); } | ||
| 137 | |||
| 138 | // ---- Plain list (services / apps) ------------------------------------------ | ||
| 139 | .plainlist { list-style: none; padding: 0; margin: 1.5rem 0 0; } | ||
| 140 | .plainlist li { | ||
| 141 | padding: 0.85rem 0; | ||
| 142 | border-bottom: 1px solid var(--border); | ||
| 143 | display: flex; | ||
| 144 | flex-direction: column; | ||
| 145 | gap: 0.4rem; | ||
| 146 | } | ||
| 147 | .plainlist li:last-child { border-bottom: 0; } | ||
| 148 | .pl-main { color: var(--muted); } | ||
| 149 | .pl-name { color: var(--text); font-weight: 700; } | ||
| 150 | .pl-desc { color: var(--muted); } | ||
| 151 | .pl-links { display: flex; gap: 1.1rem; font-size: 0.88rem; } | ||
| 152 | .pl-link { color: var(--blue); } | ||
| 153 | .pl-link-off { color: var(--dim); cursor: not-allowed; } | ||
| 154 | |||
| 155 | @media (min-width: 40rem) { | ||
| 156 | .plainlist li { flex-direction: row; align-items: baseline; gap: 1rem; } | ||
| 157 | .pl-links { margin-left: auto; white-space: nowrap; } | ||
| 158 | } | ||
| 159 | |||
| 160 | // ---- Footer ---------------------------------------------------------------- | ||
| 161 | .site-footer { | ||
| 162 | max-width: var(--max); | ||
| 163 | width: 100%; | ||
| 164 | margin: 0 auto; | ||
| 165 | padding: 1.5rem 1.25rem 2.5rem; | ||
| 166 | border-top: 1px solid var(--border); | ||
| 167 | } | ||
| 168 | .foot-links { color: var(--dim); font-size: 0.85rem; margin: 0; } | ||
| 169 | .foot-links a { color: var(--muted); } | ||
| 170 | .foot-links a:hover { color: var(--text); } | ||
static/CNAME added +1
| @@ -0,0 +1 @@ | |||
| 1 | krz.sh | ||
static/favicon.svg added +4
| @@ -0,0 +1,4 @@ | |||
| 1 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"> | ||
| 2 | <rect width="32" height="32" fill="#0a0a0b"/> | ||
| 3 | <text x="16" y="22" font-family="ui-monospace, monospace" font-size="16" font-weight="700" fill="#6f9dff" text-anchor="middle">▚</text> | ||
| 4 | </svg> | ||
templates/base.html added +30
| @@ -0,0 +1,30 @@ | |||
| 1 | <!DOCTYPE html> | ||
| 2 | <html lang="{{ lang | default(value="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 %}</title> | ||
| 7 | <meta name="description" content="{% block description %}{{ config.description }}{% endblock description %}"> | ||
| 8 | <meta name="color-scheme" content="dark light"> | ||
| 9 | <link rel="stylesheet" href="{{ get_url(path="main.css", cachebust=true) | safe }}"> | ||
| 10 | <link rel="icon" href="{{ get_url(path="favicon.svg") | safe }}"> | ||
| 11 | </head> | ||
| 12 | <body> | ||
| 13 | <header class="site-header"> | ||
| 14 | <a class="brand" href="{{ get_url(path="/") | safe }}">krazy warez</a> | ||
| 15 | <nav class="site-nav"> | ||
| 16 | <a href="{{ get_url(path="/services/") | safe }}">services</a> | ||
| 17 | <span class="sep">·</span> | ||
| 18 | <a href="{{ get_url(path="/apps/") | safe }}">apps</a> | ||
| 19 | </nav> | ||
| 20 | </header> | ||
| 21 | |||
| 22 | <main class="site-main"> | ||
| 23 | {% block content %}{% endblock content %} | ||
| 24 | </main> | ||
| 25 | |||
| 26 | <footer class="site-footer"> | ||
| 27 | <p class="foot-links"><a href="mailto:{{ config.extra.email }}">{{ config.extra.email }}</a> · <a href="{{ config.extra.github }}">github</a> · © {{ now() | date(format="%Y") }} · public domain</p> | ||
| 28 | </footer> | ||
| 29 | </body> | ||
| 30 | </html> | ||
templates/index.html added +14
| @@ -0,0 +1,14 @@ | |||
| 1 | {% extends "base.html" %} | ||
| 2 | |||
| 3 | {% block content %} | ||
| 4 | <p class="tagline">small, durable software · privacy-first tools you control</p> | ||
| 5 | |||
| 6 | <div class="hero-actions"> | ||
| 7 | <a class="btn btn-primary" href="{{ get_url(path="/services/") | safe }}">view services →</a> | ||
| 8 | <a class="btn" href="{{ get_url(path="/apps/") | safe }}">browse apps</a> | ||
| 9 | </div> | ||
| 10 | |||
| 11 | <article class="prose"> | ||
| 12 | {{ section.content | safe }} | ||
| 13 | </article> | ||
| 14 | {% endblock content %} | ||
templates/page.html added +16
| @@ -0,0 +1,16 @@ | |||
| 1 | {% extends "base.html" %} | ||
| 2 | |||
| 3 | {% block title %}{{ page.title | lower }} · {{ config.title }}{% endblock title %} | ||
| 4 | {% block description %}{{ page.description | default(value=config.description) }}{% endblock description %} | ||
| 5 | |||
| 6 | {% block content %} | ||
| 7 | <p class="back"><a href="{{ section.permalink | default(value=get_url(path="/")) | safe }}">← back</a></p> | ||
| 8 | <article class="prose"> | ||
| 9 | <h1 class="page-label">{{ page.title }}</h1> | ||
| 10 | {% if page.description %}<p class="lede">{{ page.description }}</p>{% endif %} | ||
| 11 | {{ page.content | safe }} | ||
| 12 | {% if page.extra.link %} | ||
| 13 | <p><a class="btn btn-primary" href="{{ page.extra.link }}">{{ page.extra.link_label | default(value="source") | lower }} →</a></p> | ||
| 14 | {% endif %} | ||
| 15 | </article> | ||
| 16 | {% endblock content %} | ||
templates/section.html added +29
| @@ -0,0 +1,29 @@ | |||
| 1 | {% extends "base.html" %} | ||
| 2 | |||
| 3 | {% block title %}{{ section.title | lower }} · {{ config.title }}{% endblock title %} | ||
| 4 | {% block description %}{{ section.description | default(value=config.description) }}{% endblock description %} | ||
| 5 | |||
| 6 | {% block content %} | ||
| 7 | <article class="prose"> | ||
| 8 | <h1 class="page-label">{{ section.title }}</h1> | ||
| 9 | {{ section.content | safe }} | ||
| 10 | </article> | ||
| 11 | |||
| 12 | {% if section.pages %} | ||
| 13 | <ul class="plainlist"> | ||
| 14 | {% for page in section.pages %} | ||
| 15 | <li> | ||
| 16 | <span class="pl-main"> | ||
| 17 | <span class="pl-name">{{ page.title }}</span> | ||
| 18 | {% if page.description %}<span class="pl-desc">— {{ page.description }}</span>{% endif %} | ||
| 19 | </span> | ||
| 20 | <span class="pl-links"> | ||
| 21 | {% if page.extra.appstore %}<a class="pl-link" href="{{ page.extra.appstore }}">app store →</a> | ||
| 22 | {% else %}<span class="pl-link pl-link-off" aria-disabled="true">app store — soon</span>{% endif %} | ||
| 23 | {% if page.extra.link %}<a class="pl-link" href="{{ page.extra.link }}">{{ page.extra.link_label | default(value="source") | lower }} →</a>{% endif %} | ||
| 24 | </span> | ||
| 25 | </li> | ||
| 26 | {% endfor %} | ||
| 27 | </ul> | ||
| 28 | {% endif %} | ||
| 29 | {% endblock content %} | ||