From cbdd093a2816ff3094e32c01eeef53819800bc58 Mon Sep 17 00:00:00 2001 From: Ariejan de Vroom Date: Wed, 11 Mar 2020 10:18:52 +0100 Subject: [PATCH] Update theme metedata/reading time --- config.toml | 2 ++ themes/devroom-2020/assets/scss/devroom.scss | 7 ++++- .../devroom-2020/layouts/partials/post.html | 26 +++++++++++++------ 3 files changed, 26 insertions(+), 9 deletions(-) diff --git a/config.toml b/config.toml index af3b290..8bb8cce 100644 --- a/config.toml +++ b/config.toml @@ -17,6 +17,8 @@ pygmentscodefencesguesssyntax = true googleAnalytics = "UA-60089-16" disqusShortname = "" +enableGitInfo = true + [permalinks] posts = "/:year/:month/:day/:slug" diff --git a/themes/devroom-2020/assets/scss/devroom.scss b/themes/devroom-2020/assets/scss/devroom.scss index 0956ef1..c231c7a 100644 --- a/themes/devroom-2020/assets/scss/devroom.scss +++ b/themes/devroom-2020/assets/scss/devroom.scss @@ -132,4 +132,9 @@ small { .meta { color: $meta; -} \ No newline at end of file +} + +.reading-time { + display: inline-block; + float: right; +} diff --git a/themes/devroom-2020/layouts/partials/post.html b/themes/devroom-2020/layouts/partials/post.html index bdc033c..ec1501d 100644 --- a/themes/devroom-2020/layouts/partials/post.html +++ b/themes/devroom-2020/layouts/partials/post.html @@ -1,16 +1,26 @@ +{{ $lastmod := .Lastmod.Format "2006-01-02" }} +{{ $date := .Date.Format "2006-01-02" }}

{{ .Title }}

-
{{ .Content }} -
\ No newline at end of file +