Guest Blogging: Getting Started on Windows

CLOUD TEKKI® has always aimed to be the place to memorialize new learnings! As someone constantly jumping from one topic to another frequently, I often had to re-learning or researching topics all over again. I planned on documented my learnings so that any complex topic that I explore will live on as a content for everyone as well as myself to consume on the internet. Another core mission for CLOUD TEKKI® was that it would serve as a brand to inspire and enable others by demystifying technology concepts. As I can continue to march forward on that journey, I’d also like to also welcome fellow Technologist with similar mindset to share their content here at CLOUD TEKKI®.

If you chose to write your blog @ cloudtekki.com, I will strive to

  • help you explore, learn and build openly
  • help you share that information broadly with the goal of enabling others

…and so for those inspired few that want to get started on publishing their very own blog post, here is a quick guide on how to get started.

Pre-requisite

To get started, I recommend using my setup which contains of the following softwares

  • Package Manager for your OS - used to install the below softwares easily
  • Visual Studio Code - used for editing and will be the primary interface to manage the blog
  • Git - used to version control and push changes to github
  • Hugo - open-source static site generator that is going to help convert MD files and other code into a website
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#Install Chocolatey - https://chocolatey.org/install 
#run as administrator
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

#Install Hugo
choco install hugo-extended -confirm

#Install Git manually - https://git-scm.com/download/win

#Clone the Repository
git clone https://github.com/pksrc/cloudtekki.git 

#Clone the submodules (for themes.. we are using PK's version of Love It)
cd cloudtekki
git submodule update --init 

#serve the blog - navigate to localhost:1313 make changes and see it get updated on the browser (upon saving the changes)
hugo serve

Writing a Post

Create MD file

To start writing a post, create a new Markdown file under the content/posts/<category>/<md-name>.md folder.

/img/getting-started/posts.png
Creating an MD file

What is Markdown(MD)?

Adding Images

If you are going to be using images or screenshots in your posts, you have two options

  • if the images are hosted in the cloud, provide a link to the image
  • if they are files on your local system, add the files into the static\img\<category>\<md-name>\your-files.png location
/img/getting-started/images.png
Adding your images for the post

Use the code below to add the images in your MD files

1
{{< image src="/img/getting-started/images.png" caption="Adding your images for the post" >}}

Other Formatting Options

Hugo and the theme provides a lot of ways to creatively express your ideas. Check out these following documentations for all the formatting options

Commit Changes

Once you are done editing the blog post(the markdown file), please commit your changes as described here

1
2
3
4
5
6
7
git status #shows all the changes that are different from source

git add <file-name> #this will add the file to a staged area (an intermediate space and only files in this space will be commited). For multiple files, repeat this step

git commit -m "your message that describes this change" 

git push

Create a Pull Request

Once your changes are tested and pushed to your fork, you should be able to see the commit if you navigate to https://github.com/<your-username>/cloudtekki. After you’ve confirmed that your changse are in github, proceed to create a Pull Request as explained here. We will proceed to merge your changes and publish your blog post after a successful review (PR process example #1, #2)

Wrap Up

Hopefully, this helps get you started! If not, please feel free to reach out and I’ll be glad to help!