@bhagany 👋 hey
I got my contentful task working nicely but now would like to add generated items to the atom feed — they don’t appear though. If I understand correctly this is because they’re never really added to the perun metadata that is threaded through the call chain.
Any does that mean the approach of using just render-task
fails at that point and I should make a task that properly modifies metadata
@martinklepsch they actually are added to the perun metadata automatically, as long as the files are there. If atom-feed
is after your contentful task, and it has a filterer that should get the contentful files, it ought to work
I'd be happy to take a look, if the code is public?
Ah, that's probably it. :include-atom
is not set on your contentful files. You should be able to add it in your paths-fn that you pass to render-task
Or put a different filterer on atom-feed
FYI I deployed the current master as snapshot to clojars
ugh, somehow slack got stuck and I just got this now
@bhagany I replaced the filterer and printed each to-be-filtered item, the contentful pages didn’t show up
do they show up with print-meta
?
after the contentful task
Let me check
they do!
huh, then I'm not sure why they wouldn't be included in your filterer...
unless the extension is different, maybe?
They don’t have an extension
could that be the issue?
I’m doing slightly funky things I guess
ah, that's probably it, then. there's an extensions
parameter to atom-feed
I'm not sure I considered this case of no extension... maybe an empty string will work?
setting extensions
to an empty vector would also work, but that means it won't exclude any files, including your source files
so your filterer would have to make sure to exclude all of that
trying that, 1s
ok, now it’s trying to render the items
nice ok
code is public btw: https://github.com/martinklepsch/one-of-each
ah, nice
got a pretty sweet setup: confetti for initial setup, contentful to manage content, webhooks to trigger new deploys, circleCI to execute them
that sounds really slick 😄
Site is at https://one-of-each.xyz/
wow, that contentful task is even less code than I thought it would be
(including the paths-fn)
yeah was super straightforward once you showed me the individual lego pieces 👍
An interesting/weird part is: I’m using perun to generate “shell pages” with no content that just contain opengraph/twitter meta tags. Rest is done by cljs app.
I was just noticing that, very interesting indeed
Now I’ll pubslish something new via contentful, lets see how that goes
will that auto-deploy?
I hope so 😆
nice
Contentful had really nice docs to setup the webhook etc which really made it a 5min thing: https://www.contentful.com/developers/docs/ruby/tutorials/automated-rebuild-and-deploy-with-circleci-and-webhooks/
interesting. I'd try Contentful for company blog if it weren't for the quite steep per user pricing.
worked! https://one-of-each.xyz/t/wuppertal-grandbrothers-3Cv2iZciGcqmG84qecYm6O
@juhoteperi there’s also http://prismic.io which is a bit lower priced
I couldn’t dig up there HTTP api reference though and thus just went with contentful
they have some sort of api explorer that they sent me after I decided to use contentful http://one-of-each.prismic.io/api (not sure if you can open that) @juhoteperi
Now I just gotta fix the ordering of posts and then I can sleep 😄
It does work
woo! congrats @martinklepsch
Alright, sleep time 💤 👋