-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Periods generating bad paths #1885
Comments
I cannot reproduce this on OS X, so I guess you are on Windows.
|
Windows 10 64bit and Hugo version v0.15 BuildDate: 2015-11-25T14:35:20-03:00 |
Getting the same issue on Linux (Kubuntu 14.04), Hugo v0.16 BuildDate: 2016-06-12T11:47:29+03:00 |
I'm having the same problem. I'm using Hugo v0.16, on Windows 7 (AMD64). |
I'm experiencing the same issue as described by @alansartlog (specifically Hugo version string: Go version string: |
I am experiencing this on macOS 10.12.1 with Go 1.7.4 and Hugo I'm migrating a site from another generator. Pages migrated that have dots in the $ head 2016-10-14-kubernetes-1-4-ama.html.md
---
title: Kubernetes 1.4 AMA Video
date: 2016-10-14
tags: [ kubernetes ]
--- The page generated is:
But the link appearing in content is: |
Observation for #2915: translating paths accordingly:
|
Here's a patch that fixed a problem for me (in my case): https://gist.github.com/wendigo/42e949e82a8eba3c03fab38d9d0585d0 |
Can someone provide a site repo that reproduces this error? Like bep, I'm not able to reproduce it. |
Yes, I have one :) |
@moorereason is this sufficient? |
@wendigo, |
This bug is still here for Hugo 0.19 on Windows 10. Anyone know a workaround? |
It will be fixed in 0.20, so I suggest you just live with it. |
@bep - I hate to ask an OSS developer the most hated question :( - do you have a rough idea when that release will be stable? |
@DarwinJS If you hate to ask then you should consider not asking. The release schedule is available somewhere else. |
FYI - specifying a slug that uses a dash for the period worked fine for my case. |
This is a pretty fundamental change in Hugo, but absolutely needed if we should have any hope of getting "multiple outputs" done. This commit's goal is to say: * Every file target path is created by `createTargetPath`, i.e. one function for all. * That function takes every page and site parameter into account, to avoid fragile string parsing to uglify etc. later on. * The path creation logic has full test coverage. * All permalinks, paginator URLs etc. are then built on top of that same logic. Fixes gohugoio#1252 Fixes gohugoio#2110 Closes gohugoio#2374 Fixes gohugoio#1885 Fixes gohugoio#3102 Fixes gohugoio#3179 Fixes gohugoio#1641 Fixes gohugoio#1989
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This issue is similar to #1188. If the permalink uses the title of the post and the title has a period in it, it generates some weird paths.
I expect
title: testdot.
to createtestdot/index.html
instead I gettestdot/index
. I experimented with a few different variations and they all give me weird results.title: test.dot
->test/index.dot
title: .testdot
->/index.testdot
(no folder)The same thing seems to happen if using slug or filename in the permalink. If you have two, like
:slug/:title
it'll do the first fine but the end will still be wrong, makingslug & title: test.dot
generatetest.dot/test/index.dot
. Strangely enough it doesn't happen if I make a section called test.dot and set the permalink to :section. I've also tried with a few other symbols, but they all seem to work just fine.The text was updated successfully, but these errors were encountered: