Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The PR contains one feature and one fix. I can split it up into two PRs if you like, but I feel like the fix is too small for a separate PR.
The feature is a new
date
filter so that one can dopost.date | date:"%d/%m/%y"
in liquid templates (example usage: https://github.com/kstep/kstep.github.com/blob/master/src/index.liquid#L17). Although it seems like liquid parser contains another bug: it doesn't parse filter arguments correctly, so I can't use spaces in thedate
filter arguments (I worked it around by using
entity instead).The fix is the incorrect YAML header splitting from markdown files. It splits files by all instances of
---
separator, while it should use the first one only. The fix is pretty obvious and self-explanatory.This change is