Skip to content

Commit 8b7ddef

Browse files
create subsection page (#104)
1 parent 4433a8a commit 8b7ddef

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

ui/src/layouts/subsection.hbs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
{{> head defaultPageTitle='CircleCI Docs'}}
5+
</head>
6+
<body class="article{{#with (or page.attributes.role page.role)}} {{{this}}}{{/with}} tracking-normal leading-5 text-[16px]">
7+
{{> header}}
8+
{{> body}}
9+
</body>
10+
</html>

ui/src/partials/article.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
{{#with page.title}}
33
<h1 class="page">{{{this}}}</h1>
44
{{/with}}
5+
{{#if (ne page.layout 'subsection')}}
56
{{> article-info-bar}}
7+
{{/if}}
68
{{{page.contents}}}
79
</article>

ui/src/partials/main.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{{> toc}}
99
{{/if}}
1010
</div>
11-
{{#if (ne page.layout '404')}}
11+
{{#if (and (ne page.layout '404') (ne page.layout 'subsection'))}}
1212
{{> article-footer}}
1313
{{/if}}
1414
</main>

0 commit comments

Comments
 (0)