diff options
-rw-r--r-- | .gitmodules | 2 | ||||
m--------- | assets/css/readable (renamed from assets/css) | 0 | ||||
-rw-r--r-- | layouts/_default/single.html | 3 | ||||
-rw-r--r-- | layouts/partials/head.html | 2 |
4 files changed, 5 insertions, 2 deletions
diff --git a/.gitmodules b/.gitmodules index c62dd8b..594411f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "assets/css"] - path = assets/css + path = assets/css/readable url = https://codeberg.org/Freedom-to-Write/readable.css diff --git a/assets/css b/assets/css/readable -Subproject 713594e2e7b434d5d6cdbc011a68fb4e44cd60e +Subproject 713594e2e7b434d5d6cdbc011a68fb4e44cd60e diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 5d37444..3dc85e7 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -8,6 +8,9 @@ SPDX-License-Identifier: MIT <article> <header> <h1>{{ trim .Title " " }}</h1> + {{ .WordCount }} words + ({{ div .WordCount 240}}~{{ div .WordCount 180}} minutes reading) + {{ partial "post-language-switcher.html" . }} {{ partial "post-navigation.html" . }} </header> diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 86c4a33..79d51b5 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,4 +1,4 @@ -{{ $style := resources.Get "css/readable.css" }} +{{ $style := resources.Get "css/readable/readable.css" }} <meta charset="utf-8"> <meta name="HandheldFriendly" content="True"> |