diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index e531ef7..ccb0c6e 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -29,7 +29,7 @@ margin-top: 5px; } -.wordcount { +.wordcount, .rss-link, .readingtime { margin-left: 5px; } @@ -41,10 +41,6 @@ white-space: nowrap; } -.rss-link { - margin-left: 5px; -} - h1 svg.icon { width: 30px; height: 30px; diff --git a/layouts/partials/post-metadata.html b/layouts/partials/post-metadata.html index baaa872..cb1bfe2 100644 --- a/layouts/partials/post-metadata.html +++ b/layouts/partials/post-metadata.html @@ -17,10 +17,19 @@ {{ end }} + {{ if .Site.Params.wordcount }} {{ partial "icon.html" "type" }} {{ .WordCount }} words + {{ end }} + + {{ if .Site.Params.readingtime }} + + {{ partial "icon.html" "clock" }} + {{ .ReadingTime }} {{ if gt .ReadingTime 1 }} mins {{ else }} min {{ end }} + + {{ end }}