Code Monkey home page Code Monkey logo

Comments (10)

jbelien avatar jbelien commented on July 2, 2024 1

Hello @mart-e,

There is a feed available here: https://openstreetmap.be/feed.xml
But I just noticed the posts and events are indeed not in the feed ... Strange, I'll have a look ASAP !

from website.

mart-e avatar mart-e commented on July 2, 2024 1

It seems that jekyll-feed supports generating feed for custom collections
https://github.com/jekyll/jekyll-feed#collections

Wouldn't adding

feed:
  collections:
    - events

do the trick and, if I understand correctly, create a feed/events.xml feed?
(e.g. this https://mart-e.github.io/website/feed/events.xml cf my fork)

I also found this article explaining how to generate a feed combining multiple sources but it is creating a feed fully manually (which is a bit sad while jekyll-feed already does almost what you want).

from website.

jbelien avatar jbelien commented on July 2, 2024 1

Dear @mart-e you're totally right!

RSS feed for the posts is https://openstreetmap.be/feed.xml
RSS feed for the events is now https://openstreetmap.be/feed/events.xml

Thank you! ๐Ÿพ

from website.

mart-e avatar mart-e commented on July 2, 2024

Thanks!
Is this URL present in the interface? I did not found it on the main pages.

from website.

jbelien avatar jbelien commented on July 2, 2024

Is this URL present in the interface? I did not found it on the main pages.

Probably not ๐Ÿ™„

from website.

jbelien avatar jbelien commented on July 2, 2024

I think I found the "issue".

It seems that the jekyll-feed plugin doesn't like my structure for the posts.
The main issue is that we have 3 languages and that Jekyll isn't built for such use case. There are some plugins that do the trick but they are not supported by GitHub pages.

So I don't have a solution at the moment but I'm definitely open to suggestions...

from website.

mart-e avatar mart-e commented on July 2, 2024

I don't know jekyll but as I understand it, the posts in the feed are generated from

{% for post in site.posts limit:36 %}

and the problem is that site.posts does not contains the events, right?
Or do you wish to create one different feed per language?

from website.

jbelien avatar jbelien commented on July 2, 2024

You're right !
But you're talking here about the JSON feed and not the RSS feed.
My comments are related to the RSS feed (generated by the jekyll-feed plugin).

The JSON feed is indeed much more flexible since I generate it myself.

from website.

jbelien avatar jbelien commented on July 2, 2024

Interesting !
I'll give it a try ๐Ÿ‘

from website.

mart-e avatar mart-e commented on July 2, 2024

Great, thanks for the update !

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.