inlets.dev homepage
Adding a new blog post
-
Create an issue and propose the topic. Wait for approval before contributing, unless you've already been asked to contribute a post.
-
Create a new YAML file in
blog/_posts- see this example for how to set the post title and description. -
Prefix it with the date.
-
Add images to
/images/- resize all images to under 200-300KB, for a faster page loading time -
Make sure you have a cropped image for the background / title of the post, this will show up on the page roll-up at /blog/ - good sources for images are: unsplash.com and pexels.com
-
Sign-off any commits you make with
git commit -s, this is not GPG or cryptography, but a simple declaration -
Raise a Pull Request and fill out the whole template, including how you tested the page and the instructions.
If you use any copyrighted material such as text, code, or images, then you must credit the author.
Usage
Initial installation
You will need node.js in order to install yarn:
$ npm i -g yarnYou may need to run brew install/upgrade ruby if the bundle command is unavailable.
If it's still unavailable run:
$ gem install bundleWhen you have the tools in place run:
$ bundle install
$ yarn install
$ yarn run tailwind init _includes/tailwind.config.jsFor production:
JEKYLL_ENV=production bundle exec jekyll buildContent will be in _site
To start a preview, simply run:
bundle exec jekyll serveAccess the site at: http://127.0.0.1:4000/
Apple M1:
arch -arch x86_64 bundle install
arch -arch x86_64 bundle exec jekyll serve