- CSS 24.9%
- TypeScript 23.6%
- JavaScript 16.9%
- HTML 14.3%
- Python 6.9%
- Other 13.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
Tag pages now mix posts and talks, so count entries rather than posts and mark talks with a chip like TILs. |
||
| .forgejo/workflows | ||
| archetypes | ||
| assets | ||
| content | ||
| data | ||
| i18n | ||
| layouts | ||
| nix | ||
| scripts | ||
| static | ||
| .dockerignore | ||
| .editorconfig | ||
| .envrc | ||
| .gitignore | ||
| .markdownlint.yaml | ||
| AGENTS.md | ||
| cspell.json | ||
| Dockerfile | ||
| flake.lock | ||
| flake.nix | ||
| fly.toml | ||
| hugo.toml | ||
| README.md | ||
| Taskfile.yml | ||
Blog
My personal website and blog, built with Hugo and published at https://haseebmajid.dev.
The blog can also be read over SSH: ssh -p 23234 ssh.haseebmajid.dev.
Usage
The Nix devshell (flake.nix, activated by direnv) provides Hugo and every other tool.
See AGENTS.md for more detail on running and checking the site locally.
# Serve the site with drafts and future posts
task start_server
# Production build into public/
task build
# Create a new post bundle on its own branch
task new_post
task fonts fetches the licensed MonoLisa webfont from the private nixicle-assets repo.
Without access, the site falls back to a system monospace font.
Deployment
Forgejo Actions (.forgejo/workflows/deploy.yml) builds the site and deploys it to Fly
(haseebmajid-sites) on every push to main.
- The image is static-web-server serving
public/, configured bysws.toml, which Hugo generates fromdata/redirects.toml(layouts/home.sws). - Adding the
previewlabel to a PR publishes it athttps://haseebmajid.dev/preview/pr-<n>/(.forgejo/workflows/preview.yml,scripts/preview.sh). - Secrets:
FLY_API_TOKEN(deploy token for the app) andNIXICLE_ASSETS_TOKEN(read-only, for MonoLisa).
Talks and slides
The talks page lists every talk with links to its slides, PDF
and recording. Slide sources live in the separate
slides repository, published at
https://slides.haseebmajid.dev/.
data/redirects.toml keeps the old /slides/... URLs (printed QR codes, conference links) and a few
merged tag feeds redirecting permanently. Do not remove these mappings.
Theme
The theme started as a fork of PaperModX and is now a standalone theme in layouts/ and
assets/. Some of its features:
- Open Graph cards generated by Hugo (
layouts/_partials/og-image.html). - Full-text search with Fuse.js, loaded on demand.
- Light/dark mode and two palettes (Catppuccin and Fireside).
- Mermaid diagrams, terminal-style code blocks, code tabs, sidenotes and notice admonitions.
- Series, TIL, talks, projects,
/usesand a site-history page. - Privacy-friendly page views with self-hosted Umami.