Skip to content

brege/gastrophysics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gastrophysics | Demo

A Hugo theme for people with split careers. It is print- and e-reader-friendly, with sectional CVs, recipes, and tasting menus.


Gastrophysics started as a fork of PaperMod for better presenting multiple career trajectories. It then moved toward a slightly textbook-y portfolio flair mixed with the editorial signatures of The Atlantic.

Interested in Markdown reuse? See Related Projects.

Quickstart

Assuming you've installed Hugo:

git clone https://github.com/brege/gastrophysics.git
cd gastrophysics/exampleSite
hugo server

Gallery


Hero Page

Restaurant Menu

CV Layout (via cv.yaml)

Features

  • Light/dark mode with automatic system detection
  • 11 color palettes and palette picker widget
  • Palette-aware syntax highlighting
  • Sectional CV layout driven by cv.yaml
  • Recipe and tasting-menu shortcodes and types
  • Balanced text wrapping for navigation and hero titles
  • Anchored headings with configurable depth
  • Compact and expanded post card layouts
  • Centralized SVG icon registry
  • Search, RSS, Open Graph, Twitter Cards, and JSON-LD

Color Palettes

You can mix and match palettes in hugo.toml:

[params]
  colorLight = 'linen'
  colorDark = 'nord'

Syntax highlighting is palette-aware across all palettes.

CV Module

See layouts/cv/README.md.

Recipe/Menu Module

  • recipe: renders structured recipe markup
  • recipe-list: renders recipes from a subsection
  • menu: renders a tasting menu card and pulls the author from page or site params
  • menu-list: renders a menu archive with optional H3 preview extraction

Related Projects

  1. oshea for a Node.js plugin framework for Markdown-to-PDF pipelines.
  2. ghrm for local GitHub README rendering with admonitions, header anchors, Mermaid diagrams, math, and many more embeddings, based on Hugo with a Neovim plugin.

License

MIT