Skip to content

Commit e10da07

Browse files
davsclausclaude
andauthored
fix(#1586): add RSS feed discovery links (#1658)
* fix(#1586): add RSS feed discovery links - Add <link rel="alternate"> in HTML head for feed autodiscovery - Add RSS icon to header and footer icon bars - Add visible RSS feed link on blog list page - Add RSS icon to brand-logos SVG sprite Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(#1586): use relURL for RSS feed links to satisfy relative-links lint Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(#1586): move RSS feed link to sidebar below categories Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(#1586): reduce RSS icon size in sidebar Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(#1586): remove underline from RSS feed link in sidebar Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(#1586): reduce gap between sidebar and blog post list Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1bf1ccf commit e10da07

5 files changed

Lines changed: 33 additions & 1 deletion

File tree

antora-ui-camel/src/css/blog.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@
3232
display: inline-block;
3333
}
3434

35+
.blog-rss {
36+
margin-top: 1rem;
37+
}
38+
39+
.blog-rss a {
40+
text-decoration: none;
41+
}
42+
43+
.blog-rss .brand-icon {
44+
height: 1em;
45+
width: 1em;
46+
vertical-align: middle;
47+
fill: currentcolor;
48+
}
49+
3550
article.blog:first-child {
3651
margin-top: 3rem;
3752
}
@@ -264,6 +279,10 @@ article.blog p {
264279
.blog.list {
265280
flex-direction: row;
266281
}
282+
283+
main.blog.list {
284+
margin-left: 0;
285+
}
267286
}
268287

269288
.blog ul,

antora-ui-camel/src/img/brand-logos.svg

Lines changed: 8 additions & 1 deletion
Loading

layouts/blog/list.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ <h3>Categories</h3>
1717
{{ end }}
1818
</ul>
1919
</div>
20+
<div class="blog-rss">
21+
<a href="{{ "blog/index.xml" | relURL }}" title="Subscribe to RSS Feed"><svg focusable="false" class="brand-icon"><use href="{{ path.Join "_" (index .Site.Data "rev-manifest" "img/brand-logos.svg") | relURL }}#rss" /></svg> RSS Feed</a>
22+
</div>
2023
</aside>
2124
</nav>
2225
<main class="doc blog list">

layouts/partials/footer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
<a rel="noopener noreferrer nofollow" href="https://camel.zulipchat.com" title="Chat on Zulip"><svg class="brand-icon" focusable="false"><use href="{{ path.Join "_" (index .Site.Data "rev-manifest" "img/brand-logos.svg") | relURL }}#zulip" /></svg></a>
7878
<a rel="noopener noreferrer nofollow" href="https://twitter.com/ApacheCamel" title="Follow Apache Camel on Twitter"><svg class="brand-icon" focusable="false"><use href="{{ path.Join "_" (index .Site.Data "rev-manifest" "img/brand-logos.svg") | relURL }}#twitter" /></svg></a>
7979
<a rel="noopener noreferrer nofollow" href="https://www.linkedin.com/groups/2447439/" title="Apache Camel group on Linkedin"><svg class="brand-icon" focusable="false"><use href="{{ path.Join "_" (index .Site.Data "rev-manifest" "img/brand-logos.svg") | relURL }}#linkedin" /></svg></a>
80+
<a href="{{ "blog/index.xml" | relURL }}" title="Subscribe to RSS Feed"><svg class="brand-icon" focusable="false"><use href="{{ path.Join "_" (index .Site.Data "rev-manifest" "img/brand-logos.svg") | relURL }}#rss" /></svg></a>
8081
</div>
8182
</div>
8283
</footer>

layouts/partials/header.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
<link rel="manifest" href="{{ "site.webmanifest" | relURL }}">
4343
<title>{{ block "title" . }}{{ .Title }} - {{ .Site.Title }}{{ end }}</title>
4444
<link rel="canonical" href="{{ .Permalink }}">
45+
<link rel="alternate" type="application/rss+xml" title="Apache Camel Blog" href="{{ "blog/index.xml" | relURL }}">
4546
{{ if .Description}}
4647
<meta name="description" content="{{ .Description }}">
4748
{{ end }}
@@ -78,6 +79,7 @@
7879
<a rel="noopener noreferrer nofollow" href="https://camel.zulipchat.com" title="Chat on Zulip"><svg focusable="false" class="brand-icon"><use href="{{ path.Join "_" (index .Site.Data "rev-manifest" "img/brand-logos.svg") | relURL }}#zulip" /></svg></a>
7980
<a rel="noopener noreferrer nofollow" href="https://twitter.com/ApacheCamel" title="Follow Apache Camel on Twitter"><svg focusable="false" class="brand-icon"><use href="{{ path.Join "_" (index .Site.Data "rev-manifest" "img/brand-logos.svg") | relURL }}#twitter" /></svg></a>
8081
<a rel="noopener noreferrer nofollow" href="https://www.linkedin.com/groups/2447439/" title="Apache Camel group on Linkedin"><svg focusable="false" class="brand-icon"><use href="{{ path.Join "_" (index .Site.Data "rev-manifest" "img/brand-logos.svg") | relURL }}#linkedin" /></svg></a>
82+
<a href="{{ "blog/index.xml" | relURL }}" title="Subscribe to RSS Feed"><svg focusable="false" class="brand-icon"><use href="{{ path.Join "_" (index .Site.Data "rev-manifest" "img/brand-logos.svg") | relURL }}#rss" /></svg></a>
8183
</div>
8284
<button class="navbar-burger" data-target="topbar-nav" type="button" aria-label="Menu">
8385
<span></span>

0 commit comments

Comments
 (0)