-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
feat: add comments partial #44
Conversation
✅ Deploy Preview for hugo-blog-awesome ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Thanks for the PR, @rickvanprim. Your contribution is greatly appreciated. Can you post some screenshots of the blog pages, after successful Discuss integration? |
Thanks for the screenshots. The feature looks great. It's time to add some documentation for this feature. For example you can add something like this to #DisqusShortname = ABCDXYZ # provide discuss shortname & uncomment this line to enable discuss on blog post pages |
How come the Discuss background matches the theme background color? Did you configure it somewhere? |
Hi James,
Thanks. Can you push the change/commit? As of now, I only see the commit that you created 8 hours ago 44c0436 .
Thanks for the details. I have to find out how to fix this. We can address it later (not in this PR). Let's consider this an an enhancement. |
This pull request has conflicts with the base branch, please resolve those so that we can review the pull request. |
Conflicts have been resolved! 🎉 A maintainer will soon review the pull request. |
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.
Hi James. I have requested a change regarding CHANGELOG.md
. Please see the comments below.
I will merge this PR shortly after this is resolved.
### Comments | ||
|
||
To enable Disqus comments, set `disqusShortname` in your site's `config.toml`. | ||
|
||
To use another comments system, provide your own `comments.html` partial in `layouts\partials\comments.html`. | ||
|
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.
Great! Thanks for adding documentation in README.md file.
@@ -10,13 +10,16 @@ theme = "hugo-blog-awesome" | |||
defaultContentLanguage = "en-gb" | |||
|
|||
# To enable Google Analytics 4 (gtag.js) provide G-MEASUREMENT_ID below. | |||
# To disable Google Analytics, simply leave the field empty or remove the next line | |||
# To disable Google Analytics, simply leave the field empty or remove the next line |
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.
You really have an 'eye for details' 😃.
Thanks for the fix.
# To enable Disqus comments, provide Disqus Shortname below. | ||
# To disable Disqus comments, simply leave the field empty or remove the next line | ||
disqusShortname = '' | ||
|
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.
Thanks for the simple, no-brainer comments/docs.
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.
I just copy-pasted your Google Analytics one 😉
CHANGELOG.md
Outdated
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.
This changelong is auto generated. I have setup a GitHub action workflow which:
- analyses the commits (from last release)
- determines the version to bump (it's doable since this project uses conventional commit specification)
- updates the changelog
- creates a git tag corresponding to the version
Finally it creates a PR with the above changes. So, there is no manual editing required.
Can you please leave this file unchanged, so that we leave it to the CI to manage it?
This is not at all your mistake. I know that you did it with an intention to help me/the project 🙂.
I think I made a mistake in not mentioning it anywhere. Probably, I should have mentioned it in CONTRIBUTING.md
.
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.
All good. I wasn't sure how you were getting stable commit hashes in there, so I assumed it was post-PR 🙂
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.
I wasn't sure how you were getting stable commit hashes in there, so I assumed it was post-PR
I see.
I have updated CONTRIBUTING.md
.
Don't forget to star the repo, if you liked this theme.
Thanks.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
Thanks @rickvanprim, for adding Discuss comments feature to this theme.
I appreciate your contribution.
Have a good day. Happy blogging :)
What problem does this PR solve?
Lack of support for a comments section at the bottom of posts.
Is this PR adding a new feature?
Introduces a
comments.html
partial that is included at the bottom ofsingle.html
and defaults to using the builtin Disqus template if.Site.DisqusShortname
is set.Is this PR related to any issue or discussion?
Closes #32
PR Checklist