2 Commits

Author SHA1 Message Date
bb6346bbad Change related posts heading from h1 to h2
This was caught by a Bing Webmaster check:
"There are multiple <h1> tags on the page."
2025-09-08 19:52:01 -05:00
f091b366be Attempt to fix robots.txt blocking /blog/*.md for all bots
According to Semrush, 741b3bc01b added a
block for /blog/*.md for User-Agent: *, even though everything I can
read says that it shouldn't apply since the blocks are separated.

I tried reordering the rules and explicitly adding an `Allow: /` rule,
both to match what's shown on Google Search documentation[1].

[1]: https://developers.google.com/search/docs/crawling-indexing/robots/create-robots-txt,
and
2025-09-08 19:27:12 -05:00
3 changed files with 7 additions and 5 deletions

View File

@@ -784,7 +784,7 @@ figcaption {
*/
.related-posts > hr,
.related-posts > h1 {
.related-posts > h2 {
margin: var(--page-margin);
}

View File

@@ -79,7 +79,7 @@
{{ with $related }}
<div class="related-posts">
<hr>
<h1>{{ i18n "related_posts" }}</h1>
<h2>{{ i18n "related_posts" }}</h2>
{{ partial "page-list.html" . }}
</div>
{{ end }}

View File

@@ -1,6 +1,8 @@
User-Agent: *
Sitemap: {{ "sitemap.xml" | absLangURL }}
{{/* It complains about the raw markdown output having no title tag */ -}}
User-Agent: Bingbot
Disallow: /blog/*.md$
User-Agent: *
Allow: /
Sitemap: {{ "sitemap.xml" | absLangURL }}