From b824cb31723f5abdbc546d1d51ef71e280f192c3 Mon Sep 17 00:00:00 2001 From: matidfk <72168331+matidfk@users.noreply.github.com> Date: Sun, 25 Sep 2022 13:19:32 +0100 Subject: [PATCH] Allow target="_blank" with .Params.NewTab set to true example: ``` [[menu.main]] identifier = "discord" name = "Discord" url = "https://discord.gg/..." [menu.main.params] newTab = true ``` --- layouts/partials/menu.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 17d39c8..e33ea4b 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 }} @@ -13,7 +13,7 @@ @@ -22,7 +22,7 @@ {{ else }} {{ range $.Site.Menus.main }} {{ if not .HasChildren }} -
  • {{ .Name }}
  • +
  • {{ .Name }}
  • {{ end }} {{ end }} {{ end }} @@ -45,7 +45,7 @@