Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ThemeTony/hugo-theme-tony.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorso1ve <nn_201312@163.com>2021-08-08 09:42:13 +0300
committerso1ve <nn_201312@163.com>2021-08-08 09:42:13 +0300
commitdf63a0e9a23a54b30f88df4be560f0e7e3cf03d8 (patch)
tree19cb9ac49c12fbdfce121b1d5250f19196e37043
parentc8f3bbc976560ae62d38032bb70051254ee483da (diff)
up
-rw-r--r--layouts/partials/components/comments.html5
-rw-r--r--layouts/partials/third-party/waline.html7
-rw-r--r--theme.toml6
3 files changed, 15 insertions, 3 deletions
diff --git a/layouts/partials/components/comments.html b/layouts/partials/components/comments.html
index 6db4d3d..95df206 100644
--- a/layouts/partials/components/comments.html
+++ b/layouts/partials/components/comments.html
@@ -7,6 +7,11 @@
<div id="vcomments"></div>
{{ partial "third-party/valine.html" . }}
{{ end }}
+
+ {{ if .Site.Params.enableWaline }}
+ <div id="waline"></div>
+ {{ partial "third-party/waline.html" . }}
+ {{ end }}
</div>
{{ end }}
diff --git a/layouts/partials/third-party/waline.html b/layouts/partials/third-party/waline.html
new file mode 100644
index 0000000..64b0ef1
--- /dev/null
+++ b/layouts/partials/third-party/waline.html
@@ -0,0 +1,7 @@
+<script src="//cdn.jsdelivr.net/npm/@waline/client"></script>
+<script>
+Waline({
+ el: '#waline',
+ serverURL: '{{ .Site.Params.walineServerURL }}',
+});
+</script> \ No newline at end of file
diff --git a/theme.toml b/theme.toml
index 445dabe..0dcf0c0 100644
--- a/theme.toml
+++ b/theme.toml
@@ -4,7 +4,7 @@ licenselink = "https://github.com/ThemeTony/hugo-theme-tony/blob/master/LICENSE"
description = "An Elegant Hugo Theme Based on WordPress Theme Tony"
homepage = "https://htony.js.org"
tags = ["simple", "Elegant", "transportation", "porting"]
-features = ["medium-zoom", "social icon", "thumbnail", "Valine","highlight.js","Google Analytics","Archives Page","JQuery"]
+features = ["medium-zoom", "social icon", "thumbnail", "Valine","highlight.js","Google Analytics","Archives Page"]
min_version = "0.59.1"
# If the theme has a single author
@@ -14,6 +14,6 @@ min_version = "0.59.1"
# If porting an existing theme
[original]
- author = "TonyHe"
+ author = "HelipengTony"
homepage = "https://www.ouorz.com"
- repo = "https://github.com/ThemeTony/tony_wordpress/"
+ repo = "https://github.com/HelipengTony/antony/"