From a81c5ae24f4d66116fed9d614fcb39a8ca5f3128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9zar=20Augusto?= <32869222+cizordj@users.noreply.github.com> Date: Wed, 22 Mar 2023 20:22:42 -0300 Subject: [PATCH 1/2] Remove duplicated robots tag Closes #446 --- layouts/partials/head.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 5a4f31e..9352d88 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -2,11 +2,12 @@ - {{ if .Params.noindex }} {{ if or (eq (.Param "noindex") true) (eq (.Param "noindex") "true") }} {{ end }} +{{ else }} + {{ end }} From 9726b8d80658c6cf3c092c21484548aba6f64a68 Mon Sep 17 00:00:00 2001 From: panr Date: Thu, 13 Apr 2023 23:24:56 +0200 Subject: [PATCH 2/2] 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 }}