tonybtw

https://git.tonybtw.com/tonybtw.git git://git.tonybtw.com/tonybtw.git

Files

040000 assets/
040000 content/
100644 .envrc
100644 .gitignore
100644 flake.lock
100644 flake.nix
100755 gen.sh
100644 Makefile
100644 readme.org
100644 template.html

Recent commits

b5981af replaced hugo with a pandoc and makefile build tonybanters 2026-08-07
f5eaa1a Matrix feds. tonybanters 2026-02-04
214a9bd Merge remote-tracking branch 'tony/master' tonybtw 2025-12-04
86bf17f Added quickshell tonybtw 2025-12-04
de890ee Added xmonad guide and updated typos tonybtw 2025-11-27
7dceea5 Added tmux tonybanters 2025-11-13
49ec961 Fixed typos tonybtw 2025-11-11
a5f81fa Added niri. tonybtw 2025-11-06
c40ad57 added lfs manual tonybtw 2025-10-23
6c27c23 Added mangowc tonybtw 2025-10-16

View all commits

readme.org

#+TITLE: tonybtw.com

* About
Source for [[https://tonybtw.com][tonybtw.com]], a static site built from Markdown with a
=Makefile= and [[https://pandoc.org][pandoc]]. No Hugo, no framework, no npm. The look matches
[[https://forums.tonybtw.com][forums.tonybtw.com]]: Tokyo Night colours, Iosevka, and the vim-style modeline
along the bottom.

* Layout
- =content/= — Markdown sources (the source of truth).
  =tutorial/<slug>/index.md= and =community/<slug>/index.md=.
- =template.html= — the one pandoc HTML template (nav + article + modeline).
- =gen.sh= — builds the derived pages (home, section lists, tag pages, support)
  from front matter, through the same template.
- =assets/= — =css/site.css=, =fonts/= (subset Iosevka woff2), =img/=, =.well-known/=.
- =Makefile= — =content/**/*.md= -> =public/**/*.html= via pandoc, then =gen.sh=,
  then copies =assets/=.
- =public/= — build output (git-ignored).

* Requirements
- [[https://nixos.org/download.html][Nix]] with flakes enabled. The dev shell provides pandoc, make, python3.

* Usage
#+begin_src sh
nix develop
make            # builds ./public
make serve      # builds, then serves ./public at http://localhost:1313
#+end_src

Reproducible build without a dev shell:
#+begin_src sh
nix build       # result -> ./result
#+end_src

* Writing a tutorial
Create =content/tutorial/<slug>/index.md= with YAML front matter, then the body:
#+begin_src yaml
---
title: "My Tutorial"
date: 2026-01-01
description: "One-line blurb used on cards and meta tags."
image: "/img/my-tutorial.png"
video: "https://www.youtube.com/watch?v=XXXXXXXXXXX"   # optional video hero
---
#+end_src
The heading structure (=##=, =###=) becomes the sidebar table of contents. Put
the card thumbnail (16:9) in =assets/img/=.

* Contributing (community)
1. Copy an existing post to =content/community/<your-slug>/index.md=.
2. Front matter: =title=, =date=, =author=, and =tags: ["a", "b"]=
   (tags become =/tags/= pages).
3. Put screenshots under =assets/img/community/<your-name>/= and reference them
   in the body as =![alt](/img/community/you/shot.png)=.
4. Submit a pull request with your =index.md= and images.