Skip to content

Commit 92aa661

Browse files
committed
Add new layouts for use in help/ pages
help layout for use with normal help pages - adds title using page.topic value. help-error layout for use with pages with help/ URLs that are not supposed to be indexed or accessed directly.
1 parent 999e770 commit 92aa661

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

_layouts/help-error.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
layout: default
3+
---
4+
<!-- BEGIN help page content -->
5+
6+
<header>
7+
<h1 roll="heading" class="text-danger">
8+
Error
9+
</h1>
10+
</header>
11+
12+
<p class="alert alert-danger lead">
13+
<i class="fa fa-ban text-danger"></i> You shouldn't have got here!
14+
</p>
15+
16+
{{ content }}
17+
18+
<!-- END help page content -->

_layouts/help.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
layout: default
3+
---
4+
<!-- BEGIN help page content -->
5+
6+
<header>
7+
<h1 roll="heading">
8+
{{ page.topic | escape }}
9+
</h1>
10+
</header>
11+
12+
{{ content }}
13+
14+
<!-- END help page content -->

0 commit comments

Comments
 (0)