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

Disqus support #16

Open
dorneanu opened this issue Feb 8, 2021 · 2 comments
Open

Disqus support #16

dorneanu opened this issue Feb 8, 2021 · 2 comments

Comments

@dorneanu
Copy link

dorneanu commented Feb 8, 2021

Hi! I'd like to add disqus to your theme. I know hugo has it's own internal template to add disqus. But what would be the perfect file to add the code?

{{ template "_internal/disqus.html" . }}

Thanks in advance and awesome theme! ❤️

@lingxz
Copy link
Owner

lingxz commented Feb 9, 2021

Hello and thanks for checking out the theme!

Just as a matter of personal preference, I would like to keep the theme minimal and without commenting capabilities. However, you can easily override this in your own blog, by adding a file at layouts/_default/single.html, copying over the contents add https://github.com/lingxz/er/blob/master/layouts/_default/single.html, and add the disqus shortcode at the end.

@dorneanu
Copy link
Author

dorneanu commented Feb 9, 2021

Thanks for your quick reply.

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

No branches or pull requests

2 participants