mrmrs / vimgifs

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

Move to Middleman #21

Closed sammdec closed 8 years ago

sammdec commented 8 years ago

While Jekyll is great, Middleman is arguably a better experience and more flexible. This (large...sorry) PR moves over to middleman.

The biggest changes apart from the folder structure, is that now we are using erb templates rather than liquid.

Also in the process of moving things around, i have managed to simply the actual gif template to just some front matter and the copy for the post and have moved out all the layout html into the parent /layouts/gif template.

What this now means is that there is a yaml list in eveyr post that takes the further reading links in and then will loop over these in order and place them on the page as the formatted links.

further_reading:
  - title: some link text
    url: some link url

I have also started creating a related link partial that once styled can be used to add similar gif links to an article.

The format for that is almost identical to the further_reading one:

related:
  - title: some link text
    url: some link url

And finally you can now easily create a new gif article without having to duplicate previous ones by running middleman article name_of_the_article and this will create a new article in the gifs folder with the current timestamp and the filename