Skip to content

Commit 24895f6

Browse files
committed
feat: Update layouts
1 parent 86175ec commit 24895f6

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed

_layouts/listing.html

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,30 @@
11
---
2-
layout: page
2+
layout: default
33
---
44

5-
<h3>Topics</h3>
5+
<article class="post">
66

7-
{% include list-sections.html %}
7+
<header class="post-header">
8+
<h1 class="post-title">{{ page.title | escape }}</h1>
9+
{% if page.description %}
10+
<h2>{{ page.description | escape }}<h2>
11+
{% endif %}
12+
</header>
813

9-
<h3>Pages</h3>
14+
{% include breadcrumbs.html %}
1015

11-
{% include list-pages.html %}
16+
<h2>Topics</h2>
1217

13-
{{ content }}
18+
{% include list-sections.html %}
19+
20+
<h2>Pages</h2>
21+
22+
{% include list-pages.html %}
23+
24+
<br>
25+
26+
<div class="post-content">
27+
{{ content }}
28+
</div>
29+
30+
</article>

_layouts/page.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
<header class="post-header">
99
<h1 class="post-title">{{ page.title | escape }}</h1>
10+
{% if page.description %}
11+
<h2>{{ page.description | escape }}<h2>
12+
{% endif %}
1013
</header>
1114

1215
{% include breadcrumbs.html %}

0 commit comments

Comments
 (0)