Banner with an announcment (#811)

* banner with announcment

* banner text and link upd, banner only on the main page
This commit is contained in:
trean
2024-04-16 14:04:24 +02:00
committed by GitHub
parent 04b0264385
commit 4d693b739b
6 changed files with 76 additions and 2 deletions
@@ -0,0 +1,11 @@
{{ $classes := .classes }}
{{ with (.context.Site.GetPage "/headless/top-banner") }}
<section class="top-banner{{if $classes}} {{ $classes }}{{end}}">
<div class="d-flex flex-wrap align-items-center justify-content-between">
<span class="top-banner__icon"> {{ .Params.icon | safeHTML }} </span>
<span class="top-banner__text"> {{ .Params.text }}
</span>
<a href="{{ .Params.link.url }}">{{ .Params.link.text }}</a>
</div>
</section>
{{ end }}