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

View File

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