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
Rendered HTML shows the text display representation of the relative filesystem file path, ie
_posts/2012-12-24-delete-a-thing.md
instead of custom defined path property
/stuff/:id
Im a Jekyll/YAML newbie, but seems like path may now be reserved, and therefore overridden. Changing the variable name in the post to something else, ie resturi and the equivalent change in template in index.html fixed the issue.
So in your post, the line:
path: '/stuff/:id'
changed to :
resturi: '/stuff/:id'
and in index.html, changed post.path to post.resturi
Rendered HTML shows the text display representation of the relative filesystem file path, ie
_posts/2012-12-24-delete-a-thing.md
instead of custom defined path property
/stuff/:id
Im a Jekyll/YAML newbie, but seems like path may now be reserved, and therefore overridden. Changing the variable name in the post to something else, ie
resturi
and the equivalent change in template in index.html fixed the issue.So in your post, the line:
path: '/stuff/:id'
changed to :
resturi: '/stuff/:id'
and in index.html, changed
post.path
topost.resturi
<a name='{{ post.url }}' href='#{{ post.url }}'><h2>{% if post.type %}<code><b>{{ post.type }}</b> {{ post.path }}</code> {% endif %}{{ post.title }}</h2></a>
changed to :
<a name='{{ post.url }}' href='#{{ post.url }}'><h2>{% if post.type %}<code><b>{{ post.type }}</b> {{ post.resturi }}</code> {% endif %}{{ post.title }}</h2></a>
The text was updated successfully, but these errors were encountered: