Skip to content

Commit 3d4bd61

Browse files
committed
Add horizontal margins in page layout when no quick_navigation
1 parent 6bc7739 commit 3d4bd61

File tree

6 files changed

+13
-5
lines changed

6 files changed

+13
-5
lines changed

content/english/knowledge-platform/policy-observatory.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ subtitle: >
55
and AI. On this page information is collected about these initiatives,
66
including reference material that Algorithm Audit has developed.
77
image: /images/svg-illustrations/knowledge_base.svg
8+
quick_navigation:
9+
custom_page_width: '9'
810
reports_preview:
911
title: White papers
1012
icon: fas fa-file
@@ -93,4 +95,4 @@ Over the years, many Fundamental Rights Impact Assessments (FRIAs) have been dev
9395

9496
{{< tab_content_close >}}
9597

96-
{{< tab_content_close >}}
98+
{{< tab_content_close >}}

layouts/partials/sublanding-page-header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h3 style="color: {{$color}} !important" class="{font-size-1_3rem">{{.Params.tit
3535
<div class="container pb-5">
3636
{{ range .Params.subpage_links }}
3737
<a href={{.url}} class="row justify-content-center">
38-
<div style="background-color: {{.color}};" class="rounded-lg col color-blue p-0 my-2">
38+
<div style="background-color: {{.color}}};" class="rounded-lg col color-blue p-0 my-2">
3939
<div class="row mx-4 py-3">
4040
<i class="font-size-1_5rem fa {{ .icon }}"></i>
4141
<h3 class="color-blue font-size-1_5rem ml-4">{{.title}}</h3>

layouts/section/sublandingpage.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h3>{{.Params.quick_navigation.title}}</h3>
2828
</div>
2929
<div class="col-lg-2 col-12"></div>
3030
{{ else }}
31-
<div class="col-12 mx-auto">
31+
<div class="col-12 {{if.Params.quick_navigation.custom_page_width}}col-lg-{{.Params.quick_navigation.custom_page_width}}{{end}} mx-auto">
3232
<div class="content">{{ .Content }}</div>
3333
</div>
3434
{{ end }}

themes/bigspring-light/layouts/_default/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ <h3>{{.Params.quick_navigation.title}}</h3>
5959
</div>
6060
<div class="col-lg-2 col-12"></div>
6161
{{ else }}
62-
<div class="col-12 mx-auto">
62+
<div class="col-12 {{if.Params.quick_navigation.custom_page_width}}col-lg-{{.Params.quick_navigation.custom_page_width}}{{end}} mx-auto">
6363
<div class="content">{{ .Content }}</div>
6464
</div>
6565
{{ end }}

tina/collections/shared/page/quick_navigation.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ const quick_navigation: TinaField = {
1717
label: "Title",
1818
required: false,
1919
},
20+
{
21+
type: "string",
22+
name: "custom_page_width",
23+
label: "Custom page width for large screens (1-12)",
24+
required: false,
25+
},
2026
{
2127
type: "object",
2228
name: "links",

tina/tina-lock.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)