From d86a6c995cbc1010293eccf8cd28921555a6d1a9 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Thu, 11 Aug 2016 15:20:09 -0400 Subject: [PATCH 1/3] Add `staticman.filename` config with UNIX timestamp for sorting data files example ~> comment-1470943149 --- _config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/_config.yml b/_config.yml index 7394db7b..d7bac3f2 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}" From 304f465430c515a85607aa6afbf1ebe21a5a5b60 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Thu, 11 Aug 2016 15:01:55 -0400 Subject: [PATCH 2/3] Don't link author name if `url` is blank --- _includes/comment.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/comment.html b/_includes/comment.html index 17e874a6..ec954f55 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 %} From c3efe218348fa7c235c4e052b1c1813673562cb7 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Thu, 11 Aug 2016 15:23:07 -0400 Subject: [PATCH 3/3] Update CHANGELOG.md and bump version to 3.4.1 --- CHANGELOG.md | 10 ++++++++++ package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d245cd9..45d41398 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/package.json b/package.json index 04f7543f..6240fa01 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",