Fix margin for automatic post summary

This commit is contained in:
Dmitry Kolosov 2020-06-03 23:26:07 +03:00
parent 0ac19e409b
commit b5b99ad1ad
4 changed files with 16 additions and 6 deletions

View File

@ -12,7 +12,7 @@
</h1> </h1>
</header> </header>
<div class="content"> <div class="content post-summary">
{{ .Summary | safeHTML }} {{ .Summary | safeHTML }}
</div> </div>
<!-- {{ if .Truncated }} <!-- {{ if .Truncated }}

View File

@ -11,9 +11,9 @@
<a href="{{ .RelPermalink }}">{{ .Title }}</a> <a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h1> </h1>
</header> </header>
<div class="content"> <div class="content post-summary">
{{ .Summary }} {{ .Summary | safeHTML }}
</div> </div>
{{ partial "articleInfoDate.html" . }} {{ partial "articleInfoDate.html" . }}
<!-- {{ if .Truncated }} <!-- {{ if .Truncated }}

View File

@ -11,8 +11,9 @@
<a href="{{ .RelPermalink }}">{{ .Title }}</a> <a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h1> </h1>
</header> </header>
<div class="content">
{{ .Summary }} <div class="content post-summary">
{{ .Summary | safeHTML }}
</div> </div>
{{ partial "articleInfoDate.html" . }} {{ partial "articleInfoDate.html" . }}
<!-- {{ if .Truncated }} <!-- {{ if .Truncated }}

View File

@ -304,6 +304,15 @@ article img {
margin: 1em auto; margin: 1em auto;
} }
.post-summary {
margin-top: 0.5em;
display: block;
}
.post-summary > p {
display: block;
}
/* Other pages */ /* Other pages */
.terms { .terms {
list-style-type: none; list-style-type: none;