diff --git a/assets/css/style.css b/assets/css/style.css index 159fbc7..16b801d 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -236,4 +236,4 @@ nav li { #webmentions img { max-height: 1.2em; margin-right: -1ex; } -.date-updated { margin-top: -8px; } +.date-updated { margin-top: -18px; } diff --git a/layouts/blog/single.html b/layouts/blog/single.html index d76c2ee..d2cb070 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -15,6 +15,14 @@ {{- end }} {{ end }} {{ end }} + {{ $readTime := mul (div (countwords .Content) 220.0) 60 }} + {{ if gt $readTime 60 }} +
+ Reading Time: + {{ math.Floor (div $readTime 60) }} minutes + and {{ mod $readTime 60 }} seconds. +
+ {{ end }}