blob: 18ae347d25819e10b98ec1cd15cd31066beab655 (
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
|
<!DOCTYPE html>
<html>
<head>
{{ partial "head.html" . }}
<title>{{ .Title }} | {{ .Site.Title }}</title>
</head>
<body>
{{ partial "navigation.html" . }}
{{ .Content }}
{{ $numcon := len (where .RegularPagesRecursive "File.Dir" ">" "know/concept/") }}
{{ $numcat := len (where .RegularPagesRecursive "File.Dir" "==" "know/category/") }}
<p>
There are currently
<a href="/know/concept/">{{ $numcon }} articles</a> in this knowledge base,
in <a href="/know/category/">{{ $numcat }} categories</a>.
</p>
<p>
Most recent articles:
<ol>
{{ range first 10 (where .RegularPagesRecursive "File.Dir" ">" "know/concept/").ByPublishDate.Reverse }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
</ol>
</p>
{{ partial "footer.html" . }}
</body>
</html>
|