Skip to content

Commit ace27a2

Browse files
committed
Change pageheader, add tags and author if present. Use summary when subtitle is not filled as subtitle. Change styling to make the pageheader less bulky. For ticket: "Datum tag toevoegen aan knowledge base item"
1 parent a467e70 commit ace27a2

2 files changed

Lines changed: 25 additions & 10 deletions

File tree

assets/scss/_common.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ h4, .h4 {
101101
}
102102

103103
.banner {
104-
padding: 100px 0 00px;
104+
padding: 60px 00px;
105105
}
106106

107107
.section {

layouts/partials/page-header.html

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,38 @@
11
<section class="banner banner-background">
22
<div class="container">
3-
<div class="row" style="display:flex; align-items:center;">
4-
5-
<div class="col-lg-6 col-md-12 col-sm-12 mb-5 order-lg-1 order-md-2 order-sm-2">
3+
<div class="row">
4+
<div class="col-lg-6 col-md-12 col-sm-12 mt-5 pt-0 pt-lg-5 order-lg-1 order-sm-2">
65
<!-- title -->
7-
<h2 class="pr-5" style="color:#005aa7;">{{ .Params.Title | markdownify }}</h2>
8-
<div class="pr-5">
9-
<p style="color:#777777; font-size: 16px;"> {{.Params.subtitle | markdownify}} </p>
6+
<h2 class="color-blue">{{ .Params.Title | markdownify }}</h2>
7+
{{ if .Params.author }}
8+
<p class="color-gray">{{ i18n "authors"}} {{ .Params.author }}</p>
9+
{{ end }}
10+
<p class="color-gray">
11+
{{ if .Params.subtitle }}{{.Params.subtitle | markdownify}}
12+
{{ else if .Params.summary }}{{.Params.summary | markdownify}}
13+
{{ end }}
14+
</p>
15+
{{ if .Params.facets }}
16+
<div class="row">
17+
<div class="col-12 order-3">
18+
{{ range $facet := .Params.facets }}
19+
{{ if $facet.hide }}
20+
{{ else }}
21+
<span class="highlight-red-sm m-1">{{$facet.label}}</span>
22+
{{ end }}
23+
{{end}}
24+
</div>
1025
</div>
26+
{{ end }}
1127
</div>
1228
<!-- /al-go-pru-dence -->
1329

1430
<!-- image -->
15-
<div class="col-lg-6 col-md-12 col-sm-12 order-lg-2 order-md-1 order-sm-1 order-first text-center">
16-
<img src='{{ .Params.image | relURL }}' class='img-fluid center-block mt-5' style='margin-bottom: 100px; height: 400px;'>
31+
<div class="col-lg-6 col-md-12 col-sm-12 order-lg-2 order-sm-1 text-center">
32+
<img src='{{ .Params.image | relURL }}' class='img-fluid center-block my-1' style='height: 400px;'>
1733
</div>
1834
<!-- image -->
1935
</div>
20-
2136
<div class="pinDiv1"></div>
2237
</div>
2338
</section>

0 commit comments

Comments
 (0)