Describe page with extra info, such as the create date, modified date and so on.
Become a backer or sponsor to support our work.
Module | github.com/hbstack/revision |
---|---|
Repository | ⭐ Please consider giving a star if your like it. |
Stars | |
Version | |
Used by | |
Requirements | |
License | |
Usage | See how to use modules. |
The partial hb/modules/revision/index
accepts the current page as the context.
1{{- partial "hb/modules/revision/index" . }}
hugo.toml
1[hb]
2 [hb.revision]
3 created_at = true
4 date_format = ':date_full'
5 font_size = '.825rem'
6 icons = true
hugo.yaml
1hb:
2 revision:
3 created_at: true
4 date_format: :date_full
5 font_size: .825rem
6 icons: true
hugo.json
1{
2 "hb": {
3 "revision": {
4 "created_at": true,
5 "date_format": ":date_full",
6 "font_size": ".825rem",
7 "icons": true
8 }
9 }
10}
Name | Type | Default | Required | Description |
---|---|---|---|---|
date_format | string | :date_full | - | See time.Format. |
icons | boolean | true | - | Whether to show icons. |
font_size | string | .825rem | - | The font size of text. |
created_at | boolean | true | - | When false , hide the create date. |
repo_service | string | - | - | Support github . |
repo_owner | string | - | - | Repository owner. |
repo_name | string | - | - | Repository name. |
repo_branch | string | master | - | The default branch. |
repo_subpath | string | - | - | Subpath. |
repo_contributors | boolean | false | - | Whether to show contributors. |
repo_actions | boolean | true | - | Show edit, view and histories buttons. |
You’ll need to set up GITHUB_TOKEN
environment variable and the GitInfo feature, to get rid of encountering rate limit issues of GitHub API when repo_contributors
is enabled.