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

github.com/AmazingRise/hugo-theme-diary.wiki.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRise <8315221+AmazingRise@users.noreply.github.com>2019-11-23 16:01:41 +0300
committerRise <8315221+AmazingRise@users.noreply.github.com>2019-11-23 16:01:41 +0300
commit069af8541ac4b860249cc7695c5202c6e3e2c1e5 (patch)
tree3a65da0b8b1ca077a1cc2f6335ce8fc149102934
parenta34b14c5affe115e8e51a8c81da32111f9473dd4 (diff)
Created Customization (markdown)
-rw-r--r--Customization.md48
1 files changed, 48 insertions, 0 deletions
diff --git a/Customization.md b/Customization.md
new file mode 100644
index 0000000..096bf84
--- /dev/null
+++ b/Customization.md
@@ -0,0 +1,48 @@
+# Customization
+
+## Change color scheme
+(From *theme*'s root directory) Go to `assets/scss/journal.scss`.
+
+And modify the color value in the first line.
+```
+$color-accent: #1976d2;
+```
+Then re-generate the website.
+
+You can see the new color scheme now.
+
+## Add comment area
+### Gitalk
+Edit your `config.toml` in the hugo website's root directory.
+
+Add the following line to the section `[params]`
+```
+enableGitalk = true
+```
+Then add following lines behind:
+```
+[params.gitalk]
+ owner = "user"
+ repo = "repo name"
+ client_id = "your client id"
+ client_secret = "your client secret"
+```
+(Modify to suit your condition.)
+
+### Disqus
+Hugo originally supports Disqus, and I added the disqus to the theme.
+
+But due to my network environment, I haven't had it tested.
+
+To add a disqus comment service, please add a line to `config.toml` in the root directory:
+
+```
+disqusShortname = "Your disqus short name."
+```
+If some bugs happens, please feel free to open an issue or PR.
+
+### Other comment service
+
+Welcome to open an issue or Pull Request for adding a new comment service.
+
+If I'm free then, I will add it. :P \ No newline at end of file