|
| 1 | +{% if page.is_not_draft %}{% else %} |
| 2 | +{% assign is_draft = true %} |
| 3 | +{% endif %} |
| 4 | + |
| 5 | +{% assign wordWarning = 200 %} {% assign wordCount = content | number_of_words%} |
| 6 | +{% assign readTime = wordCount | divided_by: 100.0 | ceil %} |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | +{% if page.sub_title %} |
| 11 | +<h1> |
| 12 | + {{ page.title }} |
| 13 | +</h1> |
| 14 | +<p class="text-medium text-grey-dk-250 mb-0"> |
| 15 | + {{ page.summary }} |
| 16 | +</p> |
| 17 | +{% else %} |
| 18 | +<h1> |
| 19 | + {{ page.title }} |
| 20 | +</h1> |
| 21 | +{% endif %} |
| 22 | + |
| 23 | + |
| 24 | +<div class="page-info"> |
| 25 | + <p class="text-small text-grey-dk-000 mb-0"> |
| 26 | + {% if page.last_modified_date %} |
| 27 | + {{ page.last_modified_date | date: "%Y-%m-%d"}} | |
| 28 | + {% else %} |
| 29 | + 2022-07-01 | |
| 30 | + {% endif %} |
| 31 | + |
| 32 | + 📑 {{ wordCount }} words | ⏱ {{readTime}} mins |
| 33 | + {% if site.gh_edit_link and |
| 34 | + site.gh_edit_link_text and site.gh_edit_repository and site.gh_edit_branch |
| 35 | + and site.gh_edit_view_mode %} | |
| 36 | + <a |
| 37 | + href="{{ site.gh_edit_repository }}/commits/{{ site.gh_edit_branch }}{% if site.gh_edit_source %}/{{ site.gh_edit_source }}{% endif %}/{{ page.path }}" |
| 38 | + id="edit-this-page" |
| 39 | + >🧾 History</a |
| 40 | + > |
| 41 | + |
| 42 | + {% endif %} |
| 43 | +| |
| 44 | +{% if page.author %} |
| 45 | +✍ {{page.author}} |
| 46 | +{% else %} |
| 47 | +✍ Ross Buggins |
| 48 | +{% endif %} |
| 49 | +| |
| 50 | +{% if page.owner %} |
| 51 | +🔑 {{page.owner}} |
| 52 | +{% else %} |
| 53 | +🔑 Ross Buggins |
| 54 | +{% endif %} |
| 55 | +</p> |
| 56 | + |
| 57 | +<p class="text-small text-grey-dk-000 mb-0">{% for tag in page.tags %}<a class="text-small" href="/tags/{{tag}}.html">{{tag}}</a>,{% endfor %}</p> |
| 58 | + |
| 59 | +{% if wordCount < wordWarning %} |
| 60 | +<p class="text-small text-grey-dk-000 mb-0">🚧 This page has less that {{wordWarning}} words. So it looks like this page is still under construction.</p> |
| 61 | +{% endif %} |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | +{% if page.description %} |
| 66 | +<p class="text-nhs-mid-grey mb-0"><i>{{page.description}}</i></p> |
| 67 | +{% endif %} |
| 68 | + |
| 69 | +{% if page.todo or is_draft %} |
| 70 | +<p class="text-small text-nhs-mid-grey mb-0"><b>Known Issues / Todo</b></p> |
| 71 | + |
| 72 | +<ul> |
| 73 | + {% if page.is_not_draft %}{% else %}<li class="text-small text-nhs-mid-grey mb-0">⛅ <b>This page is draft</b> and is subject to rapid change, and may not be fully accurate or complete</li>{% endif %} |
| 74 | + {% for todo in page.todo %}<li class="text-small text-nhs-mid-grey mb-0">{{todo}}</li>{% endfor %} |
| 75 | +</ul> |
| 76 | +{% endif %} |
| 77 | +</div> |
| 78 | + |
| 79 | + |
| 80 | +<hr/> |
0 commit comments