成為我們的資助者或贊助商,以支持我們的工作。
該模塊爲通用的頁尾,其帶有菜單和一些實用的子模塊,如社交鏈接。
Module | github.com/hbstack/footer |
---|---|
Repository | ⭐ Please consider giving a star if your like it. |
Stars | |
Version | |
Used by | |
Requirements | |
License | |
Usage | See how to use modules. |
Parameter | Type | Default | Description |
---|---|---|---|
title | string | - | 站點標題。 |
copyright | string | - | 站點版權,支持 Markdown 語法和 {year} 佔位符(今年)。 |
Parameter | Type | Default | Description |
---|---|---|---|
description | string | - | 站點描述,支持 Markdown 語法。 |
Parameter | Type | Default | Description |
---|---|---|---|
powered_by | boolean | true | 是否顯示 Powered by 信息。 |
site_title | string | - | 用於替代默認的站點標題。 |
site_description | string | - | 用於替代默認的站點描述。 |
site_copyright | string | - | 用於替代默認的站點版權。 |
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}