diff --git a/_components/publication-warning.md b/_components/draft-banner.md similarity index 75% rename from _components/publication-warning.md rename to _components/draft-banner.md index 68045bf..5b7d0e9 100644 --- a/_components/publication-warning.md +++ b/_components/draft-banner.md @@ -1,5 +1,5 @@ --- -title: "Publication Warning" +title: "Draft Banner" lang: en # translators: # Uncomment (remove #) for translations, one - name line per translator. # - name: Translator 1 @@ -7,6 +7,8 @@ lang: en # contributors: # - name: Contributor 1 # - name: Contributor 2 +redirect_from: + - /components/publication-warning/ footer: > # Text in footer in HTML

This is the text in the footer

inline_css: | @@ -18,4 +20,6 @@ This is the publication warning that appears on the top of unpublished documents

This is an unpublished draft preview that might include content that is not yet approved. The published website is at w3.org/WAI/.

- \ No newline at end of file + + +In Netlify previews, the banner is displayed by default, unless the `_config_staging.yml` file contains `published: true`. diff --git a/_data/navigation.yml b/_data/navigation.yml index cacbca3..fa00fc6 100644 --- a/_data/navigation.yml +++ b/_data/navigation.yml @@ -77,6 +77,8 @@ url: "/components/document-notes/translation/" - name: "Deprecated" url: "/components/document-notes/deprecated/" + - name: "Draft Banner" + url: "/components/draft-banner/" - name: "Editor Notes" url: "/components/editor-notes" - name: "Evaluation Form" @@ -115,8 +117,6 @@ url: "/components/minimal-header/" - name: "Minimal Navigation" url: "/components/minimal-navigation/" - - name: "Publication Warning" - url: "/components/publication-warning/" - name: "Progress Bar" url: "/components/progress-bar/" - name: "Resource Link"