Closed sr-murthy closed 9 years ago
This is some pretty strange behavior that can probably be explained by a wayward bit of code somewhere. Would it be possible for you to post a link to the repo that this site uses?
I should add that I am fairly new to liquid, YAML (and jekyll) and this line is perhaps the problem:
<a class="post-link" href="{{ site.url }}/{{ post.url }}"#disqus_thread>{{ post.title }}</a>
What should post.url
look like - it's not what I'm expecting, but this line is standard in index.html
when you start a jekyll site. It would be helpful if jekyll docs define the full list of attributes of post
and all other variables this page.
Fixed.
Can you post the fix that you found so that others with a similar problem can reference? Sorry I wasn't able to dig deeper into your issue to help, by the way. Been really busy :confounded:
Hi
it's not quite fixed actually, but there's a related problem with permalinks which is the real problem - that.
Sandeep.
This repository is no longer maintained. If you're still experiencing this problem, please search for your issue on Jekyll Talk, our new community forum. If it isn't there, feel free to post to the Help category and someone will assist you. Thanks!
Hi
I have two questions (I have checked the docs and other issues but cannot find a solution to this).
_layouts/
) for a default site-wide page style, and non-discussion posts and discussion posts (posts with Disqus comments enabled). Specifically, pages follow the default layout specified indefault.html
which is standard, and non-discussion posts follow the standardpost.html
layout. But thediscussion_posts
style were defined in_config.yml
in the following way:I'm not quite clear about the path key? I am trying to specify a relative path (relative to the root of the repo) but I am not quite clear if this is causing my problem. This may be linked to how the URLs are appearing incorrectly. For example, my
index.html
contains a list of posts, this is generated by liquid code which loops oversite.posts
. The code isThe
site.url
is set tohttp://localhost:4000
in_config.yml
when I'm testing the site locally. This code displays the posts (there is only one right now) asThe post name is
2015-01-01-first-post.md
, which exists in the root of the repo, and as you can see above, there are commas separating them.Why is this happening? Is there a simpler way of outputting the URLs? Thanks in advance.