This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-26
Channels
- # aws-lambda (2)
- # beginners (10)
- # boot (17)
- # cider (19)
- # clara (1)
- # cljs-dev (13)
- # cljsjs (22)
- # cljsrn (1)
- # clojure (132)
- # clojure-austin (2)
- # clojure-berlin (2)
- # clojure-dusseldorf (1)
- # clojure-germany (2)
- # clojure-italy (7)
- # clojure-spec (6)
- # clojure-uk (5)
- # clojurescript (45)
- # core-matrix (3)
- # cursive (4)
- # datomic (8)
- # emacs (3)
- # keechma (3)
- # lein-figwheel (1)
- # leiningen (2)
- # lumo (24)
- # nyc (1)
- # off-topic (29)
- # om (68)
- # onyx (5)
- # perun (50)
- # planck (5)
- # protorepl (5)
- # re-frame (128)
- # reagent (10)
- # remote-jobs (1)
- # ring (4)
- # rum (41)
- # untangled (28)
- # yada (4)
@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
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
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
Let me check
they do!
They donāt have an extension
could that be the issue?
Iām doing slightly funky things I guess
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
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
got a pretty sweet setup: confetti for initial setup, contentful to manage content, webhooks to trigger new deploys, circleCI to execute them
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.
Now Iāll pubslish something new via contentful, lets see how that goes
I hope so š
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 š¤ š