Skip to content

motionsplan/motionsplan-dk-jekyll

Repository files navigation

Site created in Jekyll based on Minimal Made Mistakes theme.

Requirements

sudo apt update
sudo apt-get install -y --no-install-recommends bats build-essential ca-certificates curl make shellcheck libgsl-dev libffi-dev minify liblapacke-dev libopenblas-dev

Follow this guide: https://serverspace.io/support/help/install-ruby-on-rails-ubuntu-20-04/ to install ´rbenv´.

Installing the site

bundle install

Running the site

You can run the site by:

npm start

Ressources used

Icon from www.getdrawings.com

Create social images - OG, Pinterest and Instagram

Puppeteer is required to make the social images and you can run the scripts by npm.

generate-image is the base script that takes two arguments

  • type: Image type, will be passed into <body> as CSS class for style hooks
  • path: Relative path to asset(s). Will accept singular file of directory of files

The script will generate a png image assets/images/generated/TYPE/FILE_NAME.png

A directory for each type will need to exist at assets/images/generated/TYPE or the script will fail.

Running the script will overwrite any images that already exist.

To generate a singular image, run the appropriate abstracted script:

npm run og-image -- path:./_posts/FILE_NAME.EXTENSION

To generate a batch of images, run the plural script with no arguments

npm run og-images

On Ubuntu at Windows Linux Subsystem, you need to install this package to get the script to work:

sudo apt install fonts-noto-color-emoji