Skip to content

seemethere/terriblecode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

117 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terriblecode

Source for terriblecode.com.

This repository is a Hugo-based personal site. Content lives in this repo, the site theme is vendored as a git submodule, and production is deployed with Netlify.

Stack

  • Hugo for static site generation
  • Netlify for production deploys and deploy previews
  • cocoa-eh as a git submodule under themes/cocoa-eh
  • Docker-based local development via make

Repository Layout

Content Model

The site is mostly driven by markdown content plus theme conventions:

Common front matter fields used in this repo include:

  • title
  • date
  • tags or Tags
  • categories or Categories
  • draft
  • author

The active theme renders:

  • homepage intro content
  • a latest-posts list
  • optional best-posts sections
  • blog post metadata like reading time and tags

Local Development

This repo’s Makefile expects Docker and uses the seemethere/hugo-docker image.

Start a local server:

make dev

Generate the site:

make

The local dev server is configured to bind Hugo to port 1313.

Netlify Deployment

Production is deployed by Netlify using netlify.toml:

  • publish directory: public
  • production build command: hugo
  • deploy preview command: hugo --buildFuture --buildDrafts -b $DEPLOY_URL

That means deploy previews include draft and future-dated content, while production uses the default Hugo build behavior.

Theme Submodule

The site theme is tracked as a git submodule:

git submodule update --init --recursive

If you clone the repo without submodules, the site will be missing its theme.

Theme updates are managed by advancing the submodule pointer and committing the updated reference in the main repo.

Notes

  • There are currently no root-level layout overrides, so most rendering behavior comes from the cocoa-eh theme.
  • Site metadata like analytics, author information, and social links are configured in config.toml.

About

Repository for my blog @ terriblecode.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors