Improve description for twitter cards and posts

This commit is contained in:
Djordje Atlialp 2021-01-10 16:04:23 +01:00
parent a46b6f6032
commit e3808bce7d
3 changed files with 15 additions and 5 deletions

View file

@ -22,6 +22,14 @@
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h1>
{{ with .Params.Description }}
<div class="post-excerpt">{{ . }}</div>
{{ end }}
{{ with .Params.Cover }}
<img src="/{{ . }}" class="post-cover" />
{{ end }}
{{- if .Params.toc }}
<hr />
<aside id="toc">
@ -31,10 +39,6 @@
<hr />
{{- end }}
{{ with .Params.Cover }}
<img src="/{{ . }}" class="post-cover" />
{{ end }}
<div class="post-content">
{{ .Content }}
</div>