From f65aca556dc8e41e3ea64a2144e0c489ca519c77 Mon Sep 17 00:00:00 2001 From: Todd Zhou <89148407+ToddZZF@users.noreply.github.com> Date: Fri, 1 Nov 2024 18:12:14 +0800 Subject: [PATCH] fix: typo in ref="noreferrer" (#489) --- layouts/partials/navbar.html | 4 ++-- layouts/partials/sidebar.html | 2 +- layouts/partials/toc.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index 04adb27e..3a6bcbbb 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -42,7 +42,7 @@ {{/* Display icon menu item */}} {{- if .Params.icon -}} - {{- $rel := cond (eq .Params.icon "mastodon") "noreferer me" "noreferer" }} + {{- $rel := cond (eq .Params.icon "mastodon") "noreferrer me" "noreferrer" }} {{- partial "utils/icon.html" (dict "name" .Params.icon "attributes" "height=24") -}} {{ or (T .Identifier) .Name | safeHTML }} @@ -53,7 +53,7 @@ {{ or (T .Identifier) .Name | safeHTML }} diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index e00e4315..6698f106 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -160,7 +160,7 @@ hx-text-gray-500 hover:hx-bg-gray-100 hover:hx-text-gray-900 contrast-more:hx-border contrast-more:hx-border-transparent contrast-more:hx-text-gray-900 contrast-more:hover:hx-border-gray-900 dark:hx-text-neutral-400 dark:hover:hx-bg-primary-100/5 dark:hover:hx-text-gray-50 contrast-more:dark:hx-text-gray-50 contrast-more:dark:hover:hx-border-gray-50 {{- end -}}" href="{{ .link }}" - {{ if $external }}target="_blank" rel="noreferer"{{ end }} + {{ if $external }}target="_blank" rel="noreferrer"{{ end }} > {{- .title -}} {{- with .context }} diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index 02cf98da..ffefe147 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -38,7 +38,7 @@ {{- $editURL = urls.JoinPath $editURL $sourceDir $path -}} {{- end -}} {{- end -}} - {{ $editThisPage }} + {{ $editThisPage }} {{- end -}} {{/* Scroll To Top */}}