diff --git a/assets/js/config.js b/assets/js/config.js index e67c69c..cde3ea8 100644 --- a/assets/js/config.js +++ b/assets/js/config.js @@ -13,7 +13,6 @@ if (!window.NexT) window.NexT = {}; "copybtn" : {{ .Site.Params.codeblock.copyBtn }}, "bookmark" : {{ .Site.Params.bookmark | jsonify }}, "comments" : {{ .Site.Params.comments | jsonify }}, - "mediumzoom" : {{ .Site.Params.mediumzoom }}, "lazyload" : {{ .Site.Params.lazyload }}, "pangu" : {{ .Site.Params.pangu }}, "stickytabs" : {{ .Site.Params.tabs.sticky }}, diff --git a/exampleSite/start.sh b/exampleSite/start.sh index 806fa5f..c917278 100644 --- a/exampleSite/start.sh +++ b/exampleSite/start.sh @@ -1,5 +1,6 @@ #!/bin/bash -# +# 本地快速启动脚本 +# Quick start in local. next() { cat << EOT @@ -12,7 +13,7 @@ next() { ╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═╝ ======================================== NexT version $1 -Documentation: https://hugo-next.js.org +Documentation: https://hugo-next.eu.org ======================================== EOT } diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index 8b66301..e4603f8 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1,5 +1,5 @@ -{{- $extURL := .Page.Site.Params.exturl.enable }} - +{{- $extURL := and .Page.Site.Params.exturl.enable (strings.HasPrefix .Destination "http") }} + {{ .Text | safeHTML }} {{- if and $extURL .Page.Site.Params.exturl.icon }} diff --git a/layouts/partials/_thirdparty/comment/giscus.html b/layouts/partials/_thirdparty/comment/giscus.html index d1b476f..706ef23 100644 --- a/layouts/partials/_thirdparty/comment/giscus.html +++ b/layouts/partials/_thirdparty/comment/giscus.html @@ -1,4 +1,5 @@ {{- with .Site.Params.giscus }} +{{ printf "%t" (isset . "repo") }}