added announcement module

This commit is contained in:
Somrat
2024-04-17 09:21:08 +06:00
parent 2f8cd66481
commit 5d1e77ab6a
5 changed files with 19 additions and 0 deletions

View File

@@ -53,6 +53,9 @@ path = "github.com/gethugothemes/hugo-modules/components/social-share"
[[imports]]
path = "github.com/gethugothemes/hugo-modules/components/cookie-consent"
[[imports]]
path = "github.com/gethugothemes/hugo-modules/components/announcement"
[[imports]]
path = "github.com/gethugothemes/hugo-modules/components/custom-script"

View File

@@ -52,6 +52,12 @@ show_description = true
show_tags = true
show_categories = true
# announcement
# announcement module: https://github.com/gethugothemes/hugo-modules/tree/master/components/announcement
[announcement]
enable = true
expire_days = 7
content = "You must replace the **baseURL** in **hugo.toml** file when deploying, you can manage this announcement from the **params.toml** file."
# seo meta data for OpenGraph / Twitter Card
# seo module: https://github.com/gethugothemes/hugo-modules/tree/master/seo-tools/basic-seo