From 6761dd182e683a2b59c2dc63fcaeef9d40fa61be Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sat, 28 May 2022 17:54:18 +0200 Subject: Help linter --- layouts/partials/sidebar.html | 2 ++ layouts/shortcodes/img.html | 2 ++ layouts/shortcodes/link.html | 2 ++ 3 files changed, 6 insertions(+) (limited to 'layouts') diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index e3da92d..2cba48e 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -14,12 +14,14 @@ {{ $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 -}} + {{ end }} {{/* TODO: Add hypothesis support */}} diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index 4978358..c58d63a 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -1,5 +1,7 @@ + {{ . }} + diff --git a/layouts/shortcodes/link.html b/layouts/shortcodes/link.html index 3778d83..ff84a6c 100644 --- a/layouts/shortcodes/link.html +++ b/layouts/shortcodes/link.html @@ -1,3 +1,4 @@ + {{- .Inner -}} + -- cgit v1.2.3