How To Publish a Blog Post Using VSCode + GitHub & Hashnode
I am Developer from Kashmir
Search for a command to run...
I am Developer from Kashmir
No comments yet. Be the first to comment.
As a regular user of WhatsApp, I've encountered my fair share of frustrations with its updates and status feature. From constant notifications to intrusive status updates, it seemed like I couldn't catch a break. On top of that, the temptation to res...

Speedtest.net is a popular online service that lets you test the speed and performance of your internet connection. It's been on my mind for a while to see if these speed tests are accurate! I even considered creating my own speed test app for a proj...
As a software developer, one of the most important decisions you will make when starting a new project is the choice of programming language. There are many factors to consider when making this choice, such as the popularity of the language, the size...

Yes, you heard it right! You can learn AJAX in 5 mins provided you have little concept of JavaScript and jQuery. The method I am sharing with you right now will probably boot your AJAX skills. Just for the record: AJAX is a developerβs dream because ...

With lots of programming language out there everyone here is getting confused about what to follow and what not to. All programming languages having their own limitations and their own pros and cons. At the beginning of this article, I will say tha...

As a developer it will catch every developers attention that they can post to there blog directly with
git pushYou can now use your favourite IDE such as VSCode to directly make a blog post! Isn't it cool?

If you don't have Hashnode account create one (affiliate link)
Create a repo on GitHub that we will be used to save all you new posts like a normal GitHub repo
You need to goto you Blog Setting on hashnode and to inegrations
Blog Home -> Blog Dashboard -> Integrations -> Connect To GitHub
You need to authorize HashNode App on GitHub and under repository select Newly Created Repository and click on Install
Now you have successfully intalled a.k.a connected to GitHub and 1 step behind publishing via VSCode
git clone https://github.com/example/your-repo.git
Open your repo in VSCode or any other IDE you like and create new .md file (example.md, name of the file doesn't matter)
You need to keep this thing in mind that with every post you have to create a new .md file containing exactly below details a as metadata that will help hashnode to get title, imgae, tags etc. (You git the idea)π
---title: GitHub Test
slug: github-test
tags: Test, GitHub
cover: https://cdn.isalman.dev/photos/1.jpeg
domain: blog.isalman.dev
---
Note: I have used my domain name on which I have hosted hashnode, you can replace it by your own
Now all you have to do is commit and push to your repo and hashnode will automatically post to your hashnode blog.
Also if you have to edit your post you can't do it from hashnode, you have to edit from you GitHub repo (That looks weird but it makes sense, bcuz both of them will store same version of your post!)
Since you have to use markdown syntax you can use few extensions on VSCode to WYSIWYG editor to speed up π publishing time and have a visual experience
Name: Markdown Editor Id: zaaack.markdown-editor Description: A full-featured WYSIWYG editor for markdown. Version: 0.1.10 Publisher: zaaack VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=zaaack.markdown-editor
or if you don't want any extensions VSCode has a built-in .md previewer, all you have to do is press ctrl+shift+v from any .md file.
Thanks, See you in next blog post, (PS: I have published this blog post from VSCode π)