Skip to content

Component: Archived version banner

Port over logic for displaying the Archived version banner.

image

On Nanoc, we used the same Vue component for both the survey banner and the archived version banner.

Relevant code:

For Hugo, we could go either way with this (same component vs new component). On Nanoc, both used GlAlert, but have some different behaviors:

Survey banner Archive banner
Never shows on an archive site Only shows on archive sites
Dismissible Not dismissible
Appears in the top of the main content column Full-width like the navbar

It does need to be controlled by JS (because we need this function to detect if should appear or not), but maybe using Vue at all is overkill since it doesn't do very much.

Edited by Sarah German