blob: 155ce70816e2c10e9d814a40d6068e4dc0004af8 (
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
|
<div class="col-md-4 mt20">
<div class="post-img">
{{ if .Params.img }}
{{ with .Resources.Match .Params.img }}
{{ range . }}
<img width="100%" src="{{ .RelPermalink }}" alt="{{ .Title }}">
{{ end }}
{{ end }}
{{ else }}
<img width="600" src="{{ .Site.BaseURL }}images/{{ .Site.Params.defaultImage }}" alt="webjeda">
{{ end }}
</div>
<div class="mt10 recent">
<h2>Recent articles</h2>
<ul>
{{ range first 3 (where .Site.RegularPages "Section" "posts") }}
<li>
<p><a href="{{ .Permalink }}">{{ .Title }}</a><small> {{ .Date.Format "January 2, 2006" }}</small></p>
</li>
{{ end }}
</ul>
</div>
{{ if .Site.Params.fbLikeBox }}
<div class="mt10">
<div class="fb-page" data-href="https://www.facebook.com/webjeda/" data-width="400" data-small-header="true" data-adapt-container-width="true" data-hide-cover="true" data-show-facepile="true"><blockquote cite="https://www.facebook.com/webjeda/" class="fb-xfbml-parse-ignore"><a href="{site.fb-page-url}}">{{ .Site.Params.fbPageTitle}}</a></blockquote></div>
</div>
{{ end }}
<br>
</div>
|