main

mattermost/focalboard

Last updated at: 29/12/2023 09:42

notification.html

TLDR

This file is a partial HTML template that generates a notification bar on a website. The notification bar is displayed if the enable parameter in the website's configuration is set to true. The notification bar includes a close button and a clickable link that redirects to a specified URL.

{{ if .Site.Params.notification.enable }}
<div class='notification-bar sticky-top'>
    <div class="notification-bar__content">
        <a class="notification-bar__close">
            <span aria-hidden="true">×</span>
        </a>
        <a href="{{ .Site.Params.notification.url | absURL }}">
            {{ .Site.Params.notification.text }}
        </a>
    </div>
</div>

{{ end }}