diff options
author | Dillon <dillonzq@outlook.com> | 2022-06-19 18:06:34 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2022-06-19 18:06:52 +0300 |
commit | 96c582fac1e928ca79a069ae2c6c623a63fdaf0a (patch) | |
tree | cb94dcf52708acb5b173a1f13ef541b3bd9dab62 | |
parent | d02d3216daffa10ae57da943b935bdd1286db0d2 (diff) |
fix: a tag rel attire space
-rw-r--r-- | layouts/partials/plugin/a.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/plugin/a.html b/layouts/partials/plugin/a.html index ceaefc62..8dccaa70 100644 --- a/layouts/partials/plugin/a.html +++ b/layouts/partials/plugin/a.html @@ -1,5 +1,5 @@ {{- $rel := "" -}} -<a href="{{ .Destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if (urls.Parse .Destination).Host | or .Newtab }}{{ $rel = "noopener noreffer" }} target="_blank"{{ end }} rel="{{ $rel }}{{ with .Rel }} {{ . }}{{ end }}"{{ with .Class }} class="{{ . }}"{{ end }}> +<a href="{{ .Destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if (urls.Parse .Destination).Host | or .Newtab }}{{ $rel = "noopener noreffer " }} target="_blank"{{ end }} rel="{{ $rel }}{{ with .Rel }}{{ . }}{{ end }}"{{ with .Class }} class="{{ . }}"{{ end }}> {{- with .Icon -}} {{- partial "plugin/icon.html" . -}} {{- end -}} |