diff --git a/assets/css/_custom.scss b/assets/css/_custom.scss index 591a1e5..9482d55 100644 --- a/assets/css/_custom.scss +++ b/assets/css/_custom.scss @@ -3,7 +3,7 @@ // ============================== // You can override the variables in _variables.scss to customize the style -.comments-container { +.post-comment { position: relative; width: 100%; max-width: 780px; diff --git a/layouts/_default/single.html b/layouts/_default/single.html index fbfa1d5..9fcb54f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,7 +4,7 @@

{{ .Title }}

- Written by with ♥ + Written by with ♥ on @@ -23,7 +23,7 @@ | - + {{ .Site.Params.gitalk.countSign }}
@@ -44,7 +44,7 @@ {{ end }} - + {{ $reAltIn := "\"([^\"]+)?\"" }} {{ $reAltOut := ( printf "
\"$2\"
$2
" $cdn_url ) }} {{ $altContent := .Content | replaceRE $reAltIn $reAltOut | safeHTML }} @@ -57,31 +57,31 @@
- {{ with .Site.Params.author }} + {{ with .Site.Params.author }} {{ end }} - - {{ with .Permalink }} + + {{ with .Permalink }} {{ end }} - {{ with .Site.Params.license }} + {{ with .Site.Params.license }} {{ end }}
- +
{{ with .Params.tags }}
- Tag(s): + Tag(s): {{ range . }} #{{.}} @@ -89,7 +89,7 @@
{{ end }}
- back · + back · home
@@ -97,14 +97,10 @@
{{ if .PrevInSection }} - {{ end }} + {{ end }} {{ if .NextInSection }} {{ end }}
- -
- -
{{- end }} diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index abfc5ab..26a9876 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -1,5 +1,5 @@ {{ if and .IsPage (ne .Params.comment false) }} -
+
{{- if and .Site.Params.disqus.name .Site.Params.disqus.lazy -}}
显示 Disqus 评论
{{- end -}} @@ -17,7 +17,7 @@ clientSecret: '{{ .Site.Params.gitalk.clientSecret }}', repo: '{{ .Site.Params.gitalk.repo }}', owner: '{{ .Site.Params.gitalk.owner }}', - admin: ['{{ .Site.Params.gitalk.owner }}'], + admin: ['{{ .Site.Params.gitalk.admin }}'], body: decodeURI(location.href) }); gitalk.render('gitalk-container'); diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index dc0bc1b..f2416e6 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -5,16 +5,16 @@ {{.}} - {{ now.Year }} {{ end }} - + {{ if .Site.Params.author }} - {{ .Site.Params.author }} | + {{ .Site.Params.author }} | {{ end }} {{ with .Site.Params.beian }} {{ . }} | {{ end }} - Powered by Hugo & LeaveIt + Powered by Hugo & LeaveIt
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 2e08a5f..bdb2395 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -39,6 +39,6 @@ {{ if eq ( getenv "HUGO_ENV" ) "production" }} {{ with .Site.Params.cdn_url }} {{ $cdn_url = .}} - {{ end }} + {{ end }} {{ end }} {{ .Scratch.Set "cdn_url" $cdn_url }} diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index 4703e72..263d754 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -1,4 +1,3 @@ -

{{ T "toc" }}

{{ $globalAutoCollapseToc := .Site.Params.autoCollapseToc | default false }} @@ -6,3 +5,34 @@ {{.TableOfContents}}
+ + \ No newline at end of file