54 lines
2.4 KiB
HTML
54 lines
2.4 KiB
HTML
{{ define "main" }}
|
|
<div class="frontpage">
|
|
<div class="pb-6"> <span class="title-pretext">survey ⦚ </span><span class="title-text">{{ .Site.Home.Title }}</span></div>
|
|
|
|
<div class="sidebar-title mb-1 pt-16 mb-4">▒▒ has fields ▽</div>
|
|
<ul class="mt-8">
|
|
{{ range .Site.Home.Params.has_fields }}
|
|
{{ with $.GetPage (printf "%s%s" "/field/" . ) }}
|
|
<li><a class="sidebar-list text-base toc" href="#{{ .File.LogicalName }}">> {{ .Title }}</a></li>
|
|
{{ end }}
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
{{ range .Site.Home.Params.has_fields }}
|
|
{{ with $.GetPage (printf "%s%s" "/field/" . ) }}
|
|
<div class="field" id="{{ .File.LogicalName }}"><div class="runningfield"><a href="#{{ .File.LogicalName }}"> field ⦚ {{ .Title }}</a></div>
|
|
<div><span class="field-pretext">field ⦚ </span><span class="field-text pt-6">{{ .Title }}</span></div>
|
|
<div class="sidebar-title mb-1 pt-16">▒▒ has practices ▽</div>
|
|
<ul class="mt-4">
|
|
{{ range .Params.has_practices }}
|
|
{{ with $.GetPage (printf "%s%s" "/practice/" . ) }}
|
|
<li><a class="sidebar-list text-base toc" href="#{{ .File.LogicalName }}">> {{ .Title }}</a></li>
|
|
{{ end }}
|
|
{{ end }}
|
|
</ul>
|
|
<div>{{ .Content }}</div>
|
|
|
|
{{ range .Params.has_practices }}
|
|
{{ with $.GetPage (printf "%s%s" "/practice/" . ) }}
|
|
{{ $practice := . }}
|
|
<div class="field" id="{{ .File.LogicalName }}"><div class="runningfield"><a href="#{{ .File.LogicalName }}">practice ⦚ {{ .Title }}</a></div>
|
|
<div><span class="field-pretext">practice ⦚ </span><span class="field-text pt-6">{{ .Title }}</span></div>
|
|
<div class="sidebar-title mb-1 pt-16">▒▒ is in ▽</div>
|
|
<ul class="mt-4">
|
|
{{ range where $.Site.RegularPages ".Section" "field" }}
|
|
{{ if in .Params.has_practices $practice.File.LogicalName }}
|
|
<li><a class="sidebar-list text-base" href="#{{ .File.LogicalName }}">↖ field ⦚ {{ .Title }}</a></li>
|
|
{{ else if in .Params.is_in $practice.File.LogicalName }}
|
|
<li><a class="sidebar-list text-base" href="#{{ .File.LogicalName }}">↖ field ⦚ {{ .Title }}</a></li>
|
|
{{ end }}
|
|
{{ end }}
|
|
</ul>
|
|
<div class="pt-16">{{ .Content }} </div>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|