librelist archives

« back to archive

Blog posts in HAML?

Blog posts in HAML?

From:
Brian Gonzalez
Date:
2012-06-07 @ 20:26
Is it possible? If so, how can I declare metadata for a HAML post?  I know
it's best to write blogs in md, but sometimes you need a little more power.

Thanks, Brian

Re: [nesta] Blog posts in HAML?

From:
Wynn Netherland
Date:
2012-06-07 @ 20:28
It works the same way: 
https://github.com/pengwynn/wynn/blob/master/content/pages/talks.haml

If you want to combine the best of both, use :markdown inside your haml files. 


On Thursday, June 7, 2012 at 3:26 PM, Brian Gonzalez wrote:

> Is it possible? If so, how can I declare metadata for a HAML post? I 
know it's best to write blogs in md, but sometimes you need a little more 
power.
> 
> Thanks, Brian 

Re: [nesta] Blog posts in HAML?

From:
Brian Gonzalez
Date:
2012-06-07 @ 20:34
But what about inside '"content/pages/blogs" which nesta uses to populate
the main page which blog articles? Mine haml pages don't show at all as
blog posts.

Can anyone else verify?

On Thu, Jun 7, 2012 at 1:28 PM, Wynn Netherland
<wynn.netherland@gmail.com>wrote:

> It works the same way:
> https://github.com/pengwynn/wynn/blob/master/content/pages/talks.haml
>
> If you want to combine the best of both, use :markdown inside your haml
> files.
>
>
> On Thursday, June 7, 2012 at 3:26 PM, Brian Gonzalez wrote:
>
> > Is it possible? If so, how can I declare metadata for a HAML post? I
> know it's best to write blogs in md, but sometimes you need a little more
> power.
> >
> > Thanks, Brian
>
>
>

Re: [nesta] Blog posts in HAML?

From:
Wynn Netherland
Date:
2012-06-07 @ 20:42
They should work exactly the same way, just be sure to give them a date. 
Also, leave exactly one blank line between your metadata and # (h1).



On Thursday, June 7, 2012 at 3:34 PM, Brian Gonzalez wrote:

> But what about inside '"content/pages/blogs" which nesta uses to 
populate the main page which blog articles? Mine haml pages don't show at 
all as blog posts. 
> 
> Can anyone else verify?
> 
> On Thu, Jun 7, 2012 at 1:28 PM, Wynn Netherland 
<wynn.netherland@gmail.com (mailto:wynn.netherland@gmail.com)> wrote:
> > It works the same way: 
https://github.com/pengwynn/wynn/blob/master/content/pages/talks.haml
> > 
> > If you want to combine the best of both, use :markdown inside your haml files.
> > 
> > 
> > On Thursday, June 7, 2012 at 3:26 PM, Brian Gonzalez wrote:
> > 
> > > Is it possible? If so, how can I declare metadata for a HAML post? I
know it's best to write blogs in md, but sometimes you need a little more 
power.
> > > 
> > > Thanks, Brian 

Re: [nesta] Blog posts in HAML?

From:
Brian Gonzalez
Date:
2012-06-07 @ 20:46
Beautiful, thanks Wynn! Hope you're enjoying your time at Github.

On Thu, Jun 7, 2012 at 1:42 PM, Wynn Netherland
<wynn.netherland@gmail.com>wrote:

> They should work exactly the same way, just be sure to give them a date.
> Also, leave exactly one blank line between your metadata and # (h1).
>
>
>
> On Thursday, June 7, 2012 at 3:34 PM, Brian Gonzalez wrote:
>
> > But what about inside '"content/pages/blogs" which nesta uses to
> populate the main page which blog articles? Mine haml pages don't show at
> all as blog posts.
> >
> > Can anyone else verify?
> >
> > On Thu, Jun 7, 2012 at 1:28 PM, Wynn Netherland <
> wynn.netherland@gmail.com (mailto:wynn.netherland@gmail.com)> wrote:
> > > It works the same way:
> https://github.com/pengwynn/wynn/blob/master/content/pages/talks.haml
> > >
> > > If you want to combine the best of both, use :markdown inside your
> haml files.
> > >
> > >
> > > On Thursday, June 7, 2012 at 3:26 PM, Brian Gonzalez wrote:
> > >
> > > > Is it possible? If so, how can I declare metadata for a HAML post? I
> know it's best to write blogs in md, but sometimes you need a little more
> power.
> > > >
> > > > Thanks, Brian
>
>
>