Commit 4ebeff5d authored by Erik Faye-Lund's avatar Erik Faye-Lund
Browse files

layout: harmonize margins around main

We're currently YOLOing the margins and padding around main pretty badly,
leading to slight inconsistencies between the different page-types.

This makes it consistent; we now have a margin of 3 (which is bootstrap
for 1rem) around all main-tags. To render more or less the same, we need
to make some page-specific adjustments, like reducing a jumbotron-margin
on the home-page.

The only functional change should be the margin at the bottom of the
404-page, which is not smaller, like on other pages. It seems better to
be consistent here.
parent d8b10296
Pipeline #327940 passed with stages
in 18 seconds
{{- define "main" -}}
<main class="container pt-3">
<main class="container my-3">
<h1>{{ .Title | markdownify }}</h1>
{{ .Content }}
......
{{ define "main" }}
{{ partial "jumbotron.html" . }}
<main class="container">
<main class="container my-3">
{{ .Content }}
......
{{- define "main" -}}
<main class="container pt-3">
<main class="container my-3">
<h1>News</h1>
<hr>
......
{{- define "main" -}}
<main class="container pt-3">
<main class="container my-3">
<h1>{{ .Title | markdownify }}</h1>
<p class="text-muted"><time datetime="{{ .PublishDate.Format "2006-01-02" }}">{{ .PublishDate.Format "January 2, 2006" }}</time></p>
......
<footer class="footer mt-3 py-3 bg-light text-muted">
<footer class="footer py-3 bg-light text-muted">
<div class="container">
<div class="row">
......
<header class="jumbotron jumbotron-fluid overflow-hidden">
<header class="jumbotron jumbotron-fluid overflow-hidden mb-3">
<div class="container">
<div class="position-relative">
<div id="jumbotron-content">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment