perun

Discuss perun static site generator
pesterhazy 2016-01-17T22:20:46.000006Z

:simple_smile:

meow 2016-01-17T22:21:29.000009Z

https://en.wikipedia.org/wiki/Perun

pesterhazy 2016-01-17T22:22:25.000010Z

I've actually been playing with perun lately, it's nice

martinklepsch 2016-01-17T22:22:29.000011Z

@juhoteperi: what did you mean with "I find it strange that collection task adds files to metadata"

martinklepsch 2016-01-17T22:22:44.000012Z

are you referring to keys in metadata or actual files?

juhoteperi 2016-01-17T22:23:00.000013Z

@martinklepsch: Well I'm running several collection tasks so the subsequent tasks see the files creates by previous collection tasks

juhoteperi 2016-01-17T22:23:08.000014Z

and I need extra filter to remove those

juhoteperi 2016-01-17T22:23:47.000015Z

Or that's what I think is happening, I didn't check very thoroughly

martinklepsch 2016-01-17T22:23:53.000016Z

ah I see

martinklepsch 2016-01-17T22:24:33.000017Z

I use the filterer option to make sure only posts get in

juhoteperi 2016-01-17T22:24:46.000018Z

Yeah I guess I should use that too

juhoteperi 2016-01-17T22:25:00.000019Z

Currently I have additional filter inside render functions

martinklepsch 2016-01-17T22:25:38.000020Z

yeah I have those too

juhoteperi 2016-01-17T22:26:49.000024Z

Ah interesting.

juhoteperi 2016-01-17T22:26:56.000025Z

What renders your pages?

juhoteperi 2016-01-17T22:27:18.000026Z

Or do you single page?

martinklepsch 2016-01-17T22:27:42.000027Z

how do you mean single page?

martinklepsch 2016-01-17T22:27:50.000028Z

or the question in general I guess

juhoteperi 2016-01-17T22:28:19.000029Z

Hmm, so I see you have pages and posts. But collection tasks only render posts.

juhoteperi 2016-01-17T22:28:39.000030Z

And there is only single render task which is interested in pages.

martinklepsch 2016-01-17T22:29:20.000031Z

ah yeah. pages are just rendered like hello.md -> hello.html

juhoteperi 2016-01-17T22:29:50.000032Z

Yeah but what is doing that?

martinklepsch 2016-01-17T22:30:09.000033Z

the naming?

martinklepsch 2016-01-17T22:30:16.000035Z

I think the permalink fn

martinklepsch 2016-01-17T22:30:32.000036Z

(defn permalink-fn [{:keys [slug path filename] :as post-data}]
  (if (.startsWith path "posts")
    (str "posts/" slug ".html")
    (str (string/replace filename #"(?i).[a-z]+$" ".html"))))

martinklepsch 2016-01-17T22:30:35.000037Z

yeah

juhoteperi 2016-01-17T22:40:01.000039Z

What do you think about releasing 0.3.0 now? Even with all the possible bugs etc. The current commit is working well enough for me and I would like to have proper release now that I'm using Perun to build our company site,.

martinklepsch 2016-01-17T22:40:34.000040Z

can we get my PR in? 😛

podviaznikov 2016-01-17T22:41:02.000041Z

lets merge the pr and release

juhoteperi 2016-01-17T22:41:31.000042Z

I can do PR with changelog, some readme changes and contributing.md if that's okay

martinklepsch 2016-01-17T22:41:56.000043Z

👍

podviaznikov 2016-01-17T22:42:03.000044Z

that sounds great:)

martinklepsch 2016-01-17T22:42:30.000045Z

I'm in the process of writing a guide as a follow up project for an upcoming clojurebridge workshop

martinklepsch 2016-01-17T22:44:20.000046Z

It's an interesting experience, noticing a few warts so likely will also come up with more suggestions in near future :simple_smile:

juhoteperi 2016-01-17T22:45:32.000047Z

In what timezone should the release date be in changelog 😄

podviaznikov 2016-01-17T22:48:07.000048Z

can do UTC?

martinklepsch 2016-01-17T22:48:35.000049Z

@podviaznikov: conflicts fixed

martinklepsch 2016-01-17T22:48:37.000050Z

thx

podviaznikov 2016-01-17T22:48:45.000051Z

np, trying again

juhoteperi 2016-01-17T22:57:35.000052Z

https://github.com/hashobject/perun/pull/82 (I broke the commit message rules immediately, but I think they are still good)

juhoteperi 2016-01-17T23:01:48.000054Z

If/when we improve the documentation, I think Github wiki is good place for it.

podviaznikov 2016-01-17T23:03:14.000055Z

I’m up for GitHub wiki

podviaznikov 2016-01-17T23:03:37.000056Z

when I push release to Clojars I need to sign it, right?

juhoteperi 2016-01-17T23:03:58.000057Z

It is not necessary, but preferably yes.

podviaznikov 2016-01-17T23:05:22.000058Z

ok, let me try to experiment with other library first. Last time I did that was over the year ago

podviaznikov 2016-01-17T23:10:12.000059Z

ok, I didn’t know clojars has group. Added you and @martinklepsch https://clojars.org/groups/perun

podviaznikov 2016-01-17T23:44:42.000064Z

ok, created my key and tried with lein on another project. Will setup boot to use key now

podviaznikov 2016-01-17T23:46:02.000065Z

Just to clarify steps for publishing. tag repo. push repo to git. and then do build-jar and push-release. Does this sound correct?

juhoteperi 2016-01-17T23:47:06.000066Z

Yeah

2016-01-17T23:56:09.000068Z

@juhoteperi: @martinklepsch : thinking of adding https://www.contentful.com/ support to perun — replicate what https://github.com/carrot/roots-contentful does. Thoughts?

2016-01-17T23:57:29.000071Z

With contentful webhook + github webhook - one could regenerate site if either github source code changed - or if someone changed raw content on contentful. A good fit.

juhoteperi 2016-01-17T23:59:01.000072Z

Interesting. It could probably be provided as task which replaces markdown task.