No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Annika Backstrom 473ef99644 Small text change 3 weeks ago
assets/css fix some long lines that were stretching mobile views 9 months ago
bin Add a and some docs 9 months ago
content Small text change 3 weeks ago
nginx nginx: more redirects 4 months ago
pelican-plugins wip 9 months ago
templates Move template from `pages` directory, to a new `templates` directory 9 months ago
themes/histrionic Add rel="me" to social links 3 months ago
.drone.yml drone: deploy to multiple servers 8 months ago
.env Small text change 3 weeks ago
.gitignore Add a and some docs 9 months ago
Dockerfile docker: swithc to python3 9 months ago
Dockerfile.sass docker: use CMD instead of ENTRYPOINT 9 months ago readme: better autocmd for templates 8 months ago
docker-compose.yml docker: don't build images, just pull 9 months ago
docker-nginx.conf Removing old build tools, adding docker things 9 months ago home: add titles to social/offsite links 7 months ago replace media links with cdn 9 months ago
requirements.txt Update to Pelican 4.0.1 2 months ago

The source code for


Local development and deployment are assisted by Docker, Docker Compose, and Drone CI. The .drone.yml file is specific to my environment and private image repository, so if you’re adapting my customizations to your environment, make sure you change the `image: settings.

To develop locally:

$ docker-compose up

This will start a persistent container for nginx (to serve content at localhost:8045 and sass (to compile changed SCSS files). It will also run pelican on your content dir.

If you make content or theme changes and want to regenerate the site, re-run the pelican container:

$ docker-compose run pelican

Article Templates

A template article exists in templates/ If you use Vim, you can add an autocmd to inject this template into any new file in content. Example snippet for .vimrc:

if has("autocmd")
    augroup templates
        autocmd BufNewFile */blogdir/content/*.md 0r %:s?content/.*?templates/
    augroup END

Social embed images

tl;dr Add two headers for embeds:

Meta-Image-Square: /media/2017/09/burrito/sniff.512x512.jpg
Meta-Image-FB: /media/2017/09/burrito/sniff.1200x630.jpg



Meta-Image-Square: /media/2017/09/burrito/sniff.512x512.jpg


URL of image to use in the card. Images must be less than 5MB in size. JPG, PNG, WEBP and GIF formats are supported. Only the first frame of an animated GIF will be used. SVG is not supported.

Facebook (Open Graph)


Meta-Image-FB: /media/2017/09/burrito/sniff.1200x630.jpg


Use images that are at least 1200 x 630 pixels for the best display on high resolution devices. At the minimum, you should use images that are 600 x 315 pixels to display link page posts with larger images. Images can be up to 8MB in size.