casaqori a1d36cbd5f Update de.yaml
Hint does not exist in german
Notiz is usually something you've written down to remember yourself of it - but the context anticipated here supposedly is to give additional advice
2020-03-17 21:48:03 +01:00
2020-03-17 21:48:03 +01:00
2019-03-02 17:50:43 +01:00
2019-03-02 17:48:58 +01:00
2020-02-11 19:50:07 +01:00
2019-03-02 17:48:58 +01:00
2019-03-02 17:48:58 +01:00

hugo-notice

Awesome

About

This is not a standalone theme. It is a Hugo theme component providing a shortcode: notice to display nice notices. Four notice types are provided: warning, info, note and tip.

This components comes with english, french, german, italian and portuguese localizations for the notice headings. Other languages welcome! Send your pull request.

Screenshot

Usage

  1. Add the hugo-notice as a submodule to be able to get upstream changes later git submodule add https://github.com/martignoni/hugo-notice.git themes/hugo-notice
  2. Add hugo-notice as the left-most element of the theme list variable in your site's or theme's configuration file config.yaml or config.toml. Example, with config.yaml:
    theme: ["hugo-notice", "my-theme"]
    
    or, with config.toml,
    theme = ["hugo-notice", "my-theme"]
    
  3. In your site, use the shortcode, this way:
    {{< notice warning >}}
    This is a warning notice. Be warned!
    {{< /notice >}}
    
    or
    {{< notice tip >}}
    This is a very good tip.
    {{< /notice >}}
    

Credits

Copyright © 2019 onwards, Nicolas Martignoni nicolas@martignoni.net.

Thanks to

  • Geraldo Ribeiro for the portuguese localization,
  • @thatrocketx for the italian localization.
Languages
HTML 100%