mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-03 01:48:32 +02:00
Banner with an announcment (#811)
* banner with announcment * banner text and link upd, banner only on the main page
This commit is contained in:
@@ -5,6 +5,9 @@
|
||||
{{ partial "body_start.html" . }}
|
||||
|
||||
<!-- Main Header-->
|
||||
{{ if .IsHome }}
|
||||
{{ partial "top-banner" (dict "context" . "classes" "") }}
|
||||
{{ end }}
|
||||
|
||||
{{ if (eq $.Section "documentation") }}
|
||||
<header class="main-header position-static">
|
||||
|
||||
@@ -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 }}
|
||||
Reference in New Issue
Block a user