Clean up some of the div layout

This commit is contained in:
BBaoVanC 2022-04-04 21:47:26 -05:00
parent 11599e01d7
commit 37c04460b5
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
3 changed files with 12 additions and 20 deletions

View File

@ -52,6 +52,7 @@
}
/* Post layout (in list pages) */
.list-page-content {
display: flex;
@ -202,10 +203,6 @@
/* Header formatting (website title and article section headers) */
.top {
margin: 20px;
}
.header a,
.section-header a {
color: inherit;
@ -242,15 +239,6 @@
padding: 8px 15px;
}
.content,
footer {
margin: 20px;
}
footer {
text-align: center;
}
#back-to-top {
position: fixed;
float: right;
@ -350,11 +338,15 @@ body {
background-color: var(--background);
color: var(--text-normal);
font-family: "Open Sans", "Noto Sans", sans-serif;
margin: auto;
margin: 20px auto;
max-width: 720px;
overflow-wrap: break-word;
}
footer {
text-align: center;
}
img,
video {
max-width: 100%;
@ -504,9 +496,7 @@ li.disabled > .page-link:hover {
/* Breadcrumb navigation */
.breadcrumb {
margin-top: 40px;
margin-bottom: 20px;
margin-left: 20px;
margin: 30px 0 20px;
}
.breadcrumb ul {

View File

@ -14,15 +14,15 @@
{{ partial "breadcrumb.html" . }}
{{ end }}
<div class="content">
<div class="main">
{{ block "main" . }}
{{ .Content }}
{{ end }}
</div>
{{ with .Site.Copyright }}
<footer>
<hr>
<footer>
<small>
{{ . | safeHTML }}
</small>

View File

@ -46,7 +46,9 @@
</div>
{{ end }}
<div class="post-content">
{{ .Content }}
</div>
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}