diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 03e64c27..eee4a1c9 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -626,7 +626,7 @@ enableEmoji = true icp = "" # license info (HTML format is supported) # 许可协议信息 (支持 HTML 格式) - license = 'CC BY-NC 4.0' + license = 'CC BY-NC 4.0' # Section (all posts) page config # Section (所有文章) 页面配置 @@ -687,7 +687,7 @@ enableEmoji = true fontawesome = true # license info (HTML format is supported) # 许可协议信息(支持 HTML 格式) - license = 'CC BY-NC 4.0' + license = 'CC BY-NC 4.0' # whether to show link to Raw Markdown content of the content # 是否显示原始 Markdown 文档内容的链接 linkToMarkdown = true diff --git a/exampleSite/content/posts/theme-documentation-basics/index.en.md b/exampleSite/content/posts/theme-documentation-basics/index.en.md index 7293e73c..ed2f7628 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.en.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.en.md @@ -313,7 +313,7 @@ Please open the code block below to view the complete sample configuration :(fa- # ICP info only in China (HTML format is supported) icp = "" # license info (HTML format is supported) - license = 'CC BY-NC 4.0' + license = 'CC BY-NC 4.0' # {{< version 0.2.0 >}} Section (all posts) page config [params.section] @@ -463,7 +463,7 @@ Please open the code block below to view the complete sample configuration :(fa- # {{< version 0.2.0 >}} whether to enable the fontawesome extended syntax fontawesome = true # license info (HTML format is supported) - license = 'CC BY-NC 4.0' + license = 'CC BY-NC 4.0' # whether to show link to Raw Markdown content of the content linkToMarkdown = true # {{< version 0.2.4 >}} whether to show the full text content in RSS diff --git a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md index f81c16ba..a8708b6e 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md @@ -315,7 +315,7 @@ hugo # {{< version 0.2.12 changed >}} ICP 备案信息,仅在中国使用(支持 HTML 格式) icp = "" # 许可协议信息(支持 HTML 格式) - license = 'CC BY-NC 4.0' + license = 'CC BY-NC 4.0' # {{< version 0.2.0 >}} Section(所有文章)页面配置 [params.section] @@ -465,7 +465,7 @@ hugo # {{< version 0.2.0 >}} 是否使用 fontawesome 扩展语法 fontawesome = true # 许可协议信息(支持 HTML 格式) - license = 'CC BY-NC 4.0' + license = 'CC BY-NC 4.0' # 是否在文章页面显示原始 Markdown 文档链接 linkToMarkdown = true # {{< version 0.2.4 >}} 是否在 RSS 中显示全文内容 diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index fc392722..1ddd416c 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -11,8 +11,8 @@ {{- /* Hugo and FixIt */ -}} {{- if ne .Site.Params.footer.hugo false -}}
{{- end -}} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 1b1520c5..f743e0e1 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -52,7 +52,7 @@ class="menu-link" href="{{ $url }}" {{ with .Title }}title="{{ . }}"{{ end }} - {{ if (urls.Parse $url).Host }}rel="noopener noreffer" target="_blank"{{ end }} + {{ if (urls.Parse $url).Host }}rel="noopener noreferrer" target="_blank"{{ end }} > {{- with .Pre -}}{{- . | safeHTML }} {{ end }}{{ .Name }}{{ with .Post }} {{ . | safeHTML -}}{{- end -}} @@ -71,7 +71,7 @@ class="menu-link" href="{{ $url }}" {{ with .Title }}title="{{ . }}"{{ end }} - {{ if (urls.Parse $url).Host }}rel="noopener noreffer" target="_blank"{{ end }} + {{ if (urls.Parse $url).Host }}rel="noopener noreferrer" target="_blank"{{ end }} > {{- with .Pre -}}{{- . | safeHTML }} {{ end }}{{ .Name }}{{ with .Post }} {{ . | safeHTML -}}{{- end -}} @@ -219,7 +219,7 @@ class="menu-link" href="{{ $url }}" {{ with .Title }}title="{{ . }}"{{ end }} - {{ if (urls.Parse $url).Host }}rel="noopener noreffer" target="_blank"{{ end }} + {{ if (urls.Parse $url).Host }}rel="noopener noreferrer" target="_blank"{{ end }} > {{- with .Pre -}}{{- . | safeHTML }} {{ end }}{{ .Name }}{{ with .Post }} {{ . | safeHTML -}}{{- end -}} @@ -238,7 +238,7 @@ class="menu-link" href="{{ $url }}" {{ with .Title }}title="{{ . }}"{{ end }} - {{ if (urls.Parse $url).Host }}rel="noopener noreffer" target="_blank"{{ end }} + {{ if (urls.Parse $url).Host }}rel="noopener noreferrer" target="_blank"{{ end }} > {{- with .Pre -}}{{- . | safeHTML }} {{ end }}{{ .Name }}{{ with .Post }} {{ . | safeHTML -}}{{- end -}} @@ -250,7 +250,7 @@ class="menu-link" href="{{ $url }}" {{ with .Title }}title="{{ . }}"{{ end }} - {{ if (urls.Parse $url).Host }}rel="noopener noreffer" target="_blank"{{ end }} + {{ if (urls.Parse $url).Host }}rel="noopener noreferrer" target="_blank"{{ end }} > {{- with .Pre -}}{{- . | safeHTML }} {{ end }}{{ .Name }}{{ with .Post }} {{ . | safeHTML -}}{{- end -}} diff --git a/layouts/partials/home/profile.html b/layouts/partials/home/profile.html index d139b518..3cb43454 100644 --- a/layouts/partials/home/profile.html +++ b/layouts/partials/home/profile.html @@ -19,7 +19,7 @@ {{- with .Page -}} {{- $url = .RelPermalink -}} {{- end -}} - + {{- dict "Src" $avatar "Alt" $.Site.Author.name | partial "plugin/image.html" -}} {{- else -}} diff --git a/layouts/partials/plugin/link.html b/layouts/partials/plugin/link.html index 6fcc1323..f562e1e6 100644 --- a/layouts/partials/plugin/link.html +++ b/layouts/partials/plugin/link.html @@ -10,7 +10,7 @@ title="{{ . }}" {{ end }} {{ if (urls.Parse .Destination).Host | or .Newtab }} - {{ $rel = "external nofollow noopener noreffer" }} + {{ $rel = "external nofollow noopener noreferrer" }} {{ $external = true }} target="_blank" {{ end }} diff --git a/layouts/partials/single/comment.html b/layouts/partials/single/comment.html index c515dca5..eb2bcc68 100644 --- a/layouts/partials/single/comment.html +++ b/layouts/partials/single/comment.html @@ -49,7 +49,7 @@ {{- $commentConfig = dict "lightgallery" . | dict "artalk" | merge $commentConfig -}} {{- end -}} {{- end -}} @@ -60,7 +60,7 @@ {{- $source := printf "https://%v.disqus.com/embed.js" $disqus.shortname -}} {{- dict "Source" $source "Defer" true | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}} {{- end -}} @@ -74,7 +74,7 @@ {{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}} {{- $commentConfig = dict "id" .Date "title" .Title "clientID" $gitalk.clientId "clientSecret" $gitalk.clientSecret "repo" $gitalk.repo "owner" $gitalk.owner "admin" (slice $gitalk.owner) | dict "gitalk" | merge $commentConfig -}} {{- end -}} @@ -101,7 +101,7 @@ {{- end -}} {{- $commentConfig = $valine.emoji | default "google.yml" | printf "data/emoji/%v" | resources.Get | transform.Unmarshal | dict "valine" | merge $commentConfig -}} {{- end -}} @@ -145,7 +145,7 @@ {{- $commentConfig = dict "comment" . | dict "waline" | merge $commentConfig -}} {{- end -}} {{- end -}} @@ -162,7 +162,7 @@ {{- $source := printf "https://connect.facebook.net/%v/sdk.js#xfbml=1&version=v5.0&appId=%v&autoLogAppEvents=1" ($facebook.languageCode | default (T "facebookLanguageCode")) $facebook.appId -}} {{- dict "Source" $source "Defer" true | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}} {{- end -}} @@ -189,7 +189,7 @@ {{- end -}} {{- dict "Source" "https://comments.app/js/widget.js?2" "Defer" true "Attr" $attr | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}} {{- end -}} @@ -199,7 +199,7 @@ {{- dict "Source" "https://cdn.commento.io/js/commento.js" "Defer" true | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}} {{- end -}} @@ -213,7 +213,7 @@ {{- $commentConfig = $utterances.lightTheme | default "github-light" | dict "lightTheme" | dict "utterances" | merge $commentConfig -}} {{- $commentConfig = $utterances.darkTheme | default "github-dark" | dict "darkTheme" | dict "utterances" | merge $commentConfig -}} {{- end -}} @@ -237,7 +237,7 @@ {{- $commentConfig = dict "lightgallery" . | dict "twikoo" | merge $commentConfig -}} {{- end -}} {{- end -}} @@ -267,7 +267,7 @@ defer > {{- end -}} diff --git a/layouts/partials/single/footer.html b/layouts/partials/single/footer.html index e9de8ca6..89cb03d7 100644 --- a/layouts/partials/single/footer.html +++ b/layouts/partials/single/footer.html @@ -9,7 +9,7 @@ {{- dict "Date" . | T "updatedOnDate" -}} {{- if $.Site.Params.gitRepo -}} {{- with $.GitInfo -}} - + {{- .AbbreviatedHash -}} {{- end -}} diff --git a/layouts/shortcodes/version.html b/layouts/shortcodes/version.html index d11e84f7..f231fc13 100644 --- a/layouts/shortcodes/version.html +++ b/layouts/shortcodes/version.html @@ -8,6 +8,6 @@ {{- $resource := resources.Get "svg/version.template.svg" -}} {{- $resource = $resource | resources.ExecuteAsTemplate $path (dict "version" $version "label" $label "color" $color) | minify -}} {{- $alt := printf "FixIt %v | %v" $label $version -}} - + {{- dict "Src" $resource.RelPermalink "Alt" $alt "Class" "version" | partial "plugin/image.html" -}} \ No newline at end of file diff --git a/src/js/theme.js b/src/js/theme.js index 1c1e1e82..cf1f6d4b 100644 --- a/src/js/theme.js +++ b/src/js/theme.js @@ -342,7 +342,7 @@ class FixIt { icon: '', href: 'https://lunrjs.com/' }; - return ``; + return ``; } } }