Hello whiny.lol
This commit is contained in:
17
layouts/_partials/card.html
Normal file
17
layouts/_partials/card.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<article class="card">
|
||||
{{ with .Resources.GetMatch "cover.*" }}
|
||||
<img src="{{ .RelPermalink }}" alt="{{ $.Title }}" width="1350" height="700">
|
||||
{{ end }}
|
||||
|
||||
<div class="card-info">
|
||||
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
|
||||
{{ if .Date }}
|
||||
<p>{{ if .Draft }}Draft • {{ end }}<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2, 2006" }}</time></p>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Params.period }}
|
||||
<p>{{ . }}</p>
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
Reference in New Issue
Block a user