-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Added Staticman submit comments and subscribe to comment threads #438
Conversation
Fix the error when calling slicestr to slice out-of-range bounds See HugoBlox#439
Thanks for submitting this. I'll try to review it when I get a chance. I noticed a few issues already such as:
Documentation will need to be added to the documentation website if this PR is accepted. You'll find an Edit button at the top of the docs pages to edit them. May be best to wait until once this PR has been reviewed though. |
Happy to add docs when you want. |
No longer attempt to duplicate content from documentation website. Just link to it. Replace Readme's theme table with new gallery shortcode.
Use `relLangURL` rather than `relURL` for project links. See HugoBlox#442
Any progress on this? |
Generally it looks good! However, it's a lot of changes and at the end of the day, I am the person who will likely end up having to try to maintain it. Are you able to simplify it further? Especially with respect to the amount of additions for the language and style files. Also, did you manage to fix the issue from point (2) above regarding having to manually define slugs in every single content file? Otherwise, that could be a blocker. |
I wouldn't have done the work twice if I wasn't prepared to help maintian it. I just thought that there must be others using academic that would like/benefit from an open commenting system. I'm happy to assist with this going forward, as I'll be using it myself for years to come. I can simplify it as much as you think necessary but while still maintianing the functionality that most would benefit from. Just let me know. In regards to point 2, as I mentioned, the reason I added the slug to the post front-matter, is because I wasn't sure of any other way to access it in |
Glad to hear that you would be happy to help maintain it going forward :) RE point 2, you can use |
Ok, that works. |
How's progress on this? |
It appears that you merged master updates into this PR branch, so I can no longer easily see your changes (take a look at the Files Changed tab in Github). Perhaps rebasing can help fix this... As per my previous comments, please simplify the changes as much as possible. Especially with respect to the amount of additions for the language and style files. This PR remains low priority compared to the other open issues which were submitted prior to it. Feel free to help resolve the other open issues if you have time, especially the help wanted ones :) |
That's right, merged master into this branch to keep up to date. Diffing from master to this branch should show my changes. I believe I have simplified as much as possible. I was under the impression due to your comment:
that you wanted the variable values that people see added to the language files? Do you now want these removed again, or am I misunderstanding your request? Please clarify? I think in regards to the CSS, if I remove it, then users will only have to add it back as overrides. Please propose an alternative working solution if you're not happy with what I've submitted and I can alter to suit. I understand this PR is not high priority, but the other open issues submitted before this were not high priority for me as far as I can tell. I could rebase, or do what ever is necessary, but I still don't know if you even want this? I don't have time sadly, but just thought that if I'm getting benefit from staticman, then others should to, and I seemed to be in the best position to help others benefit by submitting PR, so I took the hit and subbed PR. Feel free to close if you think others will not appreciate the free and open commenting system in academic. |
@binarymist Great resource! I was looking for a commenting system and it turns out Staticman best suits my needs. While waiting for it to be merged, I'll follow your tutorial to add it to my site. Thanks a lot! |
You should find everything you need @netw0rkf10w here: https://binarymist.io/blog/2018/02/24/hugo-with-staticman-commenting-and-subscriptions/ Leave a staticman comment ;-) |
@binarymist Done ;) |
Closing this as the PR was never rebased on recent Academic and the requested changes were not implemented. |
Initial commit of Add support for Staticman commenting system
I'm not sure how you would like me to address the CSS colours, just let me know what changes you would like? This feature can be seen in action here
I've done a blog post on this, but it won't be going live until the end of next month. I'm happy to tweak it to provide documentation for this feature, or just create a new post outlining how to turn Staticman on.
Contact me and I'll flick
The documentation for this is in a post going out at the end of this month. Check it to help get your head around how things hang together https://github.com/binarymist/BinaryMistBlog/blob/post-static-man/content/post/hugo-with-staticman-commenting-and-subscriptions.md
To turn Staticman on, the staticman.yml file is also required, but this needs to be customised to suite the website owners requirements.
@eduardoboucas example
staticman.sample.yml
My
staticman.yml
I also need to add the following to each of my posts front matter. Where do I need to add this to?
I've also added the subscribe to be notified of new blog posts to my own overrides. Currently my overrides are only supporting Staticman, let me know if/when you would like a PR for this also. I'll probably have to add some more conditionals if you want this extra feature. It can be seen right at the top here