Skip to content

About

Personal journal at captainnotes.com (GitHub Pages / Jekyll)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

captainnotes.com

Captain's Notes: Practical notes from the field and from expeditions: lessons learned, recounted by the one who learned them.

Published with GitHub Pages at https://captainnotes.com. The theme is the one douglas.lol uses (Jekyll, the github-pages gem, Roboto Condensed, a light and a dark mode that follows the clock and the device).

Writing an entry

./new-entry.sh "What happened" notes

That creates _posts/YYYY-MM-DD-what-happened.md with the front matter the layout expects. Write in Markdown below it, then:

git add -A && git commit -m "Entry: what happened" && git push

GitHub rebuilds the site within a minute or two.

How the site is put together

  • _posts/ — the entries. Front matter: title, date (UTC), categories: [name], optional subtitle and image.
  • _simple/ — an entry's "I am 5" version: a file with the same slug as the post (_simple/what-happened.md), written for a five-year-old. The post then shows an "I am 5" switch at the top. Entries without one show no switch.
  • category/ — one small page per category; the post header links to /category/<name>, so add a page here when you start a new category.
  • index.html — the list of entries, newest first. about.md — the purpose of the site and the appearance toggle.
  • _layouts/, _includes/, static/ — the theme. static/img/posts/ is where a post's image: lives; static/img/favicon.svg is the site mark.
  • search.json and static/js/search.js — the sidebar search; feed.xml — RSS.
  • Sister sites are linked from the sidebar in _layouts/default.html.

Local preview

Needs Ruby 3 and Bundler 2.6:

bundle install
bundle exec jekyll serve --livereload

Then open http://localhost:4000.

About

Personal journal at captainnotes.com (GitHub Pages / Jekyll)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages