tekit / hugo-notebox

Note Boxes for Hugo using TailwindCSS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hugo-notebox

Note Boxes for Hugo using TailwindCSS

I got the idea from martignoni/hugo-notice, but somehow the i18n method didn't work well on my Hugo site, so I simplified it a bit and don't use i18n.

You can use the format:

{{< notebox warning >}}
This is a warning!
{{< /notebox >}}

{{< notebox note >}}
A note for you.
{{< /notebox >}}

{{< notebox tip >}}
Just a tip.
{{< /notebox >}}

{{< notebox info >}}
Some info for you
{{< /notebox >}}  

{{< notebox trivia >}}
Funny note...
{{< /notebox >}}

For German: (you can add more languages easily)

{{< notebox warning.de >}}
Das ist eine Warnung!
{{< /notebox >}}

image

Precondition: You must have Hugo and TailwindCSS up and running.

Installation: Simply copy notebox.html into the /layouts/shortcodes/ folder.

About

Note Boxes for Hugo using TailwindCSS


Languages

Language:HTML 100.0%