added affiliation to authors for dotawo..

master
Marcell Mars 1 year ago
parent 193934cadf
commit 0dc7f37610

@ -885,6 +885,10 @@ details {
margin-left: 0.5rem;
}
.affiliation {
font-size: smaller;
}
@media (max-width: 767px) {
html {
box-sizing: border-box;

@ -47,7 +47,7 @@
<div class="afterhas">
{{- end -}}
<div class="crust">
<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>{{ with .Params.affiliation }}<span class="affiliation">, {{ . }}</span>{{ end }}
</div>
{{- end -}}
{{ end }}

@ -40,7 +40,7 @@
<div class="afterhas">
{{ end }}
<div class="crust">
<a href="#ph-{{ .File.UniqueID }}">{{ .Title }}</a>
<a href="#ph-{{ .File.UniqueID }}">{{ .Title }}</a>{{ with .Params.affiliation }}<span class="affiliation">, {{ . }}</span>{{ end }}
</div>
{{ end }}
{{ end }}
@ -61,7 +61,7 @@
{{ with not $k }}
{{ $prefix = "" }}
{{ end }}
{{ $authors = printf "%s%s" $prefix $authorPage.Title }}
{{ $authors = printf "%s%s%s" $authors $prefix $authorPage.Title }}
{{ end }}
<div class="{{ $scratch.child_depth }} crustoc">
<a class="toc" href="#ph-{{ .File.UniqueID }}"><span><span class="back">{{ .Title }} {{with $authors}}({{ $authors }}){{ end }}</span></span></a>

@ -47,7 +47,7 @@
<div class="afterhas">
{{- end -}}
<div class="crust">
<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>{{ with .Params.affiliation }}<span class="affiliation">, {{ . }}</span>{{ end }}
</div>
{{- end -}}
{{ end }}

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save