Skip to content

Commit

Permalink
Use module for notices (MD alerts)
Browse files Browse the repository at this point in the history
  • Loading branch information
VaiTon committed Mar 5, 2024
1 parent 758212b commit e2510d9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 75 deletions.
2 changes: 2 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ googleAnalytics = ""
[module]
[[module.imports]]
path = "github.com/adityatelange/hugo-PaperMod"
[[module.imports]]
path = "github.com/martignoni/hugo-notice"

[languages.en]
languageName = ':us:'
Expand Down
6 changes: 2 additions & 4 deletions content/news/2024-03-07/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ tags = ["incontri"]
**Luogo:** Laboratorio 2, Plesso Risorgimento \
**Indirizzo:** Via Risorgimento 2, Bologna

{{< alert type="warning" title="Attenzione!" >}}

{{< notice warning >}}
Il volantino che potresti aver visto in giro è **sbagliato**. Il luogo è **Laboratorio 2** e non Laboratorio 3.

{{</ alert >}}
{{</ notice >}}

![Banner](banner.png)

Expand Down
5 changes: 4 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ module github.com/UlisseLab/ulisselab.github.io

go 1.20

require github.com/adityatelange/hugo-PaperMod v0.0.0-20231104103144-72ab73ffe5ba // indirect
require (
github.com/adityatelange/hugo-PaperMod v0.0.0-20231104103144-72ab73ffe5ba // indirect
github.com/martignoni/hugo-notice v0.0.0-20240304190557-8e785d6b61b4 // indirect
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ github.com/adityatelange/hugo-PaperMod v0.0.0-20230723084445-6f29d35d7367 h1:WCo
github.com/adityatelange/hugo-PaperMod v0.0.0-20230723084445-6f29d35d7367/go.mod h1:HCHxNMKYdGafUYjVV3ICiAqznZK2yH0iI53jqcDFDdQ=
github.com/adityatelange/hugo-PaperMod v0.0.0-20231104103144-72ab73ffe5ba h1:oeWCvDPbqAOBlKZMHZBlvq5VZq6WjT7x7isvkx6jaIU=
github.com/adityatelange/hugo-PaperMod v0.0.0-20231104103144-72ab73ffe5ba/go.mod h1:HCHxNMKYdGafUYjVV3ICiAqznZK2yH0iI53jqcDFDdQ=
github.com/martignoni/hugo-notice v0.0.0-20240304190557-8e785d6b61b4 h1:7HEKKVPa1QUgxreC99KBJE4UCYBdDM62W0w8PRv9IgY=
github.com/martignoni/hugo-notice v0.0.0-20240304190557-8e785d6b61b4/go.mod h1:MIQPOMgEcbyRC0gNLzQFSgrS+wIy3RuQ/HbaZYtTOKU=
70 changes: 0 additions & 70 deletions layouts/shortcodes/alert.html

This file was deleted.

0 comments on commit e2510d9

Please sign in to comment.