Skip to content

Commit a3514c9

Browse files
info header spacing formatting.
1 parent a648b9f commit a3514c9

File tree

1 file changed

+43
-65
lines changed

1 file changed

+43
-65
lines changed

docs/_includes/page-info-header.html

+43-65
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,58 @@
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>
177
{% else %}
18-
<h1>
19-
{{ page.title }}
20-
</h1>
8+
<h1>{{ page.title }}</h1>
219
{% endif %}
2210

23-
2411
<div class="page-info">
2512
<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+
%} |
3618
<a
3719
href="{{ site.gh_edit_repository }}/commits/{{ site.gh_edit_branch }}{% if site.gh_edit_source %}/{{ site.gh_edit_source }}{% endif %}/{{ page.path }}"
3820
id="edit-this-page"
3921
>🧾 History</a
4022
>
4123

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>
6828

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>
7134

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 %}
7756
</div>
7857

79-
80-
<hr/>
58+
<hr />

0 commit comments

Comments
 (0)