Commit Graph

24 Commits

Author SHA1 Message Date
JesseJeson
26fb06951b
chore: update twikoo version to 1.4.18 (#496) 2022-02-26 23:49:26 +01:00
Jimmy Cai
6474b9dfd8 fix(comments): fix cactus comments
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/470
2022-01-23 12:59:21 +00:00
Marcel
7dc5def217
feat(comments): add https://cactus.chat support (#298)
* feat: Add https://cactus.chat as comments provider

* Add cactus comments config fields to exampleSite

* Add cactus css and js to external.yaml and move custom cactus css to html

* Remove unneeded cactus comments css

* Load external dependencies for cactus comments in the comments provider

* Use safeJS instead of safeHTML
2022-01-23 13:10:00 +01:00
tanmx
eebaea81e8
feat(comment): update twikoo version to 1.4.15 (#464) 2022-01-19 15:22:51 +01:00
Hue
25581cc446
fix(comments/cusdis): use the correct script for the self-hosted version (#403)
* Modify the Self-hosting js source path

* refactor(comments/cusdis): avoid multiple if statement

Co-authored-by: Jimmy Cai <github@jimmycai.com>
2021-10-31 10:15:57 +01:00
WingLim
d8c9468c68
feat(comments): add Cusdis support (#372)
* feat: add cusdis support

* docs: add cusdis example config
2021-10-01 16:38:37 +02:00
Cookiekira
66bd8a2997
feat(comments): add Gitalk support (#351) 2021-09-18 10:03:08 +02:00
SSpirits
9f734a0647
feat(comments): DisqusJS integration (#307)
* add comment provider: DisqusJS

* Simplify `if` condition, and format code

* Load disqusjs.scss only when it's enabled

* Use `let` instead of `var`

Co-authored-by: sspirits <admin@lv5.moe>
Co-authored-by: Jimmy Cai <github@jimmycai.com>
2021-08-15 19:19:51 +02:00
zhixuan
c4cd4bf9a1
feat(comments): giscus integration (#304)
Co-authored-by: Jimmy Cai <github@jimmycai.com>
2021-08-15 12:03:59 +02:00
zhixuan
61c021dae2
fix(comments): improve Twikoo style (#289) 2021-08-07 17:29:01 +02:00
zhixuan
2fd3bde9a4
fix(comment/twikoo): submit button color (#288) 2021-08-05 11:20:03 +02:00
zhixuan
7b51bea912
feat(comment): add Twikoo support (#286)
* Create twikoo.html

* Upgrade to Twikoo 1.4.3 and add `lang` param

* Add twikoo section in config.yaml

Co-authored-by: Jimmy Cai <github@jimmycai.com>
2021-08-04 20:49:21 +02:00
慕枫Go
b7d4048298
feat(comment/vssue): add parameter 'autoCreateIssue' (#258)
It's default false
2021-07-07 13:18:05 +02:00
k
dda55f87e2
feat: change the page vertical scrollbar styles (#227)
* fix: take out [data-scheme="dark"] from :root

Taking out the [data-scheme="dark"] from :root allows us to fix the
precedence of CSS when the [data-scheme="dark"] is placed in the <html>
tag. This is needed in order to make the dark styles accesible from the
<html> elment, this will allow us to change the vertical scrollbar
styles following the dark and light schemes.

* change document.body.dataset.scheme to document.documentElement.dataset.scheme

When the dark mode is on or when the light mode is on, the
[data-scheme="light"] or [data-scheme="dark"], respectively, will be
placed in the <html> tag. Allowing us to access the dark and light color
schemes from the <html> to change the vertical scrollbar styles
according to the current color scheme.

* feat: change the page vertical scrollbar styles

This change will make the vertical scrollbar styles to follow the dark
and light color scheme modes. Also, this change will make the vertical
scrollbar to look consistent in both, Chromium and Firefox.

* make the scrollbar-track background-color transparent

The body has this transition: 'transition: background-color 0.3s ease
0s'. Making the scrollbar-track background-color transparent allow us to
appreciate that transition in the scrollbar-track when switching the
background-color.

* Move [data-scheme=dark] back to :root block

* fix(comment/waline): detect dark mode from html tag

* feat: apply custom scrollbar style to all elements

Co-authored-by: Jimmy Cai <jimmehcai@gmail.com>
2021-06-20 15:49:35 +02:00
暁学生
ed4a1bc56e
feat(comment): add Waline (#200)
* feat(comment): add Waline

* fix: waline client config

* fix: waline client config

* #200#issuecomment-860025299

* Update config.yaml

* Update Waline section of config.yaml

* Remove double quote escape

Co-authored-by: zhixuan <jinzhixuan666@gmail.com>
Co-authored-by: Jimmy Cai <jimmehcai@gmail.com>
2021-06-14 21:05:27 +02:00
慕枫Go
325303a7f8
feat: add Vssue comment (#197)
* 添加Vssue评论插件

* 修复默认代理过期问题

* style(comment/vssue): format html

Co-authored-by: Jimmy Cai <github@jimmycai.com>
2021-04-26 18:27:44 +02:00
Jimmy Cai
79d8c1db38
feat: Tencent video shortcode and remark42 integration (#143)
* 增加remark42的评论系统支持,config中增加对应配置。

* remark42评论系统,语言配置加入到config中,修正切换theme时评论区跟随主题切换。

* - 新增腾讯视频的支持
- 支持通过frontmatter配置在文章中插入音频

* 更新readme

* Delete README.md

* Create README.md

* Remove MetingJS

* fix(shortcode/tencent): switch to HTML5

The old one was showing video using Flash.

* style(comments): clean remark42 integration code

Co-authored-by: wood <wood@hfge.cn>
Co-authored-by: Wood <34589275+hfge@users.noreply.github.com>
2021-02-13 11:10:24 +01:00
Jimmy Cai
a8718592df
fix(utterances): set color scheme on load (#138)
* fix(utterances): set color scheme on load

Remove utterances.theme option from config.yaml

* fix(utterances): restore async tag
2021-02-11 18:46:23 +01:00
Jimmy Cai
84dd80959a
fix: make Disqus / Utterances follow the global color scheme (#111)
* fix: make Disqus / Utterances follow the global color scheme

* fix: check if DISQUS exists before executing DISQUS.reset

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/107
2021-01-01 13:32:19 +01:00
Jimmy Cai
9fcdedf042
feat(comments): add utterances support
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/21
2020-10-04 16:23:08 +02:00
Jimmy Cai
0cee4930e2
fix(disqus): fix container padding
Rename `--content-padding` to `--card-padding`
2020-09-20 23:45:44 +02:00
Jimmy Cai
7e701c0239
refactor(scss): remove comments scss folder. Include style of each comment system inside their HTML template 2020-09-09 16:19:37 +02:00
Jimmy Cai
2912b7e2f0
fix(comments): remove div.comments-container, apply card style depending on comment system 2020-09-09 00:24:17 +02:00
Jimmy Cai
c546964ce4
feat(comments): prepare for more third party comments system integration 2020-09-08 23:30:15 +02:00