删除" / jekyll / update"来自jekyll网址

时间:2014-06-23 15:05:10

标签: url jekyll

我正在尝试使用jekyll构建一个网站。这是我的配置:

# Dependencies
markdown: redcarpet
pygments: true

# Permalinks
permalink:        /blog/:categories/:year/:month/:day/:title/

# Setup
title:            Jekyll Metro
tagline:          'A Metro theme for Jekyell'
description:      'A Sample blog using JekyllMetro'
url:              http://blog-olakara.rhcloud.com

# Author Details
author:         'Abdel Raoof Olakara'


# Google Analytics
gahandler: 'UA-52149651-1'

# Blog Configurations
paginate: 5 # Posts per page on the blog index
paginate_path: "/blog/page:num"
destination: ./_site
navigation:
- text: Blog
  url: /blog/
- text: Archive
  url: /archive/
- text: About
  url: /about/

# Custom vars
version:          0.1.0

这是我的博客:http://blog-olakara.rhcloud.com/blog/如果我去任何帖子..我得到“/ jekyll / update /”..

screenshopt

我需要的是避免在路径中显示jekyll / update。我正在做的配置错误是什么?

1 个答案:

答案 0 :(得分:14)

示例帖子有两个类别" jekyll"和"更新"附加到网址的。 尝试删除它们。

你也可以改变你的永久链接"模式来自:

permalink:        /blog/:categories/:year/:month/:day/:title/

到:

permalink:        /blog/:year/:month/:day/:title/