On 19 May 2012, at 21:22, Miguel Gonçalves wrote:
> compile '/stylesheet/' do
> end
>
> in the Rules file did it! Is this the proper way to do it?
Yes!
> Could you point me to a proper way to parse a flag defined in the metadata of the articles in order to show a list of featured articles on a sidebar?
Do you mean a flag to indicate an article is featured? If so, you can add this metadata:
is_features: true
and then you can find all featured items, like this:
@items.select { |i| i[:is_featured] }
and iterate over them in order to generate a HTML list!
Cheers,
Denis