A blog for random things learned. And a playground to try out some web dev stuff.
After the recent change to make this
skip Jekyll processing
on Github Pages, and generating the site in the docs/ folder
while on my dev environment, all posts should now be created
in the dev environment. Don't add files to the _posts/ folder
on Github, because it won't re-build the site anymore.
Did this because Github Pages was not generating the preview cards
with the jekyll-url-metadata plugin like Jekyll does on my
dev environment.
- Set destination folder to
docs/instead of the default_site/, and add a.nojekyllfile to skip Jekyll processing on Github Pages. - Add link preview cards using
jekyll-url-metadataplugin. - Adjust post meta markup so comment count icon is part of link, otherwise it just sits there.
- Set
comments:trueas default. Adjust styles for comment section. - Enable Disqus. Remove check for
jekyll.environment == "production"for Disqus sections. - Add thumbnail to home page front matter.
- Add link to RSS feed.
-
Because I moved to a new machine, and realized I hadn't noted down the steps to create this site. These are the steps to get the dev environment recreated. There are extra steps if creating the site from scratch. See the jekyll setup tutorial.
-
Install Ruby for Windows
- Downloaded and installed the latest
Ruby+Devkit 3.2.X (x64)installer. - Run
ridk installstep of the wizard.- Choose
MSYS2 and MINGW development tool chain
- Choose
- On a new Terminal window, run
gem install jekyll bundler - Checked if Jekyll has been installed properly:
jekyll -v - Installed update for RubyGems:
gem update --system 3.5.3
- Downloaded and installed the latest
-
Run
bundle installon the top-level of this site's source folder. -
To start the server, do:
bundle exec jekyll serve --livereloadThen browse to https://localhost:4000.
-
The command also rebuilds the
docsfolder, which is served on Lint Bucket once the changes are pushed by git to the remote repo on GitHub.