fix: fix rendering issue for untranslated pages in bundle menu (#389)
parent
0a5af2e8da
commit
6d82d6f851
|
@ -27,7 +27,7 @@
|
||||||
{{ $id := substr (sha1 $this.Permalink) 0 8 }}
|
{{ $id := substr (sha1 $this.Permalink) 0 8 }}
|
||||||
{{ $doCollapse := and (isset . "sub") (or $this.Params.GeekdocCollapseSection (default false .Site.Params.GeekdocCollapseAllSections)) }}
|
{{ $doCollapse := and (isset . "sub") (or $this.Params.GeekdocCollapseSection (default false .Site.Params.GeekdocCollapseAllSections)) }}
|
||||||
|
|
||||||
|
{{ if or .external ($this.RelPermalink) }}
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
{{ if $doCollapse }}
|
{{ if $doCollapse }}
|
||||||
|
@ -49,9 +49,9 @@
|
||||||
<a
|
<a
|
||||||
href="{{ if .external }}
|
href="{{ if .external }}
|
||||||
{{ .ref }}
|
{{ .ref }}
|
||||||
{{ else }}
|
{{- else -}}
|
||||||
{{ relref $current .ref }}
|
{{ $this.RelPermalink }}
|
||||||
{{ end }}"
|
{{- end }}"
|
||||||
class="gdoc-nav__entry{{- if not .external }}
|
class="gdoc-nav__entry{{- if not .external }}
|
||||||
{{- if $isCurrent }}{{ printf " is-active" }}{{ end }}
|
{{- if $isCurrent }}{{ printf " is-active" }}{{ end }}
|
||||||
{{- end }}"
|
{{- end }}"
|
||||||
|
@ -68,6 +68,7 @@
|
||||||
</svg>
|
</svg>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</label>
|
</label>
|
||||||
|
{{ end }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<span class="flex">{{ $name }}</span>
|
<span class="flex">{{ $name }}</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue