diff --git a/i18n/en.toml b/i18n/en.toml index ef58201b..72c6641f 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -28,6 +28,11 @@ other = "Categories" other = "More" # === Pagination === +# === partials/comments.html === +[valineLang] +other = "en" +# === partials/comments.html === + # === partials/footer.html === [powered] other = "Powered by %s" diff --git a/i18n/zh.toml b/i18n/zh.toml index b013145b..6eba84b5 100644 --- a/i18n/zh.toml +++ b/i18n/zh.toml @@ -28,6 +28,11 @@ other = "分类" other = "更多" # === Pagination === +# === partials/comments.html === +[valineLang] +other = "zh-cn" +# === partials/comments.html === + # === partials/footer.html === [powered] other = "由 %s 强力驱动" diff --git a/images/Apple-Devices-Preview.png b/images/Apple-Devices-Preview.png index d1bd34c9..0e163889 100644 Binary files a/images/Apple-Devices-Preview.png and b/images/Apple-Devices-Preview.png differ diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index adf1292b..0a19b5e7 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -57,9 +57,7 @@ {{ .Site.Params.cdn.valine_js | safeHTML }} {{ else }} {{- $res := resources.Get "js/lib/valine/Valine.min.js" | resources.Minify -}} - {{ .Site.Params.cdn.fontawesome_free_css | safeHTML }} - {{ .Site.Params.cdn.fontawesome_free_css | safeHTML }} - + {{ end }} {{- end -}} diff --git a/layouts/partials/paginator.html b/layouts/partials/paginator.html index 3e9da84a..6b23e313 100644 --- a/layouts/partials/paginator.html +++ b/layouts/partials/paginator.html @@ -1,31 +1,26 @@ -{{ $pag := $.Paginator }} - -{{ if gt $pag.TotalPages 1 }} +{{ if gt $.paginator.TotalPages 1 -}} -{{ end }} \ No newline at end of file +{{- end }} \ No newline at end of file