🚧 optimization other settings.
This commit is contained in:
parent
dafea2e479
commit
ec5d8419e1
@ -13,7 +13,6 @@ if (!window.NexT) window.NexT = {};
|
|||||||
"copybtn" : {{ .Site.Params.codeblock.copyBtn }},
|
"copybtn" : {{ .Site.Params.codeblock.copyBtn }},
|
||||||
"bookmark" : {{ .Site.Params.bookmark | jsonify }},
|
"bookmark" : {{ .Site.Params.bookmark | jsonify }},
|
||||||
"comments" : {{ .Site.Params.comments | jsonify }},
|
"comments" : {{ .Site.Params.comments | jsonify }},
|
||||||
"mediumzoom" : {{ .Site.Params.mediumzoom }},
|
|
||||||
"lazyload" : {{ .Site.Params.lazyload }},
|
"lazyload" : {{ .Site.Params.lazyload }},
|
||||||
"pangu" : {{ .Site.Params.pangu }},
|
"pangu" : {{ .Site.Params.pangu }},
|
||||||
"stickytabs" : {{ .Site.Params.tabs.sticky }},
|
"stickytabs" : {{ .Site.Params.tabs.sticky }},
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
# 本地快速启动脚本
|
||||||
|
# Quick start in local.
|
||||||
|
|
||||||
next() {
|
next() {
|
||||||
cat << EOT
|
cat << EOT
|
||||||
@ -12,7 +13,7 @@ next() {
|
|||||||
╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═╝
|
╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═╝
|
||||||
========================================
|
========================================
|
||||||
NexT version $1
|
NexT version $1
|
||||||
Documentation: https://hugo-next.js.org
|
Documentation: https://hugo-next.eu.org
|
||||||
========================================
|
========================================
|
||||||
EOT
|
EOT
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{{- $extURL := .Page.Site.Params.exturl.enable }}
|
{{- $extURL := and .Page.Site.Params.exturl.enable (strings.HasPrefix .Destination "http") }}
|
||||||
<a href="{{ .Destination | safeURL }}" title="{{ .Text }}" {{ if strings.HasPrefix .Destination "http" }}rel="noopener external nofollow noreferrer" target="_blank"{{ end }} {{ if $extURL }}class=" exturl"{{ end }}>
|
<a href="{{ .Destination | safeURL }}" title="{{ .Text }}" {{ if $extURL }}rel="noopener external nofollow noreferrer" target="_blank" class=" exturl"{{ end }}>
|
||||||
{{ .Text | safeHTML }}
|
{{ .Text | safeHTML }}
|
||||||
{{- if and $extURL .Page.Site.Params.exturl.icon }}
|
{{- if and $extURL .Page.Site.Params.exturl.icon }}
|
||||||
<i class="fa fa-external-link-alt"></i>
|
<i class="fa fa-external-link-alt"></i>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{{- with .Site.Params.giscus }}
|
{{- with .Site.Params.giscus }}
|
||||||
|
{{ printf "%t" (isset . "repo") }}
|
||||||
<div class="giscus" style="position: relative;"></div>
|
<div class="giscus" style="position: relative;"></div>
|
||||||
<script src="https://giscus.app/client.js"
|
<script src="https://giscus.app/client.js"
|
||||||
data-repo="{{ .repo }}"
|
data-repo="{{ .repo }}"
|
||||||
|
@ -48,8 +48,8 @@
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
-->
|
-->
|
||||||
*/}}
|
*/}}
|
||||||
{{- if .Site.Params.busuanzi.enable }}
|
{{- with .Site.Params.busuanzi }}
|
||||||
{{ with .Site.Params.busuanzi }}
|
{{- if .enable }}
|
||||||
<div class="busuanzi-count">
|
<div class="busuanzi-count">
|
||||||
{{- if .visitors }}
|
{{- if .visitors }}
|
||||||
<span class="post-meta-item" id="busuanzi_container_site_uv" title="{{ T "VisitorsLabel" }}">
|
<span class="post-meta-item" id="busuanzi_container_site_uv" title="{{ T "VisitorsLabel" }}">
|
||||||
@ -76,12 +76,12 @@
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if $ft.powered }}
|
{{- if $ft.powered }}
|
||||||
<div class="powered-by">
|
<div class="powered-by">
|
||||||
{{ $pb := printf "<a href='https://gohugo.io' target='_blank'>Hugo</a> & <a href='https://github.com/hugo-next' target='_blank'>NexT.%s</a>" .Site.Params.scheme }}
|
{{ $pb := printf "<a href='https://gohugo.io' target='_blank'>Hugo</a> & <a href='https://github.com/hugo-next/hugo-theme-next' target='_blank'>Hugo NexT.%s</a>" .Site.Params.scheme }}
|
||||||
{{- printf (T "FooterPowerby") $pb | safeHTML }}
|
{{- printf (T "FooterPowerby") $pb | safeHTML }}
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if $ft.beian.enable }}
|
|
||||||
{{- with $ft.beian }}
|
{{- with $ft.beian }}
|
||||||
|
{{- if .enable }}
|
||||||
<div class="beian">
|
<div class="beian">
|
||||||
<a href="https://beian.miit.gov.cn" target="_blank">{{ .icp }}</a>
|
<a href="https://beian.miit.gov.cn" target="_blank">{{ .icp }}</a>
|
||||||
<img src="/imgs/gongan.png" alt="{{ .provinceAbbr }}公网安备">
|
<img src="/imgs/gongan.png" alt="{{ .provinceAbbr }}公网安备">
|
||||||
@ -90,6 +90,7 @@
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with $ft.vendors }}
|
{{- with $ft.vendors }}
|
||||||
|
{{ if .enable }}
|
||||||
<div class="vendors-list">
|
<div class="vendors-list">
|
||||||
{{- range .list }}
|
{{- range .list }}
|
||||||
<a target="_blank" href="{{ .link }}" title="{{ .name }}">
|
<a target="_blank" href="{{ .link }}" title="{{ .name }}">
|
||||||
@ -102,4 +103,5 @@
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
<span>{{ .title }}</span>
|
<span>{{ .title }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
{{- T "RewardDonate" -}}
|
{{- T "RewardDonate" -}}
|
||||||
</button>
|
</button>
|
||||||
<div class="post-reward">
|
<div class="post-reward">
|
||||||
{{- range $name,$img := $.Site.Params.reward }}
|
{{- range $name,$img := .reward }}
|
||||||
{{- $fw := substr $name 0 1 }}
|
{{- $fw := substr $name 0 1 }}
|
||||||
{{- $pay := replace $name $fw ($fw | upper) 1 }}
|
{{- $pay := replace $name $fw ($fw | upper) 1 }}
|
||||||
{{- $payName := T (printf "Reward%s" $pay) }}
|
{{- $payName := T (printf "Reward%s" $pay) }}
|
||||||
|
Loading…
Reference in New Issue
Block a user