added affiliation to authors for dotawo..
This commit is contained in:
parent
193934cadf
commit
0dc7f37610
5 changed files with 9 additions and 5 deletions
|
@ -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 }}
|
||||
|
|
2
static/css/site.min.css
vendored
2
static/css/site.min.css
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue