mrmrs / vimgifs

http://vimgifs.com
116 stars 16 forks source link

Create a related gifs partial #29

Closed sammdec closed 8 years ago

sammdec commented 8 years ago

This feature adds the ability to add some yaml at the top of an article and have the related articles get pulled through into a partial where we can then link to.

This is what the yaml looks like


---
related:
  - cit
  - ctgt
  - cw 

---

All this is, is a YAML list and each item on the list is the name of an article (the file name to be more precisely).

We then loop over that and render out links in the order of the list.

This is the current design:

screen shot 2016-07-25 at 19 39 25

It probably needs updating to something to be a bit more inviting :)