more than one category in rightcolumn
This commit is contained in:
parent
a22b6d0683
commit
763a274635
1 changed files with 21 additions and 8 deletions
|
@ -8,7 +8,7 @@
|
||||||
{{ $currentFile := (printf "/%s" .File) }}
|
{{ $currentFile := (printf "/%s" .File) }}
|
||||||
{{ $scratch := $s.Get $currentFile }}
|
{{ $scratch := $s.Get $currentFile }}
|
||||||
|
|
||||||
<div class="{{ $scratch.depth | default "crust" }}title"><span class="supt">{{ substr $currentDir 0 -1 }}: {{ substr .Title 0 1 }}</span>{{ substr .Title 1 }}</div></div>
|
<div class="{{ $scratch.depth | default "crust" }}title"><span class="supt">{{ substr $currentDir 0 -1 }}⁄{{ substr .Title 0 1 }}</span>{{ substr .Title 1 }}</div></div>
|
||||||
|
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
<div class="leftcolumn">
|
<div class="leftcolumn">
|
||||||
|
@ -17,46 +17,59 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<div class="rightcolumn">
|
<div class="rightcolumn">
|
||||||
|
{{- range $k, $v := .Page.Params.authors -}}
|
||||||
|
{{- with $.GetPage (printf "/author/%s" $v) -}}
|
||||||
|
{{- with not $k -}}
|
||||||
|
<div class="has hasauthors">
|
||||||
|
<div class="hassup">authors⁄</div>
|
||||||
|
<div class="afterhas">
|
||||||
|
{{- end -}}
|
||||||
|
<div class="crust">
|
||||||
|
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
|
||||||
|
</div>
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- with .Page.Params.authors -}}</div></div>{{- end -}}
|
||||||
|
|
||||||
{{ if in .Page.Site.Params.sandpointsMentionedIn (substr $currentDir 0 -1) }}
|
{{ if in .Page.Site.Params.sandpointsMentionedIn (substr $currentDir 0 -1) }}
|
||||||
<div class="has">
|
<div class="has">
|
||||||
{{ with $scratch.backlinks }}
|
{{ with $scratch.backlinks }}
|
||||||
<span class="sup">mentioned in⁄</span>
|
<div class="hassup">mentioned in⁄</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
|
||||||
<div class="afterhas">
|
<div class="afterhas">
|
||||||
{{ range $scratch.backlinks }}
|
{{ range $scratch.backlinks }}
|
||||||
<div class="{{ $scratch.child_depth }}">
|
<div class="{{ $scratch.child_depth }}">
|
||||||
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
|
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</div></div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if and (not (eq $scratch.depth "crust")) $scratch.has_children }}
|
{{ if and (not (eq $scratch.depth "crust")) $scratch.has_children }}
|
||||||
<div class="has">
|
<div class="has">
|
||||||
{{ with $scratch.has }}
|
{{ with $scratch.has }}
|
||||||
<span class="sup">has {{ $scratch.has }}⁄</span>
|
<div class="hassup">has {{ $scratch.has }}⁄</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
|
||||||
<div class="afterhas">
|
<div class="afterhas">
|
||||||
{{ range $scratch.has_children }}
|
{{ range $scratch.has_children }}
|
||||||
<div class="{{ $scratch.child_depth }}">
|
<div class="{{ $scratch.child_depth }}">
|
||||||
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
|
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</div></div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if eq $scratch.depth "crust" }}
|
{{ if eq $scratch.depth "crust" }}
|
||||||
<div class="has">
|
<div class="has">
|
||||||
<span class="sup">in {{ index $scratch.in 1 }}⁄</span>
|
<div class="hassup">in {{ index $scratch.in 1 }}⁄</div>
|
||||||
</div>
|
|
||||||
<div class="afterhas">
|
<div class="afterhas">
|
||||||
{{ range $scratch.is_in }}
|
{{ range $scratch.is_in }}
|
||||||
<div class="{{ substr $currentDir 0 -1 }}">
|
<div class="{{ substr $currentDir 0 -1 }}">
|
||||||
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
|
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</div></div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue