New comment in running_staticman_on_static_hugo_blog_with_nested_comments #214
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dear human,
Here's a new entry for your approval. 🎉
Merge the pull request to accept it, or close it to send it away.
❤️ Your friend Staticman 💪
Staticman's v3 URL scheme has been available since Add GitLab support eduardoboucas/staticman#219. Your guide is still using the v2 URL scheme
/v2/entry/...
. You might want to update your guide to that, so as to cover GitLab Pages as well.When I wrote my self-hosting guide (another related article to the one that you linked) last year, I've put
"port": 8080
. In fact, that's unless since Heroku designates dynamically the port number. I've just edited my article to remove that API parameter.The creation of
.gitkeep
can be avoided if you use.Site.Data.comments
instead ofreadDir "data/comments"
. Related discussion in above linked Staticman PR: Add GitLab support eduardoboucas/staticman#219 (comment).You're mixing JS code with HTML in your Go-HTML template code for the reply button. This doesn't comply with the pratice of separation of concerns.
For a pure JS + Go-HTML (without jQuery) template of nested comment reply, you may take a look at Hugo Swift Theme's
assets/js/*.js
andlayouts/partials/comments*.html
.P.S. I'm a collaborator of the aforementioned Hugo theme. |
| date | 2019-08-28T22:45:32.225Z |