Skip to content

Commit f616af2

Browse files
Use only one button with link to the atom feed in the nav bar and on the blog posts page. Use the icons without text.
1 parent 7a7492e commit f616af2

File tree

7 files changed

+181
-191
lines changed

7 files changed

+181
-191
lines changed

docusaurus.config.ts

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,7 @@ const config: Config = {
6363
//image: 'img/docusaurus-social-card.jpg',
6464
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
6565
headTags: [
66-
{
67-
tagName: 'link',
68-
attributes: {
69-
rel: 'alternate',
70-
type: 'application/rss+xml',
71-
title: 'RSS Feed',
72-
href: '/rss.xml',
73-
},
74-
},
66+
7567
{
7668
tagName: 'link',
7769
attributes: {
@@ -156,20 +148,12 @@ const config: Config = {
156148
target: "_blank",
157149
className: "mastodon-icon",
158150
},
159-
160-
{
161-
to: "rss.xml",
162-
title: "RSS",
163-
position: "right",
164-
target: "_blank",
165-
className: "rss-circle-icon",
166-
},
167151
{
168152
to: "atom.xml",
169153
title: "Atom",
170154
position: "right",
171155
target: "_blank",
172-
className: "atom-circle-icon",
156+
className: "rss-circle-icon",
173157
},
174158
],
175159
},

src/components/blog/index.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import styles from "./styles.module.css";
22
import React, { useState } from "react";
33
import BlogpostCard from "./BlogpostCard";
44
import { blogpostsDetails } from "./blogpostsDetails";
5-
import RSSOrange from "/img/icons/RSS_orange_with_text.svg";
6-
import AtomOrange from "/img/icons/Atom_orange_with_text.svg";
5+
import AtomOrange from "/img/icons/RSSOrange.svg";
76

87
export default function BlogsComponent() {
98
const numberOfBlogs = blogpostsDetails.length;
@@ -33,11 +32,6 @@ export default function BlogsComponent() {
3332
<h1 className="padding-none margin-none">
3433
Featured Posts by QuantStack Contributors
3534
</h1>
36-
<div style={{padding:"0 10px"}}>
37-
<a href={"/rss.xml"}>
38-
<RSSOrange width={"42px"} height={"42px"} />
39-
</a>
40-
</div>
4135
<div style={{padding:"0 10px"}}>
4236
<a href={"/atom.xml"}>
4337
<AtomOrange width={"42px"} height={"42px"} />

src/css/custom.css

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,20 +591,32 @@ a.menu__link:active {
591591
}
592592

593593
.rss-circle-icon:before {
594-
background: url(@site/static/img/socialmedias/RSS_with_text.svg);
594+
background: url(@site/static/img/socialmedias/RSS.svg);
595595
content: "";
596596
display: flex;
597597
height: 36px;
598598
width: 36px;
599599
background-repeat: no-repeat;
600600
}
601601

602+
.rss-circle-icon-with-text:hover {
603+
opacity: 0.6;
604+
}
605+
606+
.rss-circle-icon-with-text:before {
607+
background: url(@site/static/img/socialmedias/RSS_with_text.svg);
608+
content: "";
609+
display: flex;
610+
height: 36px;
611+
width: 36px;
612+
background-repeat: no-repeat;
613+
}
602614

603-
.atom-circle-icon:hover {
615+
.atom-circle-icon-with-text:hover {
604616
opacity: 0.6;
605617
}
606618

607-
.atom-circle-icon:before {
619+
.atom-circle-icon-with-text:before {
608620
background: url(@site/static/img/socialmedias/Atom_with_text.svg);
609621
content: "";
610622
display: flex;

static/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<id>https://quantstack.net/</id>
44
<title>Recent blog posts featured by QuantStack team</title>
5-
<updated>2025-07-29T21:03:57.890Z</updated>
5+
<updated>2025-07-29T21:14:51.498Z</updated>
66
<generator>https://github.com/jpmonette/feed</generator>
77
<author>
88
<name>QuantStack Team</name>

static/atom_all.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<id/>
44
<title>All blog posts featured by QuantStack team</title>
5-
<updated>2025-07-29T21:03:57.905Z</updated>
5+
<updated>2025-07-29T21:14:51.503Z</updated>
66
<generator>https://github.com/jpmonette/feed</generator>
77
<subtitle>Atom feed for QuantStack website blog page</subtitle>
88
<entry>

static/rss.xml

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)