Skip to content

Instantly share code, notes, and snippets.

@royashbrook
Last active April 26, 2018 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save royashbrook/a4ddefc439e578792dceecae59bc0234 to your computer and use it in GitHub Desktop.
Save royashbrook/a4ddefc439e578792dceecae59bc0234 to your computer and use it in GitHub Desktop.
/
--/assets
----/page1
------20180101-Some Document Title-t0.pdf
------20180102-Some Document Title-t0.pdf
------20180104-Some Document Title-t1.pdf
page1.md
---
title: page1
---
# {{page.title}}
{% assign fs = site.static_files | where_exp: "f","f.path contains 'page1'" %}
{% for f in fs %}
{% assign g = f.basename | split: '-' %}
- [{{g[1]}}]({{ f.path }})
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment