blob: ead4ba11e37c50f0a6264f2d4dab72f76745d87c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<div class="columns is-mobile">
<div class="column is-5 has-text-centered">
<a href="{{ .Permalink }}">
{{ if (fileExists (print "public/" (replaceRE .Site.BaseURL "" (partial "article-image.html" .)))) }}
{{ $image := imageConfig (print "public/" (replaceRE .Site.BaseURL "" (partial "article-image.html" .))) }}
<img class="image__thumbnail" alt="{{ .Title }}" src="{{ partial "article-image.html" . }}"
height="{{ $image.Height }}" width="{{ $image.Width }}"/>
{{ end }}
</a>
</div>
<div class="column is-7">
<article>
<header class="post-header">
<h2 class="article__title title is-5 has-text-weight-bold">
<a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
</h2>
<p class="article__date subtitle is-6">
{{ partial "page-date.html" . }}{{ partial "page-status.html" .}} · {{ partial "read-time.html" .}}
</p>
</header>
<p class="article__summary">{{ if .Params.summary }}{{ truncate 75 "..." .Params.summary }}{{ else }}{{ truncate 75 "..." .Summary}}{{ end }}</p>
<p><a class="underline" href='{{ .Permalink }}'>Continue reading ({{ .FuzzyWordCount }} words)</a></p>
</article>
</div>
</div>
<hr class="article__divider">
|