You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In _includes/comments.html, I have replaced .test-slug with [page.slug]. Final code will be: {% assign comments = site.data.comments[page.slug] | sort %}
In _config.yml, I have removed test-slug from staticman path. Final code will be: path: "_data/comments"
In index.html, I have replaced test-slug with {{ page.slug }}. Final code will be: <input name="options[slug]" type="hidden" value="{{ page.slug }}">
Sorry for late reply. I was corrupted by a compute game :(
I don't know Jekyll, even though I worked with it a year ago to provide Staticman support. I wonder if the homepage has page slug. If you run a web dev tool in any mainstream modern web browser, you would see that the value for the hidden field options[slug] is empty. I dunno if that affects the results. From the Networks pane in the web dev tool, I couldn't observe any POST request sent to your staticman API. https://github.com/basemwahba/again/blob/916acf720c05093c9e5f990168016339b1e390f0/index.html#L10
Thanks for this simplest minimal Jekyll site
In _includes/comments.html, I have replaced .test-slug with [page.slug]. Final code will be:
{% assign comments = site.data.comments[page.slug] | sort %}
In _config.yml, I have removed test-slug from staticman path. Final code will be:
path: "_data/comments"
In index.html, I have replaced test-slug with {{ page.slug }}. Final code will be:
<input name="options[slug]" type="hidden" value="{{ page.slug }}">
This is my repository https://github.com/basemwahba/again
May you please advise? Thanks so much
The text was updated successfully, but these errors were encountered: