-
Notifications
You must be signed in to change notification settings - Fork 8
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
Question! #70
Comments
You've got the idea in https://github.com/derykmakgill/derykmakgill.github.io/commit/c983c5316f8d349b5d310e898f3365d08651ec1b#diff-052a8f26d3152dd036184afc8d8c6581R3. In a multi-page site, the Sorry that I've left this aside for months, so I'm not sure about the syntax. For a Jekyll example, you may refer to https://github.com/daattali/beautiful-jekyll/blob/54ca4023738b77d3b7c64f7aded7fc404f00fec7/_includes/staticman-comments.html#L6-L17. For a Hugo one, I invite you to the original work in https://github.com/halogenica/beautifulhugo/blob/6f54c9a15985a776f68c4662f556183b1ea7170e/layouts/partials/staticman-comments.html.
I'm glad of your generosity, but I don't have any ways now. I'm just an amateur in writing codes. Actually |
Thank you! Looks like I finally figured it out. Next up nested comments! I appreciate your help. |
I'm 99% of the way there. I've got comments working.
I've edited my config file as follows:
staticman:
api: "https://staticman3.herokuapp.com/v3/entry/github/derykmakgill/derykmakgill.github.io/master/comments"
path: "_data/comments/:path"
But I can't figure out how to make this all work with the includes file. The hard-coding means that all comments show on all pages. How can I adapt the following code in the includes file to reference only comments on a specific page?
{% assign comments = site.data.comments.test-slug | sort %}
Also, how can I tip you to support your project?
The text was updated successfully, but these errors were encountered: