During Part 1 of this series I introduced you to open source blogging using some awesome tools and platforms available today. I also shared my own setup so you can see what’s involved end-to-end.
Shortly I’ll provide a detailed walkthrough of everything you need to get started with your own blog site.
|
Local Blog Development
First we need to setup our local development environment for the blog site by installing a few dependencies.
|
PART 2 DEPLOYMENT PLAN
Coming Up…
|
Already have Visual Studio Code or Git installed? –> Update to the latest release prior to continuing with this guide.
|
Step 1 – Install Visual Studio Code
|
Step 2 – Install Git
|
MAKE SURE TO CHOOSE VISUAL STUDIO CODE AS GIT’S DEFAULT EDITOR
Step 3 – Install Ruby / Jekyll
|
DOWNLOAD & RUN THE RUBY+DEVKIT 2.6.X (X64) INSTALLER
DURING THE INSTALL WIZARD ACCEPT ALL DEFAULTS.
DURING THE INSTALL WIZARD ACCEPT ALL DEFAULTS.
CLICK FINISH.
MAKE SURE TO KEY IN THE NUMBER 1 BEFORE HITTING ENTER TO CONTINUE.
IF ALL GOES WELL YOU SHOULD SEE A SCREEN SAYING MSYS2 IS INSTALLED. FEEL FREE TO CLOSE IT.
WE NEED TO INSTALL THE JEKYLL AND BUNDLER RUBYGEMS WITH FOLLOWING CMDLET: $ GEM INSTALL JEKYLL BUNDLER
IF YOU RUN INTO ISSUES HERE TRY RE-INSTALLING RUBY+DEVKIT STARTING FROM STEP 2 ABOVE.
Step 4 – Using a community theme – Minimal Mistakes
We want to be blogging today-ish, not next week or a month later. So let’s clone/fork
an existing Jekyll theme to our local dev environment. We can then modify it to suit our needs without reinventing the wheel!
By the way! The default Jekyll theme is Minima and seems fine for a quick proof of concept. I don’t recommend going live with it because of what it lacks when compared to other themes out there. You can check it out by executing the following cmdlets from a VSCode Terminal:
$ jekyll new my-awesome-site
$ cd my-awesome-site
$ bundle exec jekyll serve
After a successful serve – browsing to http://localhost:4000 will display a home page like this.
JEKYLL DEFAULT THEME (MINIMA)
Currently I’m using Minimal Mistakes by Michael Rose because it suits my needs & because of Michael’s helpful documentation available – for example check out https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/
The quickest way to get started with the Minimal Mistakes theme is to git clone
or git fork
one of the following GitHub repositories.
Let’s look at how this works with the Remote Theme.
Try executing the following cmdlets from a VSCode Terminal:
$ cd C:/
$ git clone https://github.com/mmistakes/mm-github-pages-starter
$ cd mm-github-pages-starter/
$ bundle exec jekyll serve
After a successful serve – browsing to http://localhost:4000 will display a home page like this.
JEKYLL COMMUNITY THEME (MMISTAKES)
Open the newly created folder C:\mm-github-pages-starter
from VSCode to access the following site structure.
MMISTAKES SITE STRUCTURE
Here’s a breakdown of what you see above. It’s important to understand this structure as the majority of your changes will happen here.
|
Next Steps
|
Recap
We’ve completed installation of our open source blogging dependencies to our local dev environment and cloned/served a Jekyll theme.
PART 2 DEPLOYMENT PLAN COMPLETE!
Congrats on getting this far!
Join me for Part 3
of this series where we’ll look at taking your blog live with GitHub and GitHub Pages.
Join me for Part 3 of this series where we’ll look at taking your blog live with GitHub and GitHub Pages.