diff options
author | tdro <tdro@noreply.example.com> | 2022-08-06 02:09:42 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-08-06 02:09:42 -0400 |
commit | d9a29082d810f2954c29aea215ba5cbbaa361ac6 (patch) | |
tree | 7b903c56e2868204eb18ea85399cfbe30e56921c /themes/default/layouts/partials/meta-word-count.html | |
parent | ac0e2a0c9e96cb827681ca4bdd0e727a85ee708d (diff) | |
download | canory-d9a29082d810f2954c29aea215ba5cbbaa361ac6.tar.gz canory-d9a29082d810f2954c29aea215ba5cbbaa361ac6.tar.bz2 canory-d9a29082d810f2954c29aea215ba5cbbaa361ac6.zip |
themes/default/layouts/partials: Hack in card context menu
Diffstat (limited to 'themes/default/layouts/partials/meta-word-count.html')
-rw-r--r-- | themes/default/layouts/partials/meta-word-count.html | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/themes/default/layouts/partials/meta-word-count.html b/themes/default/layouts/partials/meta-word-count.html index e88fec6..081c444 100644 --- a/themes/default/layouts/partials/meta-word-count.html +++ b/themes/default/layouts/partials/meta-word-count.html @@ -1,12 +1,10 @@ -<micro-metadata-wordcount> - {{- $author := index .Site.Data ((or .Params.author .Site.Author.default.user) | default "default") -}} - {{- $limit := $author.wordlimit -}} - {{- $wordLimit := gt .WordCount $limit -}} - {{- $overLimit := sub .WordCount $limit -}} - {{- $bitCount := lang.FormatNumberCustom 0 (len .Content) -}} - {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/file-text.svg")) -}} +{{- $author := index .Site.Data ((or .Params.author .Site.Author.default.user) | default "default") -}} +{{- $limit := $author.wordlimit -}} +{{- $wordLimit := gt .WordCount $limit -}} +{{- $overLimit := sub .WordCount $limit -}} +{{- $bitCount := lang.FormatNumberCustom 0 (len .Content) -}} - <word-limit +<micro-metadata-wordcount title=" {{- if $wordLimit -}} {{ $overLimit }} words over the limit @@ -14,7 +12,11 @@ title=" {{ .WordCount }} words {{- end }} {{ $bitCount }} bits +{{- /* This comment removes trailing newlines and white spaces. */ -}} "> +{{- /* This comment removes trailing newlines and white spaces. */ -}} + <word-limit> + {{- safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/file-text.svg")) -}} <word-count> {{- if $wordLimit -}} <em>{{ .WordCount }}</em> |