Skip to content

brege/brege.org

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

349 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brege.org is my static hugo site, which is based on my custom theme, gastrophysics.

Adding an article

How I add a new post on brege.org.

  1. Initialize
    hugo new --kind post post/hello-world
    hugo server # -D|--buildDrafts
  2. Edit content/post/hello-world/index.md and add content after the +++...+++ or ---...--- front matter
  3. Then I run an external ./deploy script to push the changes to my droplet.

Editing an article

Edit files while hugo server is running.

Removing an article

Say you want to remove the hello-world.md article:

rm -r content/post/hello-world/
./deploy

Taxonomy

See Post README and Recipe README for categories, tagging, and post serialization used on brege.org.

Installing

Site

git clone [email protected]:brege/brege.org.git
cd brege.org

This repo tracks all of the base Markdown files (content) and partials and shortcodes I've made to produce calculators, graphs, and other one-off JavaScript toys. The repo history contains most of the evolution of my gastrophysics theme (formerly, layouts and assets), whose overrides and additions began eclipsing papermod's feature-set.

Theme

mkdir -p themes/gastrophysics
git clone [email protected]:brege/gastrophysics.git themes/gastrophysics/

Check: hugo server

CV

The main configuration of my cv is in content/cv/cv.yaml. A Markdown version of this is created so:

  1. hugo/gastrophysics can accurately count words through .Content
  2. the cv/index.md becomes easier to copy and paste from
  3. works with external Markdown editors

To create the cv.md file:

make cv

This is already automated, even via hugo server, through the Makefile.

License

MIT

Contributors