rra
3 years ago
3 changed files with 74 additions and 1 deletions
@ -0,0 +1,32 @@ |
|||||
|
<div class='network card'> |
||||
|
<article class="h-entry network"> |
||||
|
<header> |
||||
|
<h2 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h2> |
||||
|
<div class="header-metadata"> |
||||
|
<time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time> |
||||
|
{{ if .Params.author }} |
||||
|
<div class='author'>{{.Params.author}}</div> |
||||
|
{{ end }} |
||||
|
</div> |
||||
|
</header> |
||||
|
|
||||
|
<div class="p-summary {{if .Truncated}} truncated {{end}} img" > |
||||
|
<div class="summary-text"> |
||||
|
{{ .Summary }} |
||||
|
</div> |
||||
|
{{ with (index (.Resources.ByType "image") 0) }} |
||||
|
{{ $thumb := .Fit "480x320"}} |
||||
|
<div class="summary-image"> |
||||
|
<img src="{{ $thumb.Permalink }}" alt="{{ .Title }}"> |
||||
|
</div> |
||||
|
{{ end }} |
||||
|
</div> |
||||
|
{{ if .Truncated }} |
||||
|
<footer class='post-footer'> |
||||
|
<div class='read-more'><a href="{{ .RelPermalink }}">Read More…</a></div> |
||||
|
<div class='footer-filler'></div> |
||||
|
</footer> |
||||
|
{{ end }} |
||||
|
|
||||
|
</article> |
||||
|
</div> |
Loading…
Reference in new issue