hugo/commands
Colin Seymour 3752348ef1 Only set 'url' if permalink in metadata and remove duplicate confirm msg
The current behaviour addes a `url` attribute to the frontmatter of all posts imported from Jeklly and assumes the desired permalink structure is /:year/:month/:day/:title/. This may be the case for most peeps, but poses a problem for those that don't use this permalink structure as the `url` attribute takes precedence over the `permalink` attribute in the site-wide configuration meaning it can't be overruled.

This changes the behaviour to only set the `url` attribute if the `permalink` attribute is set in the Jekyll frontmatter.

The duplication of the confirmation message is also removed.

Tests have been updated to reflect this change in behaviour.

Fixes #1887
2018-01-28 11:24:31 +01:00
..
benchmark.go Fix hugo benchmark --renderToMemory 2018-01-06 10:37:04 +01:00
check.go
commandeer.go Implement Page bundling and image handling 2017-12-27 18:44:47 +01:00
convert.go Implement Page bundling and image handling 2017-12-27 18:44:47 +01:00
env.go
gen.go
genautocomplete.go
genchromastyles.go
gendoc.go
gendocshelper.go
genman.go
hugo.go Support pages without front matter 2018-01-26 09:17:27 +01:00
hugo_windows.go
import_jekyll.go Only set 'url' if permalink in metadata and remove duplicate confirm msg 2018-01-28 11:24:31 +01:00
import_jekyll_test.go Only set 'url' if permalink in metadata and remove duplicate confirm msg 2018-01-28 11:24:31 +01:00
limit_darwin.go
limit_others.go
list.go Implement Page bundling and image handling 2017-12-27 18:44:47 +01:00
list_config.go Implement Page bundling and image handling 2017-12-27 18:44:47 +01:00
new.go releaser: Bump versions for release of 0.34 2018-01-22 12:06:38 +00:00
new_test.go
release.go
server.go commands: Fix baseURL server regression for multilingual sites 2018-01-27 10:58:30 +01:00
server_test.go
static_syncer.go Implement Page bundling and image handling 2017-12-27 18:44:47 +01:00
undraft.go Support pages without front matter 2018-01-26 09:17:27 +01:00
undraft_test.go Support pages without front matter 2018-01-26 09:17:27 +01:00
version.go commands: Remove superflous BuildDate logic 2018-01-14 20:08:28 +01:00