announcements

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package announcements provides a built-in plugin that renders dismissible announcement banners at the bottom of every page. Supports multiple announcements with i18n, three display modes (stack/first/rotate), date scheduling, and page targeting.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg map[string]any, st *i18n.StringTable, langPtr *string) *plugin.Plugin

New constructs the announcements plugin from its config map, StringTable, and a pointer to the current language (captured by closure, resolved at render time). st and langPtr may be nil — the plugin degrades to raw message keys.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL