Random access contents of Jekyll collection -


i'm using jekyll collection generate reveal.js presentation. each file in collection represents 1 slide , named sequentially, eg 01.md, 02.md, etc. works fine want find more flexible method order slides.

if can randomly access files in collection, rather sequentially iterate through them, maintain order of slides external collection - like: [0,1,3,2,4].

where collection defined as:

collections:   reality:     title: reality slide deck     output: false 

i can content of item 3 of collection with:

{{site.reality[3].content}}  

how access front matter?

thanks in advance.

any front matter's variable available under own name.

{{site.reality[3].title}} 

or

{{site.reality[3].variablename}} 

Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -