Coder Social home page Coder Social logo

Comments (13)

joshgoebel avatar joshgoebel commented on May 18, 2024 3

In the hopes that it helps someone (it's easy to do this without a plugin at all):

http://runningblind.com/2018/12/22/jekyll-jekyll-feed-you-don-t-need-it/

That's the route I ended up going. And then tuning the number is just changing the number in your own template.

from jekyll-feed.

benbalter avatar benbalter commented on May 18, 2024

@julien51 can you explain your use case and reasoning a bit more?

from jekyll-feed.

julien51 avatar julien51 commented on May 18, 2024

Well, for high frequency feeds, 10 entries might be a little short, because the polling interval may be a bit longer than the time the 10 entries are "in the feed". A marge window, like 20 or more entries would be helpful.

10 is a good default though, just adding a setting to increase this would be nice!

from jekyll-feed.

benbalter avatar benbalter commented on May 18, 2024

Have you run into an issue with a site updating more frequently than the polling rate (or is this a hypothetical)? Would a default of 20 solve that? 15?

from jekyll-feed.

julien51 avatar julien51 commented on May 18, 2024

from jekyll-feed.

lancecarlson avatar lancecarlson commented on May 18, 2024

Perhaps this would be even more useful if you could override the feed.xml template completely? Then you could stick the feed.xml config at the root, point to that new path and completely customize the RSS feed the way you want if you want to.

BTW, I ran into this exact same issue. Wanted to export all of my blog posts to wordpress so the limit is annoying.

from jekyll-feed.

lancecarlson avatar lancecarlson commented on May 18, 2024

Actually, after looking again.. this looks like this works already? If I have a feed.xml in my root of my project, it loads that instead?

from jekyll-feed.

parkr avatar parkr commented on May 18, 2024

If I have a feed.xml in my root of my project, it loads that instead?

I believe this is the case, yes. 👍

from jekyll-feed.

pathawks avatar pathawks commented on May 18, 2024

Just spitballing here: What if we included the most recent 10 posts, and all posts published in the past 48 hours? Would this solve the problem of feed readers missing posts because of infrequent polling?

from jekyll-feed.

benbalter avatar benbalter commented on May 18, 2024

@pathawks I like that idea. Not sure if it's possible in liquid or crazy complicated, but how about 10 posts OR everything in the past 24 hours, whichever is more?

from jekyll-feed.

pathawks avatar pathawks commented on May 18, 2024

@benbalter I will take a look tonight and see what is possible.

from jekyll-feed.

pathawks avatar pathawks commented on May 18, 2024

What if we included the most recent 10 posts, and all posts published in the past 48 hours?

This seems to not be currently possible. jekyll/jekyll#4860

from jekyll-feed.

jekyllbot avatar jekyllbot commented on May 18, 2024

This issue has been automatically marked as stale because it has not been commented on for at least
one month.

The resources of the Jekyll team are limited, and so we are asking for your help.

If you can still reproduce this error on the 3.1-stable or master branch,
please reply with all of the information you have about it in order to keep the issue open.

If this is a feature request, please consider building it first as a plugin. Jekyll 3 introduced
hooks which provide convenient access points throughout
the Jekyll build pipeline whereby most needs can be fulfilled. If this is something that cannot be
built as a plugin, then please provide more information about why in order to keep this issue open.

Thank you for all your contributions.

from jekyll-feed.

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.