-
Notifications
You must be signed in to change notification settings - Fork 912
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
Conversation
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.
_includes/cusdis.html
Outdated
@@ -0,0 +1,8 @@ | |||
<div class="comments" id="cusdis" | |||
data-host="https://cusdis.com" | |||
data-app-id={{site.cusdis_id}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Misssing double quote?
There was a problem hiding this comment.
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.
That's cool! I am looking forward to test it 👍 |
- 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'.
…cusdis # Conflicts: # _config.yml
Yeah the rebase went wrong, sorry I messed up the branch |
How about adding i18n support? @lbcnz https://cusdis.com/doc#/advanced/i18n |
Add suport to Cusdis, an alternative to Disqus.