forked from laurens/fediversity_website
Verbeterde weergave van projecten
This commit is contained in:
parent
a12378461d
commit
4b5755e210
|
@ -1,7 +1,8 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<h2>Open projecten</h2>
|
<h2>Projecten</h2>
|
||||||
{{ range $.Site.Data.projecten.open }}
|
{{ range $.Pages }}
|
||||||
<h3>{{ .name }}</h3>
|
<h3>{{ .Params.project.title }}</h3>
|
||||||
<p>{{ .description }}</p>
|
<p>{{ .Params.project.description }}</p>
|
||||||
|
<a href="{{ .RelPermalink }}">Meer informatie</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
32
themes/nluug/layouts/projecten/single.html
Normal file
32
themes/nluug/layouts/projecten/single.html
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{{ define "main" }}
|
||||||
|
{{ $.Scratch.Set "counter" 0 }}
|
||||||
|
{{ with .Params.project.title }}<h2>{{ . }}</h2>{{ end }}
|
||||||
|
<div>{{ .Content }}</div>
|
||||||
|
{{ with .Params.project }}
|
||||||
|
{{ with .title }}<p>Project: <strong>{{ . }}</strong></p>{{ end }}
|
||||||
|
{{ with .description }}<p><em>{{ . }}</em></p>{{ end }}
|
||||||
|
<h2>Taken</h2>
|
||||||
|
{{ with .tasks }}
|
||||||
|
{{ range . }}
|
||||||
|
{{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }}
|
||||||
|
{{ with .name }}<h3>{{$.Scratch.Get "counter"}}. {{ . }}</h3>{{ end }}
|
||||||
|
{{ with .description }}<p><em>{{ . }}</em></p>{{ end }}
|
||||||
|
{{ with .goal }}<p>Doel: {{ . }}</p>{{ end }}
|
||||||
|
{{ with .link }}<p>Relevante link: <a href="{{ .url }}">{{ .name }}</a></p>{{ end }}
|
||||||
|
{{ if .finished }}<p>✔️ Hoofdtaak is afgerond</p>{{ end }}
|
||||||
|
{{ $.Scratch.Set "counter2" 0 }}
|
||||||
|
{{ with .subtasks }}
|
||||||
|
{{ range . }}
|
||||||
|
{{ $.Scratch.Set "counter2" (add ($.Scratch.Get "counter2") 1) }}
|
||||||
|
<h4>{{ $.Scratch.Get "counter" }}.{{ $.Scratch.Get "counter2" }}. {{ .name }}</h4>
|
||||||
|
{{ with .description }}<p><em>{{ . }}</em></p>{{ end }}
|
||||||
|
{{ if .finished }}<p>✔️ Subtaak is afgerond</p>{{ end }}
|
||||||
|
{{ with .link }}<p>Relevante link: <a href="{{ .url }}">{{ .name }}</a></p>{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ else }}
|
||||||
|
<p>Waarschuwing: dit project is niet goed geconfigureerd in de front matter.</p>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
Reference in a new issue