Comments (12)
@JakubIwanowski sorry, I was not behind building the website, I'm new to Next.js and just learned that actually the config file is maintained by default by Next.js so yeap, looks like what you linked is a good idea and https://github.com/asyncapi/website/blob/master/config/posts.json would be what you would have to read to get list of posts
from website.
So the atom feed looks like this for now:
<title>AsyncApi Initiative</title>
<subtitle>Blog</subtitle>
<link href="https://asyncapi.com/feed" rel="self"/>
<link href="https://asyncapi.com/"/>
<updated>2020-09-30T05:00:00.000Z</updated>
<id>https://asyncapi.com/</id>
<author>
<name>AsyncApi Initiative</name>
<email>[email protected]</email>
</author>
<entry>
<title>AsyncAPI @Hacktoberfest</title>
<link href="https://asyncapi.com//blog/hacktoberfest-2020"/>
<updated>2020-09-30T05:00:00.000Z</updated>
<summary>What is AsyncAPI AsyncAPI is a specification for describing your event-driven architecture. You are probably using already OpenAPI/Swagger specification for describing your synchronous RESTful APIs. A</summary>
</entry>
...
</feed>
It shows 10 latest posts from the blog section. The script is run on build :
"build": "node scripts/build-post-list.js && node scripts/atom.js && next build",
Do you want me to to change/add/delete something from the feed?
from website.
This issue has been automatically marked as stale because it has not had recent activity 😴
It will be closed in 30 days if no further activity occurs. To unstale this issue, add a comment with detailed explanation.
Thank you for your contributions ❤️
from website.
This issue has been automatically marked as stale because it has not had recent activity 😴
It will be closed in 30 days if no further activity occurs. To unstale this issue, add a comment with detailed explanation.
Thank you for your contributions ❤️
from website.
You moved your website form Hugo to Next.js, right? Maybe something like this would work: https://github.com/rauchg/blog/blob/master/lib/atom.js
The posts would have to be filtered of course, by "sectionSlug", perhaps? Plus other changes, so the atom feed link is available on the website.
from website.
@JakubIwanowski yes, last week we moved to Next.js. We do not have strong requirement for Atom, so if there is something better already for Next.js for rss feeds, feel free to use it.
I'm not a fan of https://github.com/rauchg/blog/blob/master/lib/atom.js as this would require us to maintain a separate json file with list of blog posts.
from website.
Alright!
from website.
looks good, would suggest few things though:
- These lines are missing at the beginning of the feed
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
- This
<link href="https://asyncapi.com/feed" rel="self"/>
could probably be<link href="/feed" rel="self"/>
. And what about thexml
extension? - According to https://validator.w3.org/feed/check.cgi you should also generate
id
attribute per entry
I'd like to have all posts in the feed, not just the last 10
from website.
This issue has been automatically marked as stale because it has not had recent activity 😴
It will be closed in 30 days if no further activity occurs. To unstale this issue, add a comment with detailed explanation.
Thank you for your contributions ❤️
from website.
This issue has been automatically marked as stale because it has not had recent activity 😴
It will be closed in 60 days if no further activity occurs. To unstale this issue, add a comment with detailed explanation.
Thank you for your contributions ❤️
from website.
This issue has been automatically marked as stale because it has not had recent activity 😴
It will be closed in 60 days if no further activity occurs. To unstale this issue, add a comment with detailed explanation.
Thank you for your contributions ❤️
from website.
Done thanks to @MikeRalphson
#235
from website.
Related Issues (20)
- front page card is wrongly aligned HOT 2
- put cheatsheet/poster somewhere on website in some kind of easy to access form HOT 5
- [📑 Docs]: Automation Github Workflows HOT 2
- [BUG] <Three line graphics symbol or the menu symbol are wrongly aligned in the navigation bar> HOT 3
- [📑 Docs]: AsyncAPI Documentation is Frustrating HOT 3
- v3 specification reference section not loading HOT 5
- support short urls HOT 2
- [FEATURE] Want to add up the build pipeline that runs on every PR HOT 2
- [📑 Docs]: Specs' hightlighting error HOT 1
- [BUG] Responsiveness issue on the View on Github button HOT 1
- [BUG] Navbar changes its behavior when we click on the hamburger menu on small devices HOT 5
- Proposal to Redesign the AsyncAPI Website HOT 6
- Automated listing of meetings and other data fails since 2 weeks HOT 1
- Create a Sponsor poster for IBM HOT 5
- [FEATURE] Optimize Web Performance based on Lighthouse Metric HOT 5
- After migration this https://www.asyncapi.com/blog/conference-2022 article looks broken HOT 4
- blog landing page has problem with showing 2 authors names HOT 1
- [BUG] <description> HOT 3
- Feature Request: Dark Mode Toggle Button HOT 5
- [📑 Docs]: Tutorial for using ROS2 with AsyncAPI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from website.