change post
parent
c24994c009
commit
2f7f6ed0fc
@ -1,25 +1,18 @@
|
||||
<div class="post">
|
||||
{{if .Params.image}}
|
||||
<a href="{{.Permalink}}">
|
||||
<div class="post-image" style="background-image:url({{.Params.image}})">
|
||||
</div>
|
||||
<h2>{{.Title}}</h2>
|
||||
</a>
|
||||
{{end}}
|
||||
<section>
|
||||
<a href="{{.Permalink}}">
|
||||
<h2>{{.Title}}</h2>
|
||||
</a>
|
||||
<div>
|
||||
<p>{{.Params.description}}{{if .Date}}<br>Published: <strong>{{.Date | time.Format "Jan 02 2006"}}{{end}}</strong></p>
|
||||
</div>
|
||||
{{ if .GetTerms "tags" }}
|
||||
<div class="post-tags">
|
||||
{{range .GetTerms "tags" }}
|
||||
<a href="{{.Permalink}}" class="tag"><svg class='icon'>
|
||||
<use href="#tag"></use>
|
||||
</svg><span>{{.LinkTitle}}</span></a>
|
||||
{{end}}
|
||||
</div>
|
||||
<div>
|
||||
<p>{{.Params.description}}{{if .Date}}<br>Published: <strong>{{.Date | time.Format "Jan 02
|
||||
2006"}}{{end}}</strong></p>
|
||||
</div>
|
||||
{{ if .GetTerms "tags" }}
|
||||
<div class="post-tags">
|
||||
{{range .GetTerms "tags" }}
|
||||
<a href="{{.Permalink}}" class="tag"><svg class='icon'>
|
||||
<use href="#tag"></use>
|
||||
</svg><span>{{.LinkTitle}}</span></a>
|
||||
{{end}}
|
||||
</section>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
Loading…
Reference in New Issue