[FEATURE] Blog: make the blog posts looks much nicer and add a header image
This commit is contained in:
parent
abf85cec0f
commit
2710137012
6 changed files with 69 additions and 16 deletions
|
@ -1,13 +1,13 @@
|
|||
|
||||
<article>
|
||||
<article class="blog">
|
||||
{{- partial "blog-header.html" (dict "headingLink" true "level" 2 "page" . ) }}
|
||||
|
||||
{{- if in .RawContent "<!--more-->" }}
|
||||
<section>
|
||||
{{- if in .RawContent "<!--more--> " }}
|
||||
{{ .Summary | safeHTML }}
|
||||
{{- else }}
|
||||
{{- else }}
|
||||
<p>{{ .Summary | safeHTML }}</p>
|
||||
{{- end }}
|
||||
{{- if .Truncated }}
|
||||
{{- end }}
|
||||
{{- if .Truncated }}
|
||||
<div class="morelink"><a href="{{ .RelPermalink }}">mehr...</a></div>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</section>
|
||||
</article>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue