index.html - drkhsh_at - files used to generate www.drkhsh.at
(HTM) git clone https://git.drkhsh.at/drkhsh_at.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
index.html (892B)
---
1 {{- define "main" }}
2 {{ .Content }}
3 <h2>now</h2>
4 <h3>writing</h3>
5 latest blog posts:
6 <ul>
7 {{ range first 3 (where site.RegularPages "Section" "posts") }}
8 <li>
9 <a href="{{ .RelPermalink }}">{{ strings.Truncate 42 "..." .Title }}</a>, {{ .Date.Format "2006-01-02" }}
10 </li>
11 {{ end }}
12 </ul>
13 <h3>creativity</h3>
14 last textart:
15 <ul>
16 {{ range first 3 (where site.RegularPages "Section" "textart") }}
17 <li>
18 <a href="{{ .RelPermalink }}">{{ strings.Truncate 42 "..." .Title }}</a>,
19 {{ .Date.Format "2006-01-02" }}
20 </li>
21 {{ end }}
22 </ul>
23 latest rice screenshot:<br>
24 {{ range first 1 (where site.RegularPages "Section" "scrots") }}
25 <a href="{{ .Permalink }}">
26 {{- $title := .Title }}
27 {{- range first 1 (.Resources.ByType "image") }}
28 {{- $src := . }}
29 {{ $src := $src.Resize "128x jpg #222222" }}
30 <img class="nodark" alt="{{ $title }}" src="{{$src.Permalink}}">
31 {{ end }}
32 </a>
33 {{ end }}
34 {{- end }}