Skip to content

error in comments.html line 3 when replacing .test-slug with [page.slug] #61

Open

Description

@basemwahba

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

Activity

  1. VincentTam commented on Oct 13, 2020

    @VincentTam
    Owner

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions