-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 make 404 a sitemap; block AI in robots.txt
- Loading branch information
Showing
4 changed files
with
125 additions
and
13 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
import { getCollection } from 'astro:content'; | ||
import { Image } from "astro:assets"; | ||
import SiteWide from '~layouts/SiteWide.astro'; | ||
import { Four04, BLAHG, SITE_SUBTITLE } from '~/consts'; | ||
const posts = (await getCollection('blahg')).sort( | ||
(a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf() | ||
); | ||
--- | ||
|
||
<SiteWide title={Four04.pageTitle} description={Four04.pageDesc}> | ||
<section itemscope itemtype="https://schema.org/WebPage" class="readable"> | ||
<h1 itemprop="name">{Four04.title}</h1> | ||
<p itemprop="description">{Four04.description}</p> | ||
<ul class="page-list"> | ||
<li><a href="/" itemprop="relatedLink">Home page of scottnath.com</a></li> | ||
<li><a href="/whoami/" itemprop="relatedLink">The Scott Nath About page</a></li> | ||
<li><a href="/resume/" itemprop="relatedLink">Resume for Scott Nath, {SITE_SUBTITLE}</a></li> | ||
<li><a href="/sitemap-index.xml" target="_blank" itemprop="significantLink">Sitemap: scottnath.com/sitemap-index.xml</a></li> | ||
<li><a href="/blahg/" itemprop="relatedLink">{BLAHG.title}</a><ul> | ||
{ | ||
posts.map((post, index) => ( | ||
<li itemprop="significantLink" itemscope itemtype="https://schema.org/BlogPosting"> | ||
<a href={`/blahg/${post.slug}/`} itemprop="name">{post.data.title}</a> | ||
</li> | ||
)) | ||
} | ||
</ul></li> | ||
</ul> | ||
</section> | ||
</SiteWide> | ||
<style> | ||
a { | ||
text-decoration: none; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters