Skip to content

Commit

Permalink
Merge pull request #81 from w3c/publication-warning
Browse files Browse the repository at this point in the history
Specify when the draft banner is displayed
  • Loading branch information
shawna-slh authored Mar 21, 2024
2 parents 76692d8 + 9a707a0 commit 9837511
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
---
title: "Publication Warning"
title: "Draft Banner"
lang: en
# translators: # Uncomment (remove #) for translations, one - name line per translator.
# - name: Translator 1
# - name: Translator 2
# contributors:
# - name: Contributor 1
# - name: Contributor 2
redirect_from:
- /components/publication-warning/
footer: > # Text in footer in HTML
<p> This is the text in the footer </p>
inline_css: |
Expand All @@ -18,4 +20,6 @@ This is the publication warning that appears on the top of unpublished documents
<p class="inner">
This is an unpublished draft preview that might include content that is not yet approved. The published website is at <a href="https://www.w3.org/WAI/">w3.org/WAI/</a>.
</p>
</section>
</section>

In Netlify previews, the banner is displayed by default, unless the `_config_staging.yml` file contains `published: true`.
4 changes: 2 additions & 2 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 9837511

Please sign in to comment.