has_*/ now gets the class name of its item's depth from namegraph...

This commit is contained in:
Marcell Mars 2020-09-09 03:45:27 +02:00
parent a97515ee0d
commit 2cf0849d9d
2 changed files with 4 additions and 4 deletions

View File

@ -743,7 +743,7 @@ h2.nocount:before, h3.nocount:before, h4.nocount:before, h5.nocount:before, h6.n
display: inline;
}
.syllabustitle {
.coretitle {
margin-top: 3rem;
margin-bottom: 2rem;
font-size: 2.2rem;
@ -757,7 +757,7 @@ h2.nocount:before, h3.nocount:before, h4.nocount:before, h5.nocount:before, h6.n
font-size: 1.1rem;
}
.session, .topic {
.mantle, .crust {
margin-bottom: 0.2em;
}
@ -771,7 +771,7 @@ h2.nocount:before, h3.nocount:before, h4.nocount:before, h5.nocount:before, h6.n
display: none;
}
.topicstitle {
.mantletitle {
font-size: 1.7rem;
}

View File

@ -31,7 +31,7 @@
<div class="afterhas">
{{ range index $currentNode.Params (printf "has_%s" (index ($graphOptions.Get "has") 1) )}}
{{ with $.GetPage (printf "%s%s" (printf "/%s/" (index ($graphOptions.Get "has") 0)) . ) }}
<div class="{{ index ($graphOptions.Get "has") 0 }}">
<div class="{{ index $.Site.Data.sandpointsnamegraph (index ($graphOptions.Get "has") 0) "depth" }}">
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
</div>
{{ end }}