From 9726b8d80658c6cf3c092c21484548aba6f64a68 Mon Sep 17 00:00:00 2001 From: panr Date: Thu, 13 Apr 2023 23:24:56 +0200 Subject: [PATCH] Allow target="_blank" with .Params.NewTab set to true This commit belongs to the PR: https://github.com/panr/hugo-theme-terminal/pull/370 by @matidfk --- layouts/partials/menu.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 41b0d1c..33c9a89 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -3,7 +3,7 @@ {{ if or $.Site.Params.showMenuItems ( eq .Site.Params.showMenuItems 0 ) }} {{ range first $.Site.Params.showMenuItems $.Site.Menus.main }} {{ if not .HasChildren }} -
  • {{ .Name }}
  • +
  • {{ .Name }}
  • {{ end }} {{ end }} {{ if gt (len $.Site.Menus.main) $.Site.Params.showMenuItems }} @@ -14,7 +14,7 @@ @@ -25,7 +25,7 @@ {{ else }} {{ range $.Site.Menus.main }} {{ if not .HasChildren }} -
  • {{ .Name }}
  • +
  • {{ .Name }}
  • {{ end }} {{ end }} {{ end }}