【问题标题】:Middleman blog paths issue中间人博客路径问题
【发布时间】:2013-09-10 14:41:44
【问题描述】:

我最近在 GitHub 页面上使用 Middleman 发布了一篇博客,虽然索引页面运行良好 (mathesond2.github.io/learnt/),但每当我选择帖子时,我都会收到 404。这是因为 url 路径位于:

http://mathesond2.github.io/blog/2013/09/02/first-post.html

而不是: http://mathesond2.github.io/*learnt/*blog/2013/09/02/first-post.html

我已经进入config.rbblog.prefix/blog 更改为/learnt/blog,但仍然看不出有什么区别。有什么建议吗?

谢谢, 大卫

【问题讨论】:

  • 你能把你的config.rbconfig.ru贴出来吗?

标签: path blogs middleman


【解决方案1】:

我的博客上有类似的问题。在我的 config.rb 中,我将 site_url 设置更改为指向我博客的完整 url,例如 set :site_url, 'http://www.gerardcondon.com/chess'

也许设置set :site_url, 'http://mathesond2.github.io/learnt' 对你有用?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-18
    相关资源
    最近更新 更多