[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: website: blog: Remove leading zero from dates on posts.
From: |
Ludovic Courtès |
Subject: |
01/02: website: blog: Remove leading zero from dates on posts. |
Date: |
Thu, 21 Dec 2017 08:41:40 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix-artwork.
commit a9c34e707f55aecbfc3261397cbef28a2b6ee2e7
Author: Ludovic Courtès <address@hidden>
Date: Thu Dec 21 14:25:46 2017 +0100
website: blog: Remove leading zero from dates on posts.
* website/apps/blog/templates/post.scm (post-t): Change 'date->string'
format so we get "7 December" instead of "07 December".
---
website/apps/blog/templates/post.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/website/apps/blog/templates/post.scm
b/website/apps/blog/templates/post.scm
index 462fae9..f87792b 100644
--- a/website/apps/blog/templates/post.scm
+++ b/website/apps/blog/templates/post.scm
@@ -42,7 +42,7 @@
(p
(@ (class "post-metadata centered-text"))
,(post-ref post 'author) " — "
- ,(date->string (post-date post) "~B ~d, ~Y"))
+ ,(date->string (post-date post) "~B ~e, ~Y"))
,(syntax-highlight (post-sxml post))