Skip to content

Commit

Permalink
fix: compatibility with hugo 0.128.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Jul 10, 2024
1 parent 33ecefb commit 72ac6d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ summaryLength = 300
weight = 2
[[menu.main]]
name = '✏️ Articles'
pageRef = '/articles'
pageRef = '/categories/articles'
weight = 3
[[menu.main]]
name = '📸 Photos'
pageRef = '/photos'
pageRef = '/categories/photos'
weight = 4
[[menu.main]]
name = '📖 Guestbook'
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/base/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
<nav id='navbar' class='fw'>
<label for='toggler'>🍔 Menu</label>
{{ range .Site.Menus.main -}}
<a href='{{ .Page.RelPermalink }}' class='nl'{{ if $.IsMenuCurrent .Menu . }} aria-current='page'{{ end }}>{{ .Name }}</a>
<a href='{{ ($.Site.GetPage .PageRef).RelPermalink }}' class='nl'{{ if $.IsMenuCurrent .Menu . }} aria-current='page'{{ end }}>{{ .Name }}</a>
{{ end }}
</nav>

0 comments on commit 72ac6d4

Please sign in to comment.