Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement comments with Cusdis #266

Merged
merged 39 commits into from
Apr 28, 2021
Merged

Implement comments with Cusdis #266

merged 39 commits into from
Apr 28, 2021

Conversation

danisztls
Copy link
Contributor

Add suport to Cusdis, an alternative to Disqus.

Daniel and others added 17 commits March 24, 2021 20:12
It was using the wrong base16 color.
- Update grey shades from Github dark dimmed
- Create 3 new base colors to use as base for theme (non-HL) colors
- Move colors to start of file to avoid an undeclared variable error
- Light (original) theme is on by default
- Dark theme can be enabled by uncommenting its section
- Color scheme have 10 shades and 8 colors which can be used to ajust
theme colors globally
- base16 highlighting theme use colors from above scheme
- Set fa-inverse to background color.
- Load Sass variables before external. That could lead to bugs.

(cherry picked from commit 6131c83d6d85019c61fe6976e9c85722940fc09e)
- Swap light/dark via prefs-color-scheme.
- Dark scheme is good but light needs ajustments.
- Highlight uses the same base16 scheme for light/dark
Needed for color scheme switching as SaaS variables are compiled.
- Update color scheme.
- Do small CSS adjustments.
Added a slightly transparent background to div element and a bit of margin for
the child svg element.
@@ -0,0 +1,8 @@
<div class="comments" id="cusdis"
data-host="https://cusdis.com"
data-app-id={{site.cusdis_id}}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Misssing double quote?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. Among other stuff. Tested and fixed it in my last commit.
It also works with localhost. May be a good idea to restrict domain in the future to avoid spam/dos.

@sylhare
Copy link
Owner

sylhare commented Apr 21, 2021

That's cool! I am looking forward to test it 👍

Daniel Souza and others added 8 commits April 24, 2021 00:47
- Remove copyleft notice from script as code is fully rewritten
- I don't know if browsers got smarter but some things the script did
aren't needed, at least on recent Chromium
The options are 'auto', 'dark' and 'light'.
@sylhare sylhare merged commit d10a0d8 into sylhare:master Apr 28, 2021
@sylhare
Copy link
Owner

sylhare commented Apr 28, 2021

Yeah the rebase went wrong, sorry I messed up the branch

@djyde
Copy link

djyde commented Apr 28, 2021

How about adding i18n support? @lbcnz https://cusdis.com/doc#/advanced/i18n

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants