blob: 5bd36e0a6c4152cb4bc8128d38fe8c13e0571000 (
plain) (
blame)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
{{ define "main" }}
{{ if .Menus }}
<nav class="post-navigation">
{{ range .Menus }}
<a href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a>
{{ end }}
</nav>
{{ end }}
<article class="post h-entry">
<header class="post-header">
<h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}">{{ trim .Title " " }}</h1>
</header>
<div class="content e-content">
<h2>Project info</h2>
<dl class="data">
<dt>Project site</dt>
<dd>
<a href="{{ .Params.projectUrl }}">
{{ .Params.name }}
</a>
</dd>
{{ if isSet .Params "author" }}
<dt>Creator</dt>
{{ if isSet .Params "authorurl" }}
<dd><a href={{.Params.authorURL}}>{{ .Params.author }}</a></dd>
{{ else }}
<dd>{{ .Params.author }}</dd>
{{ end }}
{{ end }}
{{ if isSet .Params "maintainers" }}
<dt>Maintainers</dt>
{{ range $maintainer := .Params.maintainers }}
{{ if isSet $maintainer "URL" }}
<dd><a href={{$maintainer.URL}}>{{ $maintainer.name }}</a></dd>
{{ else }}
<dd>{{ $maintainer.name }}</dd>
{{ end }}
{{ end }}
{{ end }}
<dt>Status</dt>
<dd>{{ .Params.projectStatus }}</dd>
</dl>
{{ .Content }}
<hr>
{{ if eq .Params.projectStatus "dead" }}
<p>
The project is currently dead. You can fork it if you find it helpful.
</p>
{{ else }}
<p>
The development of project is {{.Params.projectStatus}}.
You can help this project by contributing code, finding new issues,
suggesting new features, or donation.
</p>
{{ end }}
</div>
{{ partial "post-info.html" . }}
</article>
{{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }}
{{ partial "paginationPost.html" . }}
{{ end }}
{{ partial "custom-webring.html" }}
{{ end }}
|