mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
feat(menu): no ul new line when item active with no child ; feat(fork): fork icon instead of github
This commit is contained in:
parent
40bdb505df
commit
fb77b7e737
2 changed files with 4 additions and 2 deletions
|
@ -24,8 +24,8 @@
|
||||||
{{with $File.Path }}
|
{{with $File.Path }}
|
||||||
<div id="top-github-link">
|
<div id="top-github-link">
|
||||||
<a class="github-link" href="{{ $Site.Params.editURL }}{{ $File.Dir }}{{ $File.LogicalName }}" target="blank">
|
<a class="github-link" href="{{ $Site.Params.editURL }}{{ $File.Dir }}{{ $File.LogicalName }}" target="blank">
|
||||||
<i class="fa fa-github-square"></i>
|
<i class="fa fa-code-fork"></i>
|
||||||
edit this page
|
Edit this page
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
{{ $first.Title }}
|
{{ $first.Title }}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
{{ if gt .Pages.Len 1}}
|
||||||
<ul>
|
<ul>
|
||||||
{{ range $k, $p := .Pages }}
|
{{ range $k, $p := .Pages }}
|
||||||
{{ if gt $k 0 }}
|
{{ if gt $k 0 }}
|
||||||
|
@ -42,6 +43,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
{{ end }}
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue