Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feed doesn't get generated #1640

Closed
mplacona opened this issue Apr 29, 2018 · 2 comments
Closed

Feed doesn't get generated #1640

mplacona opened this issue Apr 29, 2018 · 2 comments

Comments

@mplacona
Copy link

mplacona commented Apr 29, 2018

Description

Environment


Expected behavior

Seems like no matter what I do, the contents of my feed never get generated. I read #417 but the steps indicated there were not useful to me. I also saw a suggestiong to change back from plugins to gems (#1144) but that shouldn't apply to me as I am not using GH-Pages

Steps to reproduce the behavior

Starting with bundle exec jekyll serve

Contents generated on feed:

<feed xmlns="http://www.w3.org/2005/Atom">
<generator uri="https://jekyllrb.com/" version="3.7.3">Jekyll</generator>
<link href="https://realkotlin.com/feed.xml" rel="self" type="application/atom+xml"/>
<link href="https://realkotlin.com/" rel="alternate" type="text/html"/>
<updated>2018-04-29T01:00:07+00:00</updated>
<id>https://realkotlin.com/</id>
<title type="html">Real Kotlin</title>
<subtitle>Learn the Real Kotlin online</subtitle>
<author>
<name>Marcos Placona</name>
<uri>https://www.placona.co.uk</uri>
</author>
</feed>

None of the posts, which live under _tutorial are included

Any help here super appreciated.

@mmistakes
Copy link
Owner

Jekyll Feed only generates a feed for "posts". The Markdown files in your _tutorial folder are collection documents. That's why you're not seeing them.

You'll need to request that feature from Jekyll Feed if you want them to support collections. Or you can build your own feed for the tutorial documents, by forking their feed.xml file and changing the site.posts loop to be site.tutorial instead.

{% assign posts = site.tutorial | where_exp: "post", "post.draft != true" %}

@mplacona
Copy link
Author

Totally makes sense. I went ahead and rolled my own version here in case anyone ever finds this thread and wants to do the same.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants