Developer Blog

Tipps und Tricks für Entwickler und IT-Interessierte

Jekyll | Cookbook

Working with Arrays

Define the array

---
layout: post
title:  "Universe"
date:   2019-06-17 10:00:00
planets:
    - mercury 
    - venus
    - earth

Access the array

    <a href="https://{{planet}}.universe}">{{planet}}</a>




Liquid

Links

https://github.com/Shopify/liquid/wiki/Liquid-for-Designers#optional-arguments

Code Snippets

for-loop-sorted-collection

<ul>
    
    
    <li>{{ item.title }}</li>
    
</ul>

Code Snippets and recieps

https://gist.github.com/ryerh/b2fa73829f1b7b1c39988f09a65eb227