Skip to content
This repository has been archived by the owner on May 13, 2023. It is now read-only.

Isoheptane/hugo-notice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hugo-notice

This is a simple theme component which provided a shortcode: notice to show notices.

There are three types of notices: tip, note, warning. You can also add more types of notices if you want. Just modify the source file layouts/shortcodes/notice.html and the localization file i18n/language.yaml.

Installation

You can just simply clone this project to your theme folder:

$ git clone https://github.com/Isoheptane/hugo-notice.git themes/hugo-notice

You can also add this repo as a submodule:

$ git submodule add https://github.com/Isoheptane/hugo-notice.git themes/hugo-notice

Then, add this theme component to your themes list. Example with config.yaml:

theme: ["hugo-notice", "others"]

Usage

Use notice shortcode like this:

{{< notice warning >}}
This is a warning message.
{{< /notice >}}

or like this:

{{< notice note >}}
It's worth to notice that: ...
{{< /notice >}}

Credits

This project is inspired by martignoni/hugo-notice, a similar hugo notice module.

About

A simple hugo notice theme component.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages