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