Skip to content

Commit

Permalink
add federal-shutdown-mode option
Browse files Browse the repository at this point in the history
  • Loading branch information
FuhuXia committed Dec 20, 2024
1 parent b8bc724 commit fe6fa58
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ github_username: GSA
dap_agency: GSA
searchgov_affiliate: datagov-resources

federal_shutdown_mode: false

github:
organization: GSA
repository: resources.data.gov
Expand Down
22 changes: 22 additions & 0 deletions pages/_includes/federal-government-shutdown.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding-top: 100px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
img { display: block; width: 200px;}
</style>


<article>
<img src=https://s3-us-gov-west-1.amazonaws.com/cg-0817d6e3-93c4-4de8-8b32-da6919464e61/logo.svg alt="data.gov logo">
<h1>Site not available</h1>
<div>
<p>
The Federal Government is currently shut down. As a result, this site is unavailable until further notice. Please visit <a href="https://usa.gov">https://usa.gov</a> for more information.
</p>
</div>
</article>
6 changes: 4 additions & 2 deletions pages/_layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
---

{% if site.federal_shutdown_mode %}
{% include federal-government-shutdown.html %}
{% else %}
<!DOCTYPE html>
<!--[if lt IE 9]><html class="lt-ie9"><![endif]-->
<!-- [if gt IE 8]><! -->
Expand All @@ -10,11 +12,11 @@
<head>
{% include google-analytics.html %} {% include meta.html %} {% include styles.html %}
</head>

<body class="{{ layout.class }} {{ page.class }}">
<a class="usa-skipnav" href="#main-content">Skip to main content</a>
{% include header.html %}
<div role="main">{{ content }}</div>
{% include footer.html %} {% include identifier.html %} {% include glossary.html %} {% include scripts.html %}
</body>
</html>
{% endif %}

0 comments on commit fe6fa58

Please sign in to comment.