Coder Social home page Coder Social logo

Comments (12)

arielelkin avatar arielelkin commented on June 8, 2024 1

@ashmaroli thanks for the workaround, it works fine!

from jekyll-feed.

ashmaroli avatar ashmaroli commented on June 8, 2024

@arielelkin As of now, there's no option to disable generation of the posts' feed.xml. The workaround would be overwriting the default feed with your feed by using the path: "feed.xml" setting instead of the feed.atom as in your suggestion. But yes, that is a brittle solution.

from jekyll-feed.

arielelkin avatar arielelkin commented on June 8, 2024

Thanks for the response @ashmaroli

I can't get your suggestion to work, i'm afraid... I've tried following it thus:

feed:
  collections:
    authors:
      path: "/feed.xml"

But the generated feed.xml file still contains posts instead of items from the authors collection.

from jekyll-feed.

jekyllbot avatar jekyllbot commented on June 8, 2024

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

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

If this is a bug and you can still reproduce this error on the master/main 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 whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial.

This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions.

from jekyll-feed.

arielelkin avatar arielelkin commented on June 8, 2024

any updates on this? @parkr

from jekyll-feed.

parkr avatar parkr commented on June 8, 2024

No updates! Want to submit a PR?

I think the right approach here is that we release a major version update that respects the config exactly rather than auto-injecting the posts collection even if other collections are configured.

from jekyll-feed.

arielelkin avatar arielelkin commented on June 8, 2024

I would like to submit a PR but I lack the required background in Ruby..

from jekyll-feed.

jekyllbot avatar jekyllbot commented on June 8, 2024

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

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

If this is a bug and you can still reproduce this error on the master/main 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 whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial.

This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions.

from jekyll-feed.

parkr avatar parkr commented on June 8, 2024

@arielelkin It looks like the code will actually use a configured posts path, so put it elsewhere?

feed:
  collections:
    authors:
      path: "/feed.xml"
    posts:
      path: "/feed/posts.xml"

Try that and maybe /feed.xml will contain the authors feed?

from jekyll-feed.

arielelkin avatar arielelkin commented on June 8, 2024

@parkr Thank you for your suggestion!

With your code, /feed.xml now contains the authors feed, but a feed of all posts is still produced in /feed/posts.xml.

It makes things slightly tidier, but it doesn't address the original issue. It'd be nice to have the option to entirely suppress generation of the posts feed.

from jekyll-feed.

ashmaroli avatar ashmaroli commented on June 8, 2024

but a feed of all posts is still produced in /feed/posts.xml.

@arielelkin Perhaps not an intuitive solution, but you have control over the "file" marked as feed for posts. It can be any existing file in your source dir. If you have, say a 404.html file at the root of your site to render custom Error 404! Not Found! page, point to that.

feed:
  collections:
    authors:
      path: "/feed.xml"
    posts:
      path: "404.html"

The feed generator will only generate a feed file if the given file doesn't exist at source directory.

from jekyll-feed.

jekyllbot avatar jekyllbot commented on June 8, 2024

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

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

If this is a bug and you can still reproduce this error on the master/main 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 whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial.

This issue will automatically be closed in two months if no further activity occurs. 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.