Site created in Jekyll based on Minimal Made Mistakes theme.
You can run the site by:
npm start
Icon from www.getdrawings.com
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 hookspath
: 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