Alexander Avery
3 months ago
2 changed files with 25 additions and 30 deletions
@ -1,27 +1,22 @@ |
|||
<article class="shadow float-on-hover card"> |
|||
<div class="article-image"> |
|||
<a href=" {{ .Permalink }}"> |
|||
<article class="shadow float-on-hover"> |
|||
|
|||
<a href=" {{.Permalink }}"> |
|||
{{ $image := .Resources.GetMatch "featured" }} |
|||
{{ partial "image.html" (dict "image" $image "alt" .Params.featured.alt "class" "fill-wh")}} |
|||
{{ partial "image.html" (dict "image" $image "alt" .Params.featured.alt) }} |
|||
</a> |
|||
</div> |
|||
<div class="article-info-container"> |
|||
<div class="article-info"> |
|||
{{ range first 1 (.GetTerms "tags") }} |
|||
<a class="small-text" href="{{ .Permalink }}">{{ .LinkTitle }}</a> |
|||
{{ end }} |
|||
<a href="{{ .Permalink }}" class="article-title fill-wh"> |
|||
<h2>{{ .Title | markdownify }}</h2> |
|||
{{ if ne .Kind "term"}} |
|||
<span class="date"> |
|||
{{ if .Date }} |
|||
{{ .Date.Format "2006/01/02" }} |
|||
{{ else }} |
|||
TBD |
|||
|
|||
<div> |
|||
|
|||
<h2 class="title">{{ .Title | markdownify }}</h2> |
|||
|
|||
{{ with .Date }} |
|||
<p>{{ .Format "2006/01/02" }}</p> |
|||
{{ end }} |
|||
</span> |
|||
|
|||
{{ with index (.GetTerms "tags") 0 }} |
|||
<a class="small-text" href="{{ .Permalink }}">{{ .LinkTitle }}</a> |
|||
{{ end }} |
|||
</a> |
|||
</div> |
|||
|
|||
</div> |
|||
|
|||
</article> |
|||
|
Loading…
Reference in new issue