From ca104efe5c1cb9efbdcb7a5a9c4f9ff38655be9f Mon Sep 17 00:00:00 2001 From: Tamas Gal <tgal@km3net.de> Date: Tue, 27 Oct 2020 17:39:34 +0100 Subject: [PATCH] Add some margin --- portal/layouts/article/single.html | 48 ++++++++++++++++-------------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/portal/layouts/article/single.html b/portal/layouts/article/single.html index bbd34d1..7747a9a 100644 --- a/portal/layouts/article/single.html +++ b/portal/layouts/article/single.html @@ -1,29 +1,31 @@ {{ partial "head.html" . }} -<main> -<section> - <header> - <h1>{{.Title}}</h1> - </header> +<div class="container"> + <main> + <section> + <header> + <h1>{{.Title}}</h1> + </header> - <article> - {{.Content}} - </article> + <article> + {{.Content}} + </article> - <footer> - <ul> - {{ with .PrevInSection }}<li><a href="{{ .Permalink }}">« {{ .Title }}</a></li>{{ end }} - {{ with .NextInSection }}<li><a href="{{ .Permalink }}">{{ .Title }} »</a></li>{{ end }} - </ul> - </footer> -</section> -<aside> - <ul> - <li><a href="{{ .Site.BaseURL }}">Home</a></li> - <li><a href="{{ "posts/" | absURL }}">Posts</a></li> - <li><a href="{{ .Section | absURL }}">Articles</a></li> - </ul> -</aside> -</main> + <footer> + <ul> + {{ with .PrevInSection }}<li><a href="{{ .Permalink }}">« {{ .Title }}</a></li>{{ end }} + {{ with .NextInSection }}<li><a href="{{ .Permalink }}">{{ .Title }} »</a></li>{{ end }} + </ul> + </footer> + </section> + <aside> + <ul> + <li><a href="{{ .Site.BaseURL }}">Home</a></li> + <li><a href="{{ "posts/" | absURL }}">Posts</a></li> + <li><a href="{{ .Section | absURL }}">Articles</a></li> + </ul> + </aside> + </main> +</div> <!-- /container --> {{ partial "foot.html" .}} -- GitLab