Skip to content

Commit 71fdf97

Browse files
Lets have the page title as part of base template
but avoid it for now for baseline and community sections. We would have to rework it later to match the layout. Signed-off-by: Artem Sidorenko <artem@posteo.de>
1 parent bac941b commit 71fdf97

5 files changed

Lines changed: 10 additions & 20 deletions

File tree

themes/devsec/layouts/_default/baseof.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
<!-- End Nav -->
1818

1919
<!-- Code that all your templates share, like a header -->
20+
{{ if and (ne .File.Path "community.md") (ne .Section "baselines") }}
21+
{{ partial "page-header.html" . }}
22+
{{ end }}
2023
{{ block "main" . }}
2124
<!-- The part of the page that begins to differ between templates -->
2225
{{ end }}

themes/devsec/layouts/blog/list.html

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
{{ define "main" }}
2-
<section id="page-header">
3-
<div class="row">
4-
<div class="large-12 medium-12 small-12 small-center columns">
5-
<h2>News</h2>
6-
</div>
7-
</div>
8-
</section>
9-
102
<!-- merge internal and external content -->
113
{{ $list := .Data.Pages }}
124
<section class="blog overview">

themes/devsec/layouts/page/project.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{{ define "main" }}
22
<section class="contributing content">
3-
<div class="row">
4-
<h1>{{ .Title }}</h1>
5-
</div>
63
<div class="row">
74
<div class="large-12 medium-12 small-12 small-center columns">
85
{{ .Content }}
Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
{{ define "main" }}
2-
<section id="page-header">
3-
<div class="row">
4-
<div class="large-12 medium-12 small-12 small-center columns">
5-
<h2>Videos</h2>
6-
</div>
7-
</div>
8-
</section>
9-
102
<section class="articles">
113
<div class="row">
124
<div class="large-12 medium-12 small-12 small-center columns">
@@ -22,5 +14,4 @@ <h2>Videos</h2>
2214
</div>
2315
</div>
2416
</section>
25-
2617
{{ end }}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<section id="page-header">
2+
<div class="row">
3+
<div class="large-12 medium-12 small-12 small-center columns">
4+
<h2>{{ .Title }}</h2>
5+
</div>
6+
</div>
7+
</section>

0 commit comments

Comments
 (0)