[wip] better organize pages, enable org-hugo-auto-export-on-save
[~bandali/bndl.org] / layouts / index.html
CommitLineData
ae39b0da
AB
1{{ define "main" }}
2
3<h1 id="hello">Hello there,</h1>
4<p>
5 <img class="picture__avatar" src="https://emacsel.com/img/aminb.jpg" alt="Amin Bandali">
6</p>
7<div class="clear"></div>
8{{ with .Content }}
9{{ . }}
10{{ end }}
11
12<h2 id="publications">Publications</h2>
351bf145
AB
13<ul id="text-publications">
14 {{ range .Site.Data.publications.pub }}
15 <li>
16 <p>
17 <strong>{{ .title | markdownify }}</strong>
18 ({{ .links | markdownify }})
19 </p>
20 <p class="pub-desc">{{ .description | markdownify }}</p>
21 </li>
22 {{ end }}
ae39b0da
AB
23</ul>
24
25<h2 id="talks">Talks &amp; presentations</h2>
26<ul>
27 {{ if gt (len (where .Pages "Section" "talk")) 0 }}
28 {{ range first 5 (where .Pages "Section" "talk") }}
29 <li><a href="{{substr .Permalink 0 -1}}">{{ .Title }}</a></li>
30 {{ end }}
31 {{ else }}
32 <li>TODO</li>
33 {{ end }}
34</ul>
35
36<h2 id="writings">Recent writings &amp; essays</h2>
37<ul>
38 {{ if gt (len (where .Pages "Section" "post")) 0 }}
39 {{ range first 5 (where .Pages "Section" "post") }}
40 <li><a href="{{substr .Permalink 0 -1}}" title="{{ dateFormat "January 2, 2006" .Date }}">{{ .Title }}</a></li>
41 {{ end }}
42 {{ else }}
43 <li>TODO</li>
44 {{ end }}
45</ul>
46
47{{ end }}