Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

My new blog

This is my new hugo blog. Mental note: Document how stuff works because being unable to even operate this machinery when you want to write a post is not going to make you want to write more posts.

How to deploy

This blog is hosted on netlify, and it's set up to deploy the site whenever the master branch gets pushed.

How to test out stuff

The develop branch deploys to the test blog setup in netlify, definitely check that out too.

Redirects

These live in static/_redirects; They follow netlify's scheme.

Custom Shortcodes

video

This allows embedding videos, screencasts. To ensure maximum compatibility, you have to provide both a webm and a mp4 video. You can do that via ffmpeg.

To create the compatible videos from a QuickTime screen recording, use:

INPUT=the-video-file.mov   # set this to your filename
WEBM="$(basename "$INPUT" .mov).webm"
MP4="$(basename "$INPUT" .mov).mp4"
ffmpeg -i "$INPUT" ~blog/static/assets/videos/"$MP4"
ffmpeg -i "$INPUT" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis ~blog/static/assets/videos/"$WEBM"