Skip to content

Latest commit

 

History

History
110 lines (75 loc) · 3.99 KB

README.md

File metadata and controls

110 lines (75 loc) · 3.99 KB

Posts 📝

Blogging seems easy with github 🤩

A Headless CMS (Github theme) using Hugo, Github Issues and Github Actions.

github-actions-png github-actions-png

-------------------------------------------------------------

Features 📸

Add Blog Posts ✏

This is very simple process, You only need to create an issue using create-a-post issue template.

Screenshot from 2021-12-06 00-14-49

Screenshot from 2021-12-06 00-14-53

Edit Blog Posts 📎

Screenshot from 2021-12-06 00-16-56

Remove Blog Posts ❌

Just simply close that issue, See how easy is it 🙃

Screenshot from 2021-12-06 00-19-02

Preview Blog Posts 🎬

Screenshot from 2021-12-06 00-17-04

Organize Blog Posts 📚

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.

Screenshot from 2021-12-06 00-27-43

-------------------------------------------------------------

Configuration 🛠

If you want to add this CMS in your repo , Do below steps ⬇

1.Clone this repo 📥

git clone https://github.com/Aryamanz29/posts.git

2.Change config.toml

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"]

3. Change workflow files 📋

  • 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
  1. 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

-------------------------------------------------------------