Fix margin for automatic post summary
This commit is contained in:
parent
0ac19e409b
commit
b5b99ad1ad
@ -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 }}
|
||||||
|
@ -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 }}
|
||||||
|
@ -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 }}
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user