Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify when the draft banner is displayed #81

Merged
merged 2 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading