问题描述
除我的帖子外,所有页面都可以使用baseurl正常工作.
All pages are working correctly with baseurl except my posts.
我得到的是什么网址 https://pizzapgh.github.io/general/2016 /08/29/example-post-three/
What I'm gettingurlhttps://pizzapgh.github.io/general/2016/08/29/example-post-three/
我需要什么,一般之前先用"/katietest" https://pizzapgh.github.io/katietest /general/2016/08/29/example-post-three/
What I need isntead, "/katietest" before generalhttps://pizzapgh.github.io/katietest/general/2016/08/29/example-post-three/
在我的配置中,我有:baseurl:/katietest
url" http://pizzapgh.github.io "
In my config I have:baseurl: /katietest
url "http://pizzapgh.github.io"
回购 https://github.com/pizzapgh/katietest
建议?我之前已经使用过此工具,而我要做的就是设置baseurl.我似乎无法找出导致我的帖子不显示的原因.
Suggestions? I've worked with this before and all I had to do was set the baseurl. I can't seem find out what it is that's not making my post not show.
谢谢.
推荐答案
在_includes/post_list.hmtl
中,您可以替换两次出现的:
In _includes/post_list.hmtl
you can replace two occurrences of :
<h5><a href="{{ page.url }}"...
作者
<h5><a href="{{ site.baseurl }}{{ page.url }}"...
您也可以在_includes/post_list.hmtl
中进行相同的操作.
And you can do the same in _includes/post_list.hmtl
.
这篇关于Baseurl不适用于jekyll帖子.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!