mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 10:50: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 }}
|
||||
<div id="top-github-link">
|
||||
<a class="github-link" href="{{ $Site.Params.editURL }}{{ $File.Dir }}{{ $File.LogicalName }}" target="blank">
|
||||
<i class="fa fa-github-square"></i>
|
||||
edit this page
|
||||
<i class="fa fa-code-fork"></i>
|
||||
Edit this page
|
||||
</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
{{ $first.Title }}
|
||||
</span>
|
||||
</a>
|
||||
{{ if gt .Pages.Len 1}}
|
||||
<ul>
|
||||
{{ range $k, $p := .Pages }}
|
||||
{{ if gt $k 0 }}
|
||||
|
@ -42,6 +43,7 @@
|
|||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue