Skip to content

Instantly share code, notes, and snippets.

View benstraw's full-sized avatar
🐢
Internal Focus

ben strawbridge benstraw

🐢
Internal Focus
View GitHub Profile
@benstraw
benstraw / dogs-collection-sorted
Last active June 15, 2023 22:31
This Liquid loop for Jekyll sorts a collection by date, to reverse the order add ` | reverse`
{% comment %}
* This loop loops through a collection called `dogs`
* and sorts it by the front matter variable `dob` and than filters
* the collection with `reverse` in reverse order
*
* To make it work I first assigned the data to a new string
* called `sorted_dogos`.
{% endcomment %}

Keybase proof

I hereby claim:

  • I am benstraw on github.
  • I am benstraw (https://keybase.io/benstraw) on keybase.
  • I have a public key whose fingerprint is 8348 1B51 47C0 6414 862C 3C72 AB4E D5A7 4723 3DA6

To claim this, I am signing this object: