Fix format

This commit is contained in:
panr 2019-03-31 19:28:38 +02:00
parent 13e0079b23
commit e938e972b6
2 changed files with 80 additions and 71 deletions

View File

@ -19,7 +19,9 @@
{{ if .Params.tags }}
<span class="post-tags">
{{ range .Params.tags }}
#<a href="{{ (urlize (printf "tags/%s/" . )) | absURL }}">{{ . }}</a>&nbsp;
#<a href="{{ (urlize (printf "tags/%s/" . )) | absURL }}">
{{- . -}}
</a>&nbsp;
{{ end }}
</span>
{{ end }}
@ -42,7 +44,8 @@
{{ if not .Params.showFullContent }}
<div>
<a class="read-more button" href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a>
<a class="read-more button"
href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a>
</div>
{{ end }}
</div>

View File

@ -1,11 +1,16 @@
{{ define "main" }}
<div class="post">
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<div class="post">
<h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<div class="post-meta">
<span class="post-date">
{{ .Date.Format "2006-01-02" }}
</span>
{{ with .Params.Author }}<span class="post-author">:: {{ . }}</span>{{ end }}
{{ with .Params.Author }}
<span class="post-author">::
{{ . }}
</span>
{{ end }}
</div>
{{ if .Params.tags }}
@ -32,7 +37,8 @@
{{ if or .NextInSection .PrevInSection }}
<div class="pagination">
<div class="pagination__title">
<span class="pagination__title-h">{{ $.Site.Params.ReadOtherPosts }}</span>
<span
class="pagination__title-h">{{ $.Site.Params.ReadOtherPosts }}</span>
<hr />
</div>
<div class="pagination__buttons">
@ -57,5 +63,5 @@
{{ end }}
{{ partial "comments.html" . }}
</div>
</div>
{{ end }}