Skip to content

Commit

Permalink
feat: enable 'pre' property in menu config file (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaestevan committed Apr 29, 2023
1 parent 2797cba commit 6deb26e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<div class="optionswitch__triangle"></div>
<ul class="optionswitch__list">
{{ range $menuItem.Children }}
<li class="optionswitch__list-item">
<li class="optionswitch__list-item">{{ .Pre }}
<a
href="{{ .URL }}"
{{ if strings.HasPrefix .URL "http" }}
Expand All @@ -52,7 +52,7 @@
</div>
</li>
{{ else }}
<li class="nav__list-item">
<li class="nav__list-item">{{ .Pre }}
<a
{{ if $active }}
class="nav__link--active"
Expand Down

0 comments on commit 6deb26e

Please sign in to comment.