Skip to content

Commit

Permalink
Minor fixes and deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
averi committed Oct 16, 2024
1 parent f23a0f0 commit b11de15
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion themes/lanyon-hugo/layouts/partials/default_foot.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
</div>

<label for="sidebar-checkbox" class="sidebar-toggle"></label>
{{ template "_internal/google_analytics_async.html" . }}
</body>
</html>
2 changes: 1 addition & 1 deletion themes/lanyon-hugo/layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<nav class="sidebar-nav">
<a class="sidebar-nav-item {{ if .IsHome }} active {{ end }}" href="/">Home</a>
<a class="sidebar-nav-item {{ if eq .RelPermalink "/post/" }} active {{ end }}" href="/post">Posts</a>
<a class="sidebar-nav-item {{ if eq .RelPermalink "/post/" }} active {{ end }}" href="/posts">Posts</a>
{{- $currentPage := . }}
{{- range .Site.Menus.main -}}
<a class="sidebar-nav-item{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} active{{end}}" href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a>
Expand Down

0 comments on commit b11de15

Please sign in to comment.