ashmaroli / motionsplan.dk

A Fork of the official site for Motionsplan.dk

Home Page:https://www.motionsplan.dk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Site created in Jekyll based on Minimal Made Mistakes theme.

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

About

A Fork of the official site for Motionsplan.dk

https://www.motionsplan.dk


Languages

Language:HTML 59.0%Language:JavaScript 38.6%Language:PHP 1.3%Language:SCSS 1.0%Language:Ruby 0.1%