perun

Discuss perun static site generator
juhoteperi 2016-08-10T05:20:03.000058Z

hmm, how is the canonical url simple string concat?

juhoteperi 2016-08-10T05:22:18.000059Z

@martinklepsch: I have no strong opinions on title vs. name

martinklepsch 2016-08-10T09:13:04.000060Z

@juhoteperi: it's just this being added to metadata no? (str base-url (:permalink %)

martinklepsch 2016-08-10T09:15:04.000061Z

jekyll uses title, i'll open a PR

martinklepsch 2016-08-10T09:41:39.000063Z

Another question with regards to atom:

(defn updated [{:keys [date-modified date-published date-created]}]
  (or date-modified date-published date-created))
shouldn't this be just date-published? My feed is very unordered now and usually I wouldn't want updated items to appear as if they're new?

martinklepsch 2016-08-10T12:07:38.000064Z

@juhoteperi: any thoughts about this? ^

juhoteperi 2016-08-10T12:10:32.000066Z

Re: canonical-url, I remembered that I have a custom setup on one project, but infact it was for permaurl:

(defn permalink-fn [{:keys [slug toplevel]}]
  (perun/absolutize-url (str (if-not toplevel "blog/") slug "/")))

juhoteperi 2016-08-10T12:11:45.000067Z

Re: updated, I think the RSS reader should select what to do with updated posts?

juhoteperi 2016-08-10T12:11:58.000068Z

Some might want to re-read with updates, some might want to ignore them

juhoteperi 2016-08-10T12:12:07.000069Z

What do other tools do?

juhoteperi 2016-08-10T12:13:17.000070Z

Readers might also compeltely ignore updates if feed updated doesn't change?

juhoteperi 2016-08-10T12:15:50.000071Z

jekyll also writes published tag, that should be a good addition

juhoteperi 2016-08-10T12:16:18.000072Z

and writes last modified as updated so I believe it should be fine to use date-modified there is it is available

juhoteperi 2016-08-10T12:41:10.000075Z

I added published tag & some others