33 lines
1.4 KiB
HTML
33 lines
1.4 KiB
HTML
<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>
|
|
<div class="filler"></div>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="network-source"><span class="from p-author">From {{ if .Params.author }}<b>{{.Params.author}}</b> at {{ end }}<a href="{{ "/categories/" | relLangURL }}{{ .Params.feed_name | urlize }}">{{ .Params.feed_name }}</a></span></div>
|
|
|
|
<div class="p-summary {{if .Truncated}} truncated {{end}} img" >
|
|
{{ with (index (.Resources.ByType "image") 0) }}
|
|
{{ $thumb := .Fit "540x360"}}
|
|
<div class="summary-image">
|
|
<img src="{{ $thumb.Permalink }}" alt="{{ .Title }}">
|
|
</div>
|
|
{{ end }}
|
|
<div class="summary-text">
|
|
{{ .Summary }}
|
|
</div>
|
|
|
|
</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> |