This is a fork from github-style with some additional features that I've made.
In this repo, there's only list of additional features. For more information about basic usage, please follow the original repo.
BTW, Documentation is in progress🏃♂️
- Pinned posts and recent posts show together
- Support reading time estimation
- Display your real github followers stats
- Add sponsor link button
- Keyword search locally
- Clickable day contributions
Documentation in progress
First, take a look at my personal blog, it's the completely demo for this theme.
hugo new site mysite
cd mysite
git submodule add git@github.com:kurt-liao/github-style-plus.git themes/github-style-plus
If you just installed the theme, it is already in the latest version. If not, you can update using the below commands
cd themes/github-style-plus
git pull
Then, you need to rename the previous posts
folder to post
cd <you-project-folder>
mv content/posts content/post
Since the original repo only display Pinned or Recent block. In other word, if you set
pin: true
in any of your posts, then there's only display Pinned block in your overview page.However, I want show both in my overview page. In this version, Pinned block will show over the Recent(posts here sort by created time) block. It means they will display together.
This feature evaluates the reading time of every post and shows next of the count of words.
The evaluation formula referenced here.
To show real github followers count, please set
enableGithubFollowers = true
and your github account likegithub = kurt-liao
in config.toml file. You can copy the template in this repo.
Set your sponsor link in config.toml like
sponsorLink = "https://www.buymeacoffee.com/vermouth02D"
and the button will show on the page.For me, I put the buymeacoffee link.
Searching in personal site might be important with a growing number of articles, so I've done it.
This feature uses hugo rss that generate
index.xml
feed file, so make sure you have setparams.rss = true
Though somebody might not want to use this feature, there's another parameter you need to set to true to enable:
params.enableLocalSearch = true
Make yearly-contributions graph clickable like github does. When you click on specific day, it will show you the posts added that day.
@see config.template.toml