Skip to content

Commit

Permalink
Help Feedly find feed links (#99)
Browse files Browse the repository at this point in the history
* Add feed links to homepage.

* Maybe specify mime type and add an explicit anchor.

* Drop the explicit link.
  • Loading branch information
mattstein authored Sep 6, 2023
1 parent 0ae96aa commit 6b85be0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pages/blog/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const jsonUrl = new URL(`/blog/feed.json`, Astro.site).toString()
title={title}
description={BLOG_DESCRIPTION}
link={[
{ rel: "alternate", href: rssUrl },
{ rel: "alternate", href: jsonUrl },
{ rel: "alternate", href: rssUrl, type: "application/rss+xml" },
{ rel: "alternate", href: jsonUrl, type: "application/json" },
]}
>
<main class="max-w-4xl mx-auto">
Expand Down
12 changes: 11 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,19 @@ import Layout from "../layouts/Layout.astro"
import RepoCard from "@components/RepoCard.astro"
import SoftwareLogos from "@components/SoftwareLogos.astro"
import { GITHUB_REPO } from "../const"
const rssUrl = new URL(`/blog/rss.xml`, Astro.site).toString()
const jsonUrl = new URL(`/blog/feed.json`, Astro.site).toString()
---

<Layout title={``} description={`Local development environments in seconds. Customize, share, and extend with ease.`}>
<Layout
title={``}
description={`Local development environments in seconds. Customize, share, and extend with ease.`}
link={[
{ rel: "alternate", href: rssUrl, type: "application/rss+xml" },
{ rel: "alternate", href: jsonUrl, type: "application/json" },
]}
>
<main>
<Hero />

Expand Down

0 comments on commit 6b85be0

Please sign in to comment.