Skip to content

Commit 6b8c17f

Browse files
committed
Update standards info
- Add to nav - Standards info box + about link - Clean up descriptions - Update standards table
1 parent ef97092 commit 6b8c17f

14 files changed

+81
-13
lines changed

_data/nav.yml

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ docs:
55
icon: fa-solid fa-home
66
url: https://scangov.org
77

8+
- title: Standards
9+
icon: fa-solid fa-certificate
10+
url: /standards
11+
812
- title: Community
913
icon: fa-solid fa-circle-nodes
1014
url: /community

_includes/audio.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<h2 class="h4 my-0 py-3">Listen
44
<i class="fa-solid fa-volume-high" aria-hidden="true"></i>
55
</h2>
6-
<p class="pb-0 small text-body-secondary mb-0 pb-3">A podcast-like overview created with Google NotebookLM.</p>
6+
<p class="pb-0 small text-body-secondary mb-0 pb-3">A podcast overview made with Google NotebookLM.</p>
77
<script src="{{ site.baseurl }}/js/plyr.js"></script>
88
<audio id="player" controls>
99
<source src="{{ site.url }}/assets/audio/{{ page.audio }}" type="audio/mp3">

_includes/services.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h2 class="my-0 pt-4 pb-3">We can help</h2>
3030
</a>
3131
</div>
3232

33-
{% elsif page.layout == 'home' %}
33+
{% elsif page.layout == 'home' or page.layout == 'standards' %}
3434
<div class="border mt-5 mb-3 px-5 pt-3 pb-5 shadow">
3535
<h2 class="my-0 pt-4 pb-3">We can help</h2>
3636
<p class="fs-5 my-0 pt-1 pb-4">

_includes/standards.html

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<div class="border mb-3 px-5 py-4 shadow">
2+
<h2 class="m-0 p-0 h4">About</h2>
3+
<p class="my-0 pt-2 pb-0 small">
4+
Our standards are based on best practices and conformance guidance across many domains.
5+
<a href="/standards-about">
6+
Learn more.
7+
</a>
8+
</p>
9+
</div>

_layouts/standards.html

+39-2
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,47 @@
66
<main>
77
{% include jumbotron.html %}
88
<div class="container">
9+
<div class="row">
10+
<div class="col-12">
11+
{% include standards.html %}
12+
</div>
13+
</div>
914
<div class="row">
1015
<div class="col-12">
1116
<div class="table-responsive">
12-
1317
<table class="table table-bordered table-hover">
1418
<thead>
1519
<tr>
20+
<th scope="col" class="p-3">Topics</th>
1621
<th scope="col" class="p-3">Standard</th>
1722
<th scope="col" class="p-3">Description</th>
23+
<th scope="col" class="p-3">Status</th>
1824
</tr>
1925
</thead>
2026
<tbody>
2127
{% for page in site.pages %}
2228
{% if page.topics and page.topics contains 'Standards' %}
2329
<tr>
30+
<td class="p-3">
31+
<div class="d-flex flex-wrap">
32+
{% for topic in page.topics %}
33+
{% if topic != 'Standards' %}
34+
{% assign topic_slug = topic | downcase | replace: " ", "-" %}
35+
{% assign topic_data = site.topics | where: "title", topic | first %}
36+
{% if topic_data.url %}
37+
{% assign topic_url = topic_data.url %}
38+
{% else %}
39+
{% assign topic_url = '/topics/' | append: topic_slug %}
40+
{% endif %}
41+
<a href="{{ topic_url }}" class="d-inline-flex align-items-center mb-1 me-1 text-decoration-none">
42+
{% if topic_data and topic_data.icon %}
43+
<i class="{{ topic_data.icon }} me-2" title="{{ topic }}"></i>
44+
{% endif %}
45+
</a>
46+
{% endif %}
47+
{% endfor %}
48+
</div>
49+
</td>
2450
<td class="p-3">
2551
<div>
2652
<a href="{{ site.baseurl }}{{ page.url }}">{{ page.title }}</a>
@@ -31,15 +57,26 @@
3157
{{ page.description }}
3258
</div>
3359
</td>
60+
<td class="p-3">
61+
<div>
62+
<a href="https://scangov.org">
63+
<i class="fa-solid fa-signal"></i>
64+
</a>
65+
</div>
66+
</td>
3467
</tr>
3568
{% endif %}
3669
{% endfor %}
3770
</tbody>
3871
</table>
39-
4072
</div>
4173
</div>
4274
</div>
75+
<div class="row">
76+
<div class="col-12">
77+
{% include services.html %}
78+
</div>
79+
</div>
4380
</div>
4481
</main>
4582
{% include footer.html %}

_pages/brand.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ topics:
2020

2121
## Colors
2222

23-
- Black: #13171f
24-
- White: #ffffff
23+
- Dark: #13171f
24+
- Light: #ffffff
2525
- Green: #70e17b
26+
- [Color tokens](https://designsystem.digital.gov/design-tokens/color/system-tokens/)
2627

2728
## Icons
2829

_pages/content-security-policy.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Content security policy"
33
date: 2024-09-24
4-
description: "Defines a website's safe content."
4+
description: "Controls which sites can load content."
55
icon: "fa-solid fa-shield"
66
audio: content-security-policy.mp3
77
services: true

_pages/metadata.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Metadata"
33
date: 2024-02-17
4-
description: "About metadata and tags we validate."
4+
description: "Data describing website content."
55
icon: "fa-solid fa-database"
66
services: true
77
lowercase: true

_pages/robots.md _pages/robots-txt.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "robots.txt"
33
date: 2024-03-05
4-
description: "Instructs web robots about crawling and indexing a website."
4+
description: "Directs search engine crawlers' behavior."
55
icon: "fa-solid fa-robot"
66
audio: robots-txt.mp3
77
services: true
@@ -10,6 +10,8 @@ keywords: robots, grades, scores
1010
topics:
1111
- Search engine optimization
1212
- Standards
13+
redirect_from:
14+
- /robots
1315
---
1416

1517
## Guidance

_pages/security-txt.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "security.txt"
33
date: 2024-10-12
4-
description: "Reporting vulnerabilities."
4+
description: "File with website security contact info."
55
icon: "fa-solid fa-file-shield"
66
audio: security-txt.mp3
77
services: true

_pages/sitemaps.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Sitemaps"
33
date: 2024-03-05
4-
description: "Directory of website pages."
4+
description: "Lists website's important pages."
55
icon: "fa-solid fa-sitemap"
66
audio: sitemaps.mp3
77
keywords:

_pages/standards-about.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: "About our standards"
3+
date: 2024-04-28
4+
description: "How we decide our standards."
5+
icon: "fa-solid fa-certificate"
6+
keywords:
7+
topics:
8+
- ScanGov
9+
---
10+
11+
Our standards are based on best practices and conformance guidelines across many domains.
12+
13+
- Open Graph
14+
- OWASP
15+
- W3C

_pages/stld.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Sponsored top-level domain"
33
date: 2024-03-10
4-
description: "A specialized domain with a sponsor representing a specific community."
4+
description: "Guarantees domain is official."
55
icon: "fa-solid fa-landmark-dome"
66
services: true
77
lowercase: true

_pages/x-content-type-options.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "X-Content-Type-Options"
33
date: 2024-10-05
4-
description: "Ensures content renders as declared."
4+
description: "Stops browsers from guessing content types."
55
icon: "fa-solid fa-file-code"
66
audio: x-content-type-options.mp3
77
services: true

0 commit comments

Comments
 (0)