diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-28 17:54:18 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-28 17:54:18 +0200 |
| commit | 6761dd182e683a2b59c2dc63fcaeef9d40fa61be (patch) | |
| tree | ef31c6d8dcddc2909de1dd27afe10628c0337d02 /layouts/shortcodes | |
| parent | 3ffae027ef6f7a6c3b18d72a4ea65f0a15ddcfe6 (diff) | |
| download | gohugo-theme-ed-6761dd182e683a2b59c2dc63fcaeef9d40fa61be.tar.gz | |
Help linter
Diffstat (limited to 'layouts/shortcodes')
| -rw-r--r-- | layouts/shortcodes/img.html | 2 | ||||
| -rw-r--r-- | layouts/shortcodes/link.html | 2 |
2 files changed, 4 insertions, 0 deletions
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 --> |
