perun

Discuss perun static site generator
bhagany 2017-02-07T02:53:52.000271Z

hmm, I'm second guessing myself...

bhagany 2017-02-07T02:56:16.000272Z

while going through the Getting Started tutorial, I ran into a bug with boot-http (details: https://github.com/pandeiro/boot-http/pull/61). Now I just ran into the same thing running http://perun.io locally, but I could swear it worked before. I deleted boot-http from my local maven repo and reinstalled, but same result. If someone has a sec, could you try to run http://perun.io locally, and tell me if it works for you?

bhagany 2017-02-07T03:00:44.000274Z

hrm, maybe it has something to do with the boot version...

2017-02-07T18:19:09.000275Z

Hi everyone I'm pretty new to perun. I'm trying to display the first few words of each post on an index page (rendered with collection). The :content key that's in the entries passed to the collection rendering function contains the current state of the content in the boot task pipeline, correct? So I'd need to call yaml-metadata to get rid of the metadata, then operate on the resulting string, then render each individual post, in that order? Is there a way with the built in tasks to just access the original content?

2017-02-07T18:20:14.000276Z

I ask because the 200ok site seems to use a different order of rendering things, though that's using an older version of perun

bhagany 2017-02-07T18:28:55.000277Z

Hi @jjttjj - are you using a recent Perun snapshot?

2017-02-07T18:29:10.000278Z

@bhagany yes

bhagany 2017-02-07T18:29:53.000279Z

okay, then to answer your first question, yes, :content is the current file content at the time collection is called

bhagany 2017-02-07T18:30:41.000280Z

I don't quite understand what you're trying to achieve with yaml-metadata though, could you explain that a bit more?

2017-02-07T18:33:29.000281Z

ok nevermind

2017-02-07T18:33:44.000282Z

I was thinking i'd have to do that to get rid of the yaml content but realized the markdown task does it anyway

2017-02-07T18:33:50.000283Z

makes sense now, thanks!

bhagany 2017-02-07T18:34:09.000284Z

sure, no problem. feel free to ask if you run into any further problems!

2017-02-07T18:34:27.000285Z

great thank you!