Blogging seems easy with github π€©
A Headless CMS (Github theme) using Hugo, Github Issues and Github Actions.
This is very simple process, You only need to create an issue using create-a-post issue template.
Just simply close that issue, See how easy is it π
You could either pin your posts to the home page or simple push that all posts page.
You only need to set pin: true/false
in the issue template.
If you want to add this CMS in your repo , Do below steps β¬
git clone https://github.com/Aryamanz29/posts.git
Just replace
YOUR_GITHUB_USERNAME
= Your github username
YOUR_REPO_NAME
= Repository name
baseURL = "https://YOUR_GITHUB_USERNAME.github.io/YOUR_REPO_NAME"
languageCode = "en-us"
title = "Aryaman's blog"
theme = "github-style"
[params]
author = "YOUR_NAME"
description = "Blogs by Aryamanz29 π¨βπ», Built with Github Actions π"
github = "Aryamanz29"
#facebook = ""
twitter = "AryamanZ29"
linkedin = "aryamanz29"
instagram = "aryaman_z29"
email = "[email protected]"
url = "https://aryamanz29.github.io/"
lastmod = true
userStatusEmoji = "π "
favicon = "/posts/images/github.png"
location = "India"
[frontmatter]
lastmod = ["lastmod", ":fileModTime", ":default"]
create-issue-posts.yml
Line 36:
hugo -D -b https://YOUR_GITHUB_USERNAME.github.io/YOUR_REPO_NAME/ -t github-style
remove-issue-posts.yml
Line 31:
hugo -D -b https://YOUR_GITHUB_USERNAME.github.io/YOUR_REPO_NAME/ -t github-style
- And don't forgot to add this hugo theme and run local dev server to check everthing working as expected.
cd themes/
rm -rf github-style/
git clone https://github.com/MeiK2333/github-style.git
cd ..
hugo serve