diff options
| -rw-r--r-- | layouts/partials/sidebar.html | 2 | ||||
| -rw-r--r-- | layouts/shortcodes/img.html | 2 | ||||
| -rw-r--r-- | layouts/shortcodes/link.html | 2 |
3 files changed, 6 insertions, 0 deletions
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) }} + <!-- editorconfig-checker-disable --> <a class="sidebar-nav-item{{ if $active }} active{{ end }}" href="{{ .URL }}" id="menu-main-{{ .Identifier }}" {{- if eq .Params.external true }} target="_blank" rel="noopener noreferrer"{{ end }}> {{- print .Name | safeHTML -}} </a> + <!-- editorconfig-checker-enable --> {{ 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 @@ +<!-- editorconfig-checker-disable --> <img src="{{ .Get "src" }}" {{- with .Get "alt" }} alt="{{ . }}"{{ end }} {{- with .Get "width" }} width="{{ . }}"{{ end }} {{- with .Get "height" }} height="{{ . }}"{{ end }} {{- with .Get "class" }} class="{{ . }}"{{ end }}> +<!-- editorconfig-checker-enable --> 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 @@ +<!-- editorconfig-checker-disable --> <a href="{{ .Get "src" | absURL }}" {{- with .Get "hreflang" }} hreflang="{{ . }}"{{ end }} {{- with .Get "title" }} title="{{ . }}"{{ end }} @@ -6,3 +7,4 @@ {{- with .Get "rel" }} rel="{{ . }}"{{ end }}> {{- .Inner -}} </a> +<!-- editorconfig-checker-enable --> |
