From 7d16ffbc14e09969cb8474e34f4c616de9ceec14 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Wed, 13 Jul 2022 09:27:08 +0200 Subject: Fix indents --- layouts/partials/sidebar.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 2cba48e..41652db 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -14,14 +14,12 @@ {{ $active := or ($current.IsMenuCurrent "main" .) ($current.HasMenuCurrent "main" .) }} {{ $active = or $active (eq .URL $current.RelPermalink) }} {{ $active = or $active (eq .Name $current.Title) }} - - {{- print .Name | safeHTML -}} + href="{{ .URL }}" + id="menu-main-{{ .Identifier }}" + {{- if eq .Params.external true }} target="_blank" rel="noopener noreferrer"{{ end }}> + {{- print .Name | safeHTML -}} - {{ end }} {{/* TODO: Add hypothesis support */}} -- cgit v1.2.3