change post
This commit is contained in:
parent
c24994c009
commit
2f7f6ed0fc
2 changed files with 13 additions and 21 deletions
|
@ -1,25 +1,18 @@
|
||||||
<div class="post">
|
<div class="post">
|
||||||
{{if .Params.image}}
|
|
||||||
<a href="{{.Permalink}}">
|
<a href="{{.Permalink}}">
|
||||||
<div class="post-image" style="background-image:url({{.Params.image}})">
|
<h2>{{.Title}}</h2>
|
||||||
</div>
|
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
<div>
|
||||||
<section>
|
<p>{{.Params.description}}{{if .Date}}<br>Published: <strong>{{.Date | time.Format "Jan 02
|
||||||
<a href="{{.Permalink}}">
|
2006"}}{{end}}</strong></p>
|
||||||
<h2>{{.Title}}</h2>
|
</div>
|
||||||
</a>
|
{{ if .GetTerms "tags" }}
|
||||||
<div>
|
<div class="post-tags">
|
||||||
<p>{{.Params.description}}{{if .Date}}<br>Published: <strong>{{.Date | time.Format "Jan 02 2006"}}{{end}}</strong></p>
|
{{range .GetTerms "tags" }}
|
||||||
</div>
|
<a href="{{.Permalink}}" class="tag"><svg class='icon'>
|
||||||
{{ if .GetTerms "tags" }}
|
<use href="#tag"></use>
|
||||||
<div class="post-tags">
|
</svg><span>{{.LinkTitle}}</span></a>
|
||||||
{{range .GetTerms "tags" }}
|
|
||||||
<a href="{{.Permalink}}" class="tag"><svg class='icon'>
|
|
||||||
<use href="#tag"></use>
|
|
||||||
</svg><span>{{.LinkTitle}}</span></a>
|
|
||||||
{{end}}
|
|
||||||
</div>
|
|
||||||
{{end}}
|
{{end}}
|
||||||
</section>
|
</div>
|
||||||
|
{{end}}
|
||||||
</div>
|
</div>
|
|
@ -242,7 +242,6 @@ article h1 {}
|
||||||
.posts {
|
.posts {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: flex-start;
|
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
|
|
Loading…
Reference in a new issue