Skip to content

About

A Hugo theme for a personal site: photo galleries with a swipeable viewer, trips drawn on a topographic map, and posts with maths and code. Pick a look and a colour scheme, light or dark.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Fieldnotes

A Hugo theme for a personal site: photo galleries, trips on a topographic map, posts with maths and code.

Put your photos in a folder and they become a gallery with a full-screen viewer. Add the route of a trip and it's drawn on the map, day by day. Pick a look, from graph paper and taped cards to a newspaper or a terminal, and a colour scheme, light or dark. Write Markdown; Hugo turns it into a fast site with no server and no database.

Demo, Docs, Getting started

Fieldnotes: a hiking route drawn day by day on a topographic map, a row of trip photos, and the photo viewer showing a hut at sunset with its caption

What's in it

  • Photo and video galleries from a folder: a row of photos on the page that opens in a full-screen, swipeable viewer with captions and places (dialog-lightbox).

  • Trip maps: a GeoJSON route on MapTiler's topographic map, each day in its own colour, with distance and climbing for every day.

  • Different looks and colour schemes, from taped paper cards to a newspaper or a terminal. Any scheme goes with any look, light or dark.

    Six looks: fieldnotes, minimal, editorial, cinematic, brutalist and terminal, each a home page

  • A home page with your photo, a greeting, your profiles and a card for anything you like.

  • Maths with MathJax, code in your scheme's colours with a copy button, responsive images with captions.

  • Your own presets, schemes, CSS and hooks, without forking the theme.

  • Search-engine data (JSON-LD, Open Graph) that matches what visitors see, and contrast that passes WCAG AA.

Quick start

hugo new project my-site && cd my-site
hugo mod init github.com/you/my-site

Add the theme and the Markdown settings it needs to hugo.toml:

[module]
  [[module.imports]]
    path = "github.com/maxfettinger/fieldnotes"

[markup.highlight]
  noClasses = false
[markup.goldmark.parser]
  wrapStandAloneImageWithinParagraph = false
[markup.goldmark.extensions.passthrough]
  enable = true
  [markup.goldmark.extensions.passthrough.delimiters]
    block = [['\[', '\]'], ['$$', '$$']]
    inline = [['\(', '\)']]
hugo mod get github.com/maxfettinger/fieldnotes@latest
hugo server

Requires Hugo 0.158 or newer (extended). Create your site walks through every step, including adding the theme as a Git submodule instead.

This repository

Folder What it is
the root the theme
exampleSite/ the demo: hugo server --source exampleSite
docs/ the documentation, built with Vitrine: cd docs && hugo server

Credits

Icons from Feather (MIT). Photo viewer: dialog-lightbox (MIT). Maps: MapTiler. Maths: MathJax.

Licence

MIT.

About

A Hugo theme for a personal site: photo galleries with a swipeable viewer, trips drawn on a topographic map, and posts with maths and code. Pick a look and a colour scheme, light or dark.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages