页尾概览

赞助

成为我们的资助者或赞助商,以支持我们的工作。

赞助商

该模块为通用的页尾,其带有菜单和一些实用的子模块,如社交链接。

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

站点配置

ParameterTypeDefaultDescription
titlestring-站点标题。
copyrightstring-站点版权,支持 Markdown 语法和 {year} 占位符(今年)。

站点参数

ParameterTypeDefaultDescription
descriptionstring-站点描述,支持 Markdown 语法。

页尾模块参数

ParameterTypeDefaultDescription
powered_bybooleantrue是否显示 Powered by 信息。
site_titlestring-用于替代默认的站点标题。
site_descriptionstring-用于替代默认的站点描述。
site_copyrightstring-用于替代默认的站点版权。

hugo.toml

1copyright = 'Copyright © 2022-{year} [COMPANY](https://example.com). All Rights Reserved.'
2title = 'HB (Hugo Bootstrap) Framework'
3[params]
4  description = 'Fast, responsive, flexible, modular, open source and feature-rich Hugo Bootstrap Framework.'
5  [params.hb]
6    [params.hb.footer]
7      powered_by = true
8      site_title = 'Site Title'

hugo.yaml

1copyright: Copyright © 2022-{year} [COMPANY](https://example.com). All Rights Reserved.
2params:
3  description: Fast, responsive, flexible, modular, open source and feature-rich Hugo
4    Bootstrap Framework.
5  hb:
6    footer:
7      powered_by: true
8      site_title: Site Title
9title: HB (Hugo Bootstrap) Framework

hugo.json

 1{
 2   "copyright": "Copyright © 2022-{year} [COMPANY](https://example.com). All Rights Reserved.",
 3   "params": {
 4      "description": "Fast, responsive, flexible, modular, open source and feature-rich Hugo Bootstrap Framework.",
 5      "hb": {
 6         "footer": {
 7            "powered_by": true,
 8            "site_title": "Site Title"
 9         }
10      }
11   },
12   "title": "HB (Hugo Bootstrap) Framework"
13}
razonyang
2024年11月21日星期四 2023年2月17日星期五