From bb26f1570aa09315053774f098a54a6a73c6d553 Mon Sep 17 00:00:00 2001 From: Adrian Plata Date: Mon, 16 Sep 2019 15:44:43 -0700 Subject: [PATCH] Adding a metadata check for reading time. Signed-off-by: Adrian Plata --- 404.md | 2 +- README.md | 2 +- _layouts/docs.html | 2 +- search.md | 2 +- thank-you-subscribing-docker-weekly.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/404.md b/404.md index 8aa08de7c5..1b2bc4a5d2 100644 --- a/404.md +++ b/404.md @@ -3,7 +3,7 @@ title: "Sorry, we can't find that page" permalink: /404.html noratings: true notoc: true -tree: false +skip_read_time: true --- ![https://docs.docker.com/](/images/404-docs.png) diff --git a/README.md b/README.md index b3a1f147a9..682c929972 100644 --- a/README.md +++ b/README.md @@ -279,7 +279,7 @@ redirect_from: title: Get Docker for Ubuntu toc_min: 1 toc_max: 6 -tree: false +skip_read_time: true no_ratings: true --- ``` diff --git a/_layouts/docs.html b/_layouts/docs.html index c563706a6e..ab5bfc179d 100755 --- a/_layouts/docs.html +++ b/_layouts/docs.html @@ -126,7 +126,7 @@ {% else %} {% if page.title %}

{{ page.title }}

{% endif %} {% if page.advisory %} -
{{ site.data.advisories.texts[page.advisory] | markdownify }}
{% endif %}{% endif %} {% unless page.tree == false %}{% include read_time.html %}{% endunless %} +
{{ site.data.advisories.texts[page.advisory] | markdownify }}
{% endif %}{% endif %} {% unless page.tree == false or page.skip_read_time == true %}{% include read_time.html %}{% endunless %} {% if page.enterprise %}{% include ee_dropdown.html %}{% endif %} {% if page.ui_tabs or page.cli_tabs or page.api_tabs %}{% capture content %} diff --git a/search.md b/search.md index d8cad9b319..b59add1686 100644 --- a/search.md +++ b/search.md @@ -5,7 +5,7 @@ noratings: true notoc: true notags: true title: "Docs search" -tree: false +skip_read_time: true ---