Giter Club home page Giter Club logo

Comments (12)

derberg avatar derberg commented on August 21, 2024 1

@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.

JakubIwanowski avatar JakubIwanowski commented on August 21, 2024 1

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.

github-actions avatar github-actions commented on August 21, 2024

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.

github-actions avatar github-actions commented on August 21, 2024

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.

JakubIwanowski avatar JakubIwanowski commented on August 21, 2024

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.

derberg avatar derberg commented on August 21, 2024

@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.

JakubIwanowski avatar JakubIwanowski commented on August 21, 2024

Alright!

from website.

derberg avatar derberg commented on August 21, 2024

looks good, would suggest few things though:

  1. 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">
  1. This <link href="https://asyncapi.com/feed" rel="self"/> could probably be <link href="/feed" rel="self"/>. And what about the xml extension?
  2. 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.

github-actions avatar github-actions commented on August 21, 2024

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.

github-actions avatar github-actions commented on August 21, 2024

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.

github-actions avatar github-actions commented on August 21, 2024

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.

derberg avatar derberg commented on August 21, 2024

Done thanks to @MikeRalphson
#235

from website.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.