first commit
This commit is contained in:
20
layouts/_default/list.html
Normal file
20
layouts/_default/list.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<div class="posts-list">
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
{{ range .Pages }}
|
||||
<article class="post-preview">
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
||||
<div class="post-meta">
|
||||
<time>{{ .Date.Format "Jan 2, 2006" }}</time>
|
||||
{{ if .Params.author }}
|
||||
<span>{{ .Params.author.name }}</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ if .Params.excerpt }}
|
||||
<p class="post-excerpt">{{ .Params.excerpt }}</p>
|
||||
{{ end }}
|
||||
<a href="{{ .RelPermalink }}" class="read-more">Read more →</a>
|
||||
</article>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user