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"> |
<article class="shadow float-on-hover"> |
||||
<div class="article-image"> |
|
||||
<a href=" {{ .Permalink }}"> |
<a href=" {{.Permalink }}"> |
||||
{{ $image := .Resources.GetMatch "featured" }} |
{{ $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> |
</a> |
||||
</div> |
|
||||
<div class="article-info-container"> |
<div> |
||||
<div class="article-info"> |
|
||||
{{ range first 1 (.GetTerms "tags") }} |
<h2 class="title">{{ .Title | markdownify }}</h2> |
||||
<a class="small-text" href="{{ .Permalink }}">{{ .LinkTitle }}</a> |
|
||||
{{ end }} |
{{ with .Date }} |
||||
<a href="{{ .Permalink }}" class="article-title fill-wh"> |
<p>{{ .Format "2006/01/02" }}</p> |
||||
<h2>{{ .Title | markdownify }}</h2> |
|
||||
{{ if ne .Kind "term"}} |
|
||||
<span class="date"> |
|
||||
{{ if .Date }} |
|
||||
{{ .Date.Format "2006/01/02" }} |
|
||||
{{ else }} |
|
||||
TBD |
|
||||
{{ end }} |
{{ end }} |
||||
</span> |
|
||||
|
{{ with index (.GetTerms "tags") 0 }} |
||||
|
<a class="small-text" href="{{ .Permalink }}">{{ .LinkTitle }}</a> |
||||
{{ end }} |
{{ end }} |
||||
</a> |
|
||||
</div> |
|
||||
</div> |
</div> |
||||
|
|
||||
</article> |
</article> |
||||
|
Loading…
Reference in new issue