This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-website.git
The following commit(s) were added to refs/heads/main by this push:
new e10da071 fix(#1586): add RSS feed discovery links (#1658)
e10da071 is described below
commit e10da0719f262b94c47260ec20d887a2143e95ae
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Jun 15 13:29:50 2026 +0200
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 <[email protected]>
* fix(#1586): use relURL for RSS feed links to satisfy relative-links lint
Co-Authored-By: Claude Opus 4.6 <[email protected]>
* fix(#1586): move RSS feed link to sidebar below categories
Co-Authored-By: Claude Opus 4.6 <[email protected]>
* fix(#1586): reduce RSS icon size in sidebar
Co-Authored-By: Claude Opus 4.6 <[email protected]>
* fix(#1586): remove underline from RSS feed link in sidebar
Co-Authored-By: Claude Opus 4.6 <[email protected]>
* fix(#1586): reduce gap between sidebar and blog post list
Co-Authored-By: Claude Opus 4.6 <[email protected]>
---------
Co-authored-by: Claude Opus 4.6 <[email protected]>
---
antora-ui-camel/src/css/blog.css | 19 +++++++++++++++++++
antora-ui-camel/src/img/brand-logos.svg | 9 ++++++++-
layouts/blog/list.html | 3 +++
layouts/partials/footer.html | 1 +
layouts/partials/header.html | 2 ++
5 files changed, 33 insertions(+), 1 deletion(-)
diff --git a/antora-ui-camel/src/css/blog.css b/antora-ui-camel/src/css/blog.css
index 71e965fa..ea6decf1 100644
--- a/antora-ui-camel/src/css/blog.css
+++ b/antora-ui-camel/src/css/blog.css
@@ -32,6 +32,21 @@
display: inline-block;
}
+.blog-rss {
+ margin-top: 1rem;
+}
+
+.blog-rss a {
+ text-decoration: none;
+}
+
+.blog-rss .brand-icon {
+ height: 1em;
+ width: 1em;
+ vertical-align: middle;
+ fill: currentcolor;
+}
+
article.blog:first-child {
margin-top: 3rem;
}
@@ -264,6 +279,10 @@ article.blog p {
.blog.list {
flex-direction: row;
}
+
+ main.blog.list {
+ margin-left: 0;
+ }
}
.blog ul,
diff --git a/antora-ui-camel/src/img/brand-logos.svg
b/antora-ui-camel/src/img/brand-logos.svg
index 3f813ec6..43141ece 100644
--- a/antora-ui-camel/src/img/brand-logos.svg
+++ b/antora-ui-camel/src/img/brand-logos.svg
@@ -2,7 +2,7 @@
<svg
xmlns="http://www.w3.org/2000/svg"
version="1.1"
- viewBox="0 0 256 64">
+ viewBox="0 0 320 64">
<symbol id="twitter" viewBox="0 0 64 64">
<title>Twitter</title>
<desc>Follow Apache Camel on Twitter</desc>
@@ -25,4 +25,11 @@
<desc>Apache Camel group on Linkedin</desc>
<path d="M 192 4 L 192 60 L 254 60 L 254 4 Z M 213.332031 50.667969 L
205.332031 50.667969 L 205.332031 21.332031 L 213.332031 21.332031 Z M
209.332031 17.953125 C 210.757812 17.953125 204.667969 15.84375 204.667969
13.246094 C 204.667969 10.652344 206.757812 8.542969 209.332031 8.542969 C
211.910156 8.542969 214 10.652344 214 13.246094 C 214 15.84375 211.910156
17.953125 209.332031 17.953125 Z M 245.332031 50.667969 L 237.332031 50.667969
L 237.332031 35.722656 C 237.332031 26.74218 [...]
</symbol>
+ <symbol id="rss" viewBox="256 0 64 64">
+ <title>RSS</title>
+ <desc>Subscribe to RSS Feed</desc>
+ <circle cx="272" cy="48" r="6" />
+ <path d="M 264,20 C 264,20 264,20 264,20 C 279.464,20 292,32.536 292,48 L
300,48 C 300,28.118 283.882,12 264,12 Z" />
+ <path d="M 264,34 C 271.732,34 278,40.268 278,48 L 286,48 C 286,35.85
276.15,26 264,26 Z" />
+ </symbol>
</svg>
diff --git a/layouts/blog/list.html b/layouts/blog/list.html
index 0eeca12e..0eda15d6 100644
--- a/layouts/blog/list.html
+++ b/layouts/blog/list.html
@@ -17,6 +17,9 @@
{{ end }}
</ul>
</div>
+ <div class="blog-rss">
+ <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>
+ </div>
</aside>
</nav>
<main class="doc blog list">
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 741e7d72..05b643bf 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -77,6 +77,7 @@
<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>
<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>
<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>
+ <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>
</div>
</div>
</footer>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index e3383ec5..eb650c0e 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -42,6 +42,7 @@
<link rel="manifest" href="{{ "site.webmanifest" | relURL }}">
<title>{{ block "title" . }}{{ .Title }} - {{ .Site.Title }}{{ end
}}</title>
<link rel="canonical" href="{{ .Permalink }}">
+ <link rel="alternate" type="application/rss+xml" title="Apache Camel Blog"
href="{{ "blog/index.xml" | relURL }}">
{{ if .Description}}
<meta name="description" content="{{ .Description }}">
{{ end }}
@@ -78,6 +79,7 @@
<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>
<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>
<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>
+ <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>
</div>
<button class="navbar-burger" data-target="topbar-nav"
type="button" aria-label="Menu">
<span></span>