Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Pretty URL not working for post in starter template #2329

Closed
liquidvisual opened this Issue May 7, 2014 · 5 comments

Comments

Projects
None yet
4 participants

Installed the new starter template, and out of the box pretty urls are enabled. It works for "About" but clicking on "Welcome to Jekyll" results in a "jekyll/update/2014/05/08/welcome-to-jekyll.html" path with the ".html" appended.

Any ideas?

Owner

parkr commented May 7, 2014

What does your _config.yml look like?

jekyll/lib/jekyll/post.rb

Lines 192 to 193 in 0008808

when :pretty
"/:categories/:year/:month/:day/:title/"

I haven't changed anything from the default _config.yml - just left it as it was out of the box ($ jekyll new project):

# Site settings
name: Dat site title tho
title: Your awesome title
email: your-email@domain.com
description: "Write an awesome description for your new site here. You can edit this line in _config.yml.   It will appear in your document head meta (for Google search results) and in your feed.xml site     description."
baseurl: ""
url: "http://yourdomain.com"

# Build settings
markdown: kramdown
permalinks: pretty
Member

albertogg commented May 7, 2014

Hi, It seems that there is a typo because AFAIK the tag is permalink and the default option is permalink: date so your URL will be like that. You can can remove the "s" and it will work as intended. We will fix this.

Ah! Fantastic, works now. Thanks for that! Congrats on the release - loving it.

Member

albertogg commented May 7, 2014

@liquidvisual no problem! glad it worked!

@parkr parkr closed this in #2331 May 7, 2014

@jekyllbot jekyllbot locked and limited conversation to collaborators Feb 27, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.