Skip to content

Commit

Permalink
Remove iferr part from template
Browse files Browse the repository at this point in the history
  • Loading branch information
abtris committed Dec 23, 2024
1 parent 890fd57 commit b72ef91
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions themes/academia/layouts/partials/docs_sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
{{ $baseExcluded := strings.TrimLeft site.BaseURL .Permalink }}
{{ $menu_name := index (split $baseExcluded "/") 1 }}

{{ if not (index site.Menus $menu_name) }}
{{ errorf "Please define menu items named `menu: %s:` in your %s front matter or define `[[menu.%s]]` in `config/default/menus.toml`. See https://sourcethemes.com/academic/docs/managing-content/#menus" $menu_name .Path $menu_name }}
{{ end }}

<form class="docs-search d-flex align-items-center">
<button class="btn docs-toggle d-md-none p-0 mr-3" type="button" data-toggle="collapse" data-target="#docs-nav" aria-controls="docs-nav" aria-expanded="false" aria-label="Toggle section navigation">
<span><i class="fas fa-bars"></i></span>
Expand Down

0 comments on commit b72ef91

Please sign in to comment.