blog

My blog at www.shimmy1996.com

git clone git://git.shimmy1996.com/blog.git
commit dfa3f586382fabe630a2910faa16047decda3c45
parent ec462a324d5da3b00e84ea15c791ae48b08e77c9
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Sat,  4 Jan 2020 16:19:51 -0600

Switch to Hyperskip for comments

Diffstat:
Mconfig.toml | 3++-
Mlayouts/partials/comment.html | 15+--------------
Mlayouts/partials/css/custom.css | 13+++++++++++++
3 files changed, 16 insertions(+), 15 deletions(-)
diff --git a/config.toml b/config.toml
@@ -1,6 +1,6 @@
 # Site Settings
 baseURL                        = "https://www.shimmy1996.com/"
-theme                          = "hugo-djem-so"
+theme                          = ["hugo-djem-so", "hugo-hyperskip"]
 footnoteReturnLinkContents     = "↩"
 defaultContentLanguage         = "en"
 defaultContentLanguageInSubdir = true
@@ -9,6 +9,7 @@ disableHugoGeneratorInject     = true
 
 [author]
 name = "Shimmy Xu"
+email = "shimmy.xu@shimmy1996.com"
 
 [markup]
   [markup.goldmark]
diff --git a/layouts/partials/comment.html b/layouts/partials/comment.html
@@ -1,14 +1 @@
-<style>{{ partial "css/isso.css" . | safeCSS}}</style>
-<script
-  data-isso="/isso/"
-  data-isso-css="false"
-  data-isso-lang={{ .Site.Language }}
-  data-isso-reply-to-self="false"
-  data-isso-require-author="true"
-  data-isso-require-email="true"
-  data-isso-avatar="true"
-  data-isso-avatar-bg="var(--alt-background-color)"
-  data-isso-vote="false"
-  data-isso-feed="false"
-  src="/isso/js/embed.min.js"></script>
-<section id="isso-thread"></section>
+{{ partial "hyperskip.html" . }}
diff --git a/layouts/partials/css/custom.css b/layouts/partials/css/custom.css
@@ -6,3 +6,16 @@ a:focus, a:hover {
     background: var(--accent-color);
     color: var(--background-color);
 }
+
+input, textarea {
+    color: var(--text-color);
+    background: var(--alt-background-color);
+    border: 0;
+    padding: 5px;
+    box-sizing: border-box;
+    padding: 5px;
+}
+
+::placeholder {
+    color: var(--text-color);
+}