File tree Expand file tree Collapse file tree 7 files changed +70
-4
lines changed Expand file tree Collapse file tree 7 files changed +70
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All the changes made to Blist theme for Hugo.
4
4
5
+ ## v2.1.0 - 2023-01-09
6
+
7
+ ### Added
8
+
9
+ - Support multiple comment systems #64
10
+
5
11
## v2.0.1 - 2022-12-27
6
12
7
13
### Fixed
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Blist is a clean and fast blog theme for your Hugo site.
12
12
13
13
- Responsive content / Mobile-optimized
14
14
- Blog pagination
15
- - Text Search
15
+ - Customizable Text Search
16
16
- Table of contents
17
17
- Social links
18
18
- Code highlighting
@@ -21,6 +21,10 @@ Blist is a clean and fast blog theme for your Hugo site.
21
21
- Fast performance
22
22
- SEO optimized
23
23
- i18n support
24
+ - Support comments systems
25
+ - Disqus (hugo native)
26
+ - giscus
27
+ - utterances
24
28
25
29
## Preview
26
30
Original file line number Diff line number Diff line change @@ -140,6 +140,29 @@ DefaultContentLanguageInSubdir = true
140
140
# This setting can also be in page's markdown file
141
141
hidePageThumbnail = false
142
142
143
+ # Comments system
144
+ [params .comments ]
145
+ # Supports disqus, giscus and utterances
146
+ # Check hugo docs for setting up disqus
147
+ system = " giscus"
148
+
149
+ # Options for giscus, exclude hyphens
150
+ repo = " "
151
+ repoid = " "
152
+ category = " "
153
+ categoryid = " "
154
+ mapping = " "
155
+ strict = " "
156
+ reactionsenabled = " "
157
+ emitmetadata = " "
158
+ inputposition = " "
159
+ theme = " "
160
+
161
+ # Options for utterances, exclude hyphens
162
+ # repo = ""
163
+ # issueterm = ""
164
+ # theme = ""
165
+
143
166
[params .homepage .social ]
144
167
# Global params common for both languages
145
168
title = " Follow me"
Original file line number Diff line number Diff line change @@ -67,5 +67,7 @@ <h5 class="text-sm flex items-center flex-wrap">
67
67
{{ .Content }}
68
68
</ article >
69
69
70
+ {{- partial "comments.html" . -}}
71
+
70
72
{{- partial "social.html" . -}}
71
73
{{ end }}
Original file line number Diff line number Diff line change
1
+ {{ if .Site.Params.comments.system }}
2
+ < div class ="px-2 mb-2 ">
3
+ {{ if eq .Site.Params.comments.system "disqus" }}
4
+ {{ template "_internal/disqus.html" . }}
5
+ {{ else if eq .Site.Params.comments.system "giscus" }}
6
+ < script src ="https://giscus.app/client.js "
7
+ data-repo ="{{ .Site.Params.comments.repo }} "
8
+ data-repo-id ="{{ .Site.Params.comments.repoid }} "
9
+ data-category ="{{ .Site.Params.comments.category }} "
10
+ data-category-id ="{{ .Site.Params.comments.categoryid }} "
11
+ data-mapping ="{{ default "pathname " .Site.Params.comments.mapping }}"
12
+ data-strict="{{ default "0 " .Site.Params.comments.strict }}"
13
+ data-reactions-enabled="{{ default "1 " .Site.Params.comments.reactionsenabled }}"
14
+ data-emit-metadata="{{ default "0 " .Site.Params.comments.emitmetadata }}"
15
+ data-input-position="{{ default "bottom " .Site.Params.comments.inputposition }}"
16
+ data-theme="{{ default "preferred_color_scheme " .Site.Params.comments.theme }}"
17
+ data-lang="{{ default "en " $.Site.Language.Lang }}"
18
+ crossorigin="anonymous "
19
+ async >
20
+ </ script >
21
+ {{ else if eq .Site.Params.comments.system "utterances" }}
22
+ < script src ="https://utteranc.es/client.js "
23
+ repo ="{{ .Site.Params.comments.repo }} "
24
+ issue-term ="{{ default "pathname " .Site.Params.comments.issueterm }}"
25
+ theme="{{ default "preferred_color_scheme " .Site.Params.comments.theme }}"
26
+ crossorigin="anonymous "
27
+ async >
28
+ </ script >
29
+ {{ end }}
30
+ </ div >
31
+ {{ end }}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " blist" ,
3
- "version" : " 2.0.1 " ,
3
+ "version" : " 2.1.0 " ,
4
4
"description" : " Blist is a clean and fast blog theme for your Hugo site." ,
5
5
"main" : " index.js" ,
6
6
"repository" : " https://github.com/apvarun/blist-hugo-theme" ,
You can’t perform that action at this time.
0 commit comments