added thumbnail to posts page
This commit is contained in:
parent
0e8bc3652b
commit
efde3369bc
14 changed files with 120 additions and 33 deletions
31
layouts/blog/list.html
Normal file
31
layouts/blog/list.html
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{{ define "main" }}
|
||||
<div class="container markdown top-pad">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
<div class="container">
|
||||
{{ if .Site.Params.home.showLatest | default true }}
|
||||
<h2 class="title is-2 top-pad">{{ i18n "index_blog_latestPosts" . }}</h2>
|
||||
{{ range first 1 .Pages.ByPublishDate.Reverse }}
|
||||
<div class="summary">
|
||||
{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default ":date_medium") }}{{ end }}
|
||||
<h3 class="title is-3 strong-post-title">
|
||||
<a href="{{ .Permalink }}">
|
||||
{{ .Title | markdownify }}
|
||||
</a>
|
||||
</h3>
|
||||
<div class="markdown">
|
||||
{{ .Summary }}
|
||||
{{ if .Truncated }}
|
||||
<a href="{{ .Permalink }}">{{ i18n "index_blog_readMore" . }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{if .Site.Params.home.allPostsArchiveFormat}}
|
||||
{{ partialCached "blog/archive.html" .}}
|
||||
{{else}}
|
||||
{{ partialCached "blog/li.html" . }}
|
||||
{{end}}
|
||||
</div>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue