Small spacing tweaks with page titles

This commit is contained in:
BBaoVanC 2022-07-20 21:48:55 -05:00
parent 0c248a4ca5
commit fb40c8a4c3
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
3 changed files with 27 additions and 18 deletions

View File

@ -159,6 +159,11 @@
margin-bottom: 10px;
}
.post-title h1,
.author-name h1 {
margin: 0;
}
.post-title a,
.author-name a {
color: inherit;
@ -173,7 +178,7 @@
.post-metadata,
.author-metadata {
margin-bottom: 15px;
margin-bottom: 24px;
}
.categories,
@ -823,7 +828,7 @@ li.disabled > .page-link:hover {
/* Breadcrumb navigation */
.breadcrumb {
.breadcrumb ul {
margin: 30px 0 20px;
}

View File

@ -1,9 +1,11 @@
{{ define "main" }}
<h1>
{{ partial "icon.html" "user-circle" }}
{{ .Title | markdownify }}
{{ partial "rss-link.html" . }}
</h1>
<div class="author-name">
<h1>
{{ partial "icon.html" "user-circle" }}
{{ .Title | markdownify }}
{{ partial "rss-link.html" . }}
</h1>
</div>
{{ partial "post-metadata/author.html" . }}

View File

@ -1,16 +1,18 @@
{{ define "main" }}
<h1>
{{ if eq .Data.Singular "tag" }}
{{ partial "icon.html" "tag" }}
{{ else if eq .Data.Singular "category" }}
{{ partial "icon.html" "folder" }}
{{ else }}
{{ partial "icon.html" "filter" }}
{{ end }}
<div class="post-title">
<h1>
{{ if eq .Data.Singular "tag" }}
{{ partial "icon.html" "tag" }}
{{ else if eq .Data.Singular "category" }}
{{ partial "icon.html" "folder" }}
{{ else }}
{{ partial "icon.html" "filter" }}
{{ end }}
{{ .Title | markdownify }}
{{ partial "rss-link.html" . }}
</h1>
{{ .Title | markdownify }}
{{ partial "rss-link.html" . }}
</h1>
</div>
{{ partial "post-metadata/taxonomy.html" . }}