HB Revision Module

Describe page with extra info, such as the create date, modified date and so on.

Donate

Become a backer or sponsor to support our work.

On this page

Sponsors
Modulegithub.com/hbstack/revision
Repository⭐ Please consider giving a star if your like it.
Stars
Version
Used by
Requirements
License
UsageSee how to use modules.

Partial

The partial hb/modules/revision/index accepts the current page as the context.

1{{- partial "hb/modules/revision/index" . }}

Site Parameters

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}
NameTypeDefaultRequiredDescription
date_formatstring:date_full-See time.Format.
iconsbooleantrue-Whether to show icons.
font_sizestring.825rem-The font size of text.
created_atbooleantrue-When false, hide the create date.
repo_servicestring--Support github.
repo_ownerstring--Repository owner.
repo_namestring--Repository name.
repo_branchstringmaster-The default branch.
repo_subpathstring--Subpath.
repo_contributorsbooleanfalse-Whether to show contributors.
repo_actionsbooleantrue-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.

razonyang
Sunday, December 1, 2024 Friday, December 22, 2023