From 6d431bde49a95d9b40af59a10ffd01d7b5aa7342 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Mon, 7 Nov 2022 15:19:14 +0100 Subject: [PATCH] display reading time and tags in toc nav Signed-off-by: CrazyMax --- _includes/read_time.html | 6 ----- _layouts/docs.html | 51 ++++++++++++++++++++++------------------ _scss/_navigation.scss | 38 +++++++++++++++++++++++++----- 3 files changed, 60 insertions(+), 35 deletions(-) delete mode 100644 _includes/read_time.html diff --git a/_includes/read_time.html b/_includes/read_time.html deleted file mode 100644 index b6eb2e9be2..0000000000 --- a/_includes/read_time.html +++ /dev/null @@ -1,6 +0,0 @@ -{%- unless page.skip_read_time == true -%} -{%- assign words = content | number_of_words -%} -{%- if words >= 360 -%} -Estimated reading time: {{ words | divided_by:180 }} minutes -{%- endif -%} -{%- endunless -%} diff --git a/_layouts/docs.html b/_layouts/docs.html index fb266c120a..45254d50fe 100644 --- a/_layouts/docs.html +++ b/_layouts/docs.html @@ -28,20 +28,8 @@ {%- if page.advisory -%}
{{ site.data.advisories.texts[page.advisory] | markdownify }}
{%- endif -%} -

{%- include read_time.html -%}

+

{{ content }} - {%- unless page.notags == true -%} - {%- assign keywords = page.keywords | split:"," -%} - {%- if keywords.size > 0 -%} - - {%- for keyword in keywords -%} - {%- assign strippedKeyword = keyword | strip -%} - {{ strippedKeyword }} - {%- unless forloop.last %}, {% endunless -%} - {%- endfor -%} - - {%- endif -%} - {%- endunless %}