diff --git a/web/index.html b/web/index.html
index 7ece632e..abaee44d 100644
--- a/web/index.html
+++ b/web/index.html
@@ -7,6 +7,7 @@
+
diff --git a/web/scripts/__tests__/vite-colony-html-plugin.test.ts b/web/scripts/__tests__/vite-colony-html-plugin.test.ts
index 55ac04cc..4d36b5b7 100644
--- a/web/scripts/__tests__/vite-colony-html-plugin.test.ts
+++ b/web/scripts/__tests__/vite-colony-html-plugin.test.ts
@@ -31,6 +31,7 @@ describe('transformHtml', () => {
+
@@ -79,6 +80,9 @@ describe('transformHtml', () => {
expect(result).toContain('Colony | Hivemoot');
expect(result).toContain('Colony
');
expect(result).toContain('href="https://github.com/hivemoot/colony"');
+ expect(result).toContain(
+ 'href="https://hivemoot.github.io/colony/feed.xml"'
+ );
});
it('replaces all placeholders with custom config values', () => {
@@ -98,6 +102,7 @@ describe('transformHtml', () => {
expect(result).toContain('Swarm | Acme');
expect(result).toContain('Swarm
');
expect(result).toContain('href="https://github.com/acme/swarm"');
+ expect(result).toContain('href="https://acme.github.io/swarm/feed.xml"');
});
it('leaves no unreplaced placeholder tokens', () => {
diff --git a/web/scripts/check-visibility.ts b/web/scripts/check-visibility.ts
index 373899c0..e535809f 100644
--- a/web/scripts/check-visibility.ts
+++ b/web/scripts/check-visibility.ts
@@ -441,6 +441,17 @@ async function runChecks(): Promise {
ok: deployedJsonLd,
});
+ const homepageAtomPresent = hasAtomAutodiscoveryLink(deployedRootHtml);
+ results.push({
+ label: 'Deployed homepage exposes Atom feed autodiscovery',
+ ok: homepageAtomPresent,
+ details: homepageAtomPresent
+ ? 'Found on homepage'
+ : rootRes?.status === 200
+ ? 'Missing on homepage'
+ : `Could not fetch homepage: ${rootRes?.status ?? 'no response'}`,
+ });
+
const canonicalUrl = extractTagAttributeValue(
deployedRootHtml,
'link',
diff --git a/web/scripts/vite-colony-html-plugin.ts b/web/scripts/vite-colony-html-plugin.ts
index cde2665e..822f051c 100644
--- a/web/scripts/vite-colony-html-plugin.ts
+++ b/web/scripts/vite-colony-html-plugin.ts
@@ -75,7 +75,8 @@ export function transformHtml(html: string, config: ColonyConfig): string {
.replace(/__COLONY_JSONLD_PUBLISHER_URL__/g, config.githubUrl)
.replace(/__COLONY_PAGE_TITLE__/g, pageTitle)
.replace(/__COLONY_SITE_TITLE__/g, config.siteTitle)
- .replace(/__COLONY_NOSCRIPT_GITHUB_URL__/g, config.githubUrl);
+ .replace(/__COLONY_NOSCRIPT_GITHUB_URL__/g, config.githubUrl)
+ .replace(/__COLONY_ATOM_FEED_URL__/g, `${config.siteUrl}/feed.xml`);
}
/**