Move li_grid_with_date template to _default so terms and blog can use it
This commit is contained in:
parent
b9265b5793
commit
b876f5a0cd
1 changed files with 3 additions and 1 deletions
21
layouts/_default/li_grid_with_date.html
Normal file
21
layouts/_default/li_grid_with_date.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<article class="post">
|
||||
<header>
|
||||
<time class="nobreak" datetime="{{ .Date | time.Format "2006-01-02" }}">{{ .Date | time.Format "Jan 2, 2006" }}</time>
|
||||
<h1 class="title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
</header>
|
||||
|
||||
{{ if .Description }}
|
||||
<p>{{ .Description }}</p>
|
||||
{{ else if lt .WordCount 110 }}
|
||||
{{ .Content }}
|
||||
{{ else }}
|
||||
{{ if not .Draft }}
|
||||
{{ warnf "Post \"%s\" doesn't have a description or content suitable for the blog list" .Title }}
|
||||
{{ end }}
|
||||
<p>{{ .WordCount }} words</p>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "footer_tags.html" . }}
|
||||
|
||||
{{ partial "development/draft_tag.html" . }}
|
||||
</article>
|
Loading…
Add table
Add a link
Reference in a new issue