Skip to content

Commit e71e396

Browse files
committed
Add robots + sitemap guidance
+ clean up related
1 parent 789934f commit e71e396

File tree

4 files changed

+52
-30
lines changed

4 files changed

+52
-30
lines changed

_includes/related.html

+29-26
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,32 @@
1616
<h2 class="mt-5">Related</h2>
1717
<ul>
1818
{% for related in related_pages limit: 5 %}
19-
<li>
20-
<a href="{{ related.url }}">{{ related.title }}</a>
21-
</li>
22-
{% endfor %}
23-
</ul>
24-
{% endif %}
25-
{% assign shown_topics = "" %}
26-
{% for topic in site.topics %}
27-
{% if topic.link and page.topics contains topic.title %}
28-
{% assign shown_topics = shown_topics | append: topic.title | append: "," %}
29-
{% endif %}
30-
{% endfor %}
31-
32-
{% if shown_topics != "" %}
33-
<h2 class="mt-5">ScanGov</h2>
34-
<p>Grades/scores that use {{ page.title }}:</p>
35-
<ul>
36-
{% for topic in site.topics %}
37-
{% if topic.link and page.topics contains topic.title %}
38-
<li>
39-
<a href="{{ topic.link }}">{{ topic.title }}</a>
40-
</li>
41-
{% endif %}
42-
{% endfor %}
43-
</ul>
44-
{% endif %}
19+
{% unless related.title == "Services" or related.title contains "ScanGov"" %}
20+
<li>
21+
<a href="{{ related.url }}">{{ related.title }}</a>
22+
</li>
23+
{% endunless %}
24+
{% endfor %}
25+
</ul>
26+
{% endif %}
27+
{% assign shown_topics = "" %}
28+
{% for topic in site.topics %}
29+
{% if topic.link and page.topics contains topic.title %}
30+
{% assign shown_topics = shown_topics | append: topic.title | append: "
31+
, " %}
32+
{% endif %}
33+
{% endfor %}
34+
35+
{% if shown_topics != "" %}
36+
<h2 class="mt-5">ScanGov</h2>
37+
<p>Grades/scores that use {{ page.title }}:</p>
38+
<ul>
39+
{% for topic in site.topics %}
40+
{% if topic.link and page.topics contains topic.title %}
41+
<li>
42+
<a href="{{ topic.link }}">{{ topic.title }}</a>
43+
</li>
44+
{% endif %}
45+
{% endfor %}
46+
</ul>
47+
{% endif %}

_layouts/docs.html

+1-4
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,9 @@
2828
{% include jumbotron.html %}
2929
{% include audio.html %}
3030
{% include anchor_headings.html html=content anchorBody="<i class='fa-solid fa-link'></i>" %}
31-
<!--
32-
{% if page.guidance %} <h2>Reference</h2> <div class="mb-4"> <a href="{{ site.baseurl }}/topics/guidance"> <span class="badge text-bg-secondary"> {{ page.guidance }} <i class="fa-solid fa-trophy" aria="hidden"></i> </span> </a> </div>{% endif %}
33-
-->
3431
{% if page.website %}
3532
<p>
36-
<a href="{{ page.website }}" class="btn btn-primary mt-3">Website</a>
33+
<a href="{{ page.website }}" class="btn btn-primary mt-2">Website</a>
3734
</p>
3835
{% endif %}
3936
{% include related.html %}

_pages/robots-txt-org.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: "The Web Robots Pages"
3+
date: 2025-02-14
4+
modified:
5+
author: ScanGov
6+
description: "Guidelines for controlling search engine crawling."
7+
icon: "fa-solid fa-robot"
8+
website: https://robotstxt.org
9+
audio:
10+
services:
11+
lowercase:
12+
guidance: true
13+
keywords:
14+
topics:
15+
- Guidance
16+
- Search engine optimization
17+
---
18+
19+
## About
20+
21+
The Web Robots Pages provides guidelines on how websites can control search engine crawling using a robots.txt file.

_pages/sitemaps-org.md

+1
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ topics:
1919

2020
## About
2121

22+
Sitemaps.org includes guidelines, protocols, and formats for creating sitemaps, helping search engines find and index website content efficiently.

0 commit comments

Comments
 (0)