diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d245cd9012c..45d41398e3a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## [3.4.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.4.1) + +### Enhancements + +- Add `staticman.filename` configuration with UNIX timestamp for sorting data files. example ~> `comment-1470943149`. + +### Bug Fixes + +- Don't add `` to author name if URL is blank. + ## [3.4.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.4.0) ### Enhancements diff --git a/_config.yml b/_config.yml index 7394db7bcc75..d7bac3f201eb 100644 --- a/_config.yml +++ b/_config.yml @@ -32,6 +32,7 @@ staticman: allowedFields : ['name', 'email', 'url', 'message'] branch : # "master", "gh-pages" commitMessage : "New comment." + filename : comment-{@timestamp} format : "yml" moderation : true path : "_data/comments/{options.slug}" diff --git a/_includes/comment.html b/_includes/comment.html index 17e874a6a9e9..ec954f556d25 100644 --- a/_includes/comment.html +++ b/_includes/comment.html @@ -4,11 +4,11 @@

- {% if (include.url) and (include.url != '@url') %} + {% unless include.url == blank %} {{ include.name }} {% else %} {{ include.name }} - {% endif %} + {% endunless %}

{% if include.date %} diff --git a/package.json b/package.json index 04f7543f3846..6240fa0138c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "minimal-mistakes", - "version": "3.4.0", + "version": "3.4.1", "description": "Minimal Mistakes Jekyll theme npm build scripts", "repository": { "type": "git",