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 Remove ShowPlan 2016-11-23 16:35:49 +01:00
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 all: Use jww instead of fmt for printing 2016-11-22 22:06:48 +01:00
gen.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
genautocomplete.go commands: Make first letter of flags' usage lowercase 2017-04-26 22:23:20 +02:00
genchromastyles.go Use Chroma as new default syntax highlighter 2017-09-25 08:59:02 +02:00
gendoc.go Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
gendocshelper.go Revert "commands: Adjust docs path" 2017-07-06 10:34:04 +02:00
genman.go Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
hugo.go Support pages without front matter 2018-01-26 09:17:27 +01:00
hugo_windows.go Move cobra.MousetrapHelpText to hugo_windows.go 2015-12-16 21:26:47 -07:00
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 commands: Adjust rlimit to 64000 2017-06-12 20:43:19 +02:00
limit_others.go Revert "commands: Remove the rlimit tweaking on macOS" 2017-06-12 20:35:19 +02:00
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 all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
release.go Set up Hugo release flow on CircleCI 2017-09-10 17:14:02 +02:00
server.go commands: Fix baseURL server regression for multilingual sites 2018-01-27 10:58:30 +01:00
server_test.go Add multilingual multihost support 2017-11-17 11:01:46 +01:00
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