sylhare / Type-on-Strap

🎨 Simplistic, responsive jekyll based open source theme
https://sylhare.github.io/Type-on-Strap/
MIT License
814 stars 902 forks source link

add utterances #279

Closed im-coder-lg closed 3 years ago

im-coder-lg commented 3 years ago

So, people who know this know that Disqus is full of ads if you use it for free, and Cusdis might nag people like me for permission. So, I found out about Utterances, another chat system and it is open source, and uses GitHub login. I am trying to add it here. There has to be a mistake. If you find it, please change it.

Changes made to files: config.yml: added utterances permission code and a whole new set of code to choose the comment system.

New files: utterances.html ~~~> here has to be a mistake, please change it

im-coder-lg commented 3 years ago

@sylhare and, forgot to mention, it saves the comments as GitHub issues in the repo

sylhare commented 3 years ago

Oh! I did not know about this one, I'll test it out ;)

sylhare commented 3 years ago

Ok I see what you did there, it's a bit raw but I think it's a good idea to have a comments provider field and then choose between the one you want 🤔

im-coder-lg commented 3 years ago

Is it good?

im-coder-lg commented 3 years ago

Ok I see what you did there, it's a bit raw but I think it's a good idea to have a comments provider field and then choose between the one you want 🤔

The comments provider was in another user, LazyRen's blog, I found it in Google when I searched for a regulation code for the comment systen in it.

im-coder-lg commented 3 years ago

Does it work like you expected?

danisztls commented 3 years ago

@coder-lg You have to modify the post layout to parse the environment variables you wrote at config and include the include you wrote.

im-coder-lg commented 3 years ago

Can you do it, because I don't know how to change that.

danisztls commented 3 years ago

Can you do it, because I don't know how to change that.

Don't have the time right now.

im-coder-lg commented 3 years ago

No worries, you can do it anytime

im-coder-lg commented 3 years ago

I got some kind of idea. Why not we add the Utterances code into the post.html file directly with an if statement?

im-coder-lg commented 3 years ago

And also, there is a typo in post.html where Utterances is accidentally named Utternaces, I will change it today.

im-coder-lg commented 3 years ago

I think you have to change all the things yourself, sorry, but I can't add Utterances here. I will add it to my personal blog though. It uses this same theme.

im-coder-lg commented 3 years ago

Actually, put the Utterances code inside post.html because, it has to be in a specific layout. The place is between </div> and </script>.