summaryrefslogtreecommitdiffstats
path: root/commands/import_jekyll_test.go
AgeCommit message (Collapse)Author
2022-03-17all: gofmt -w -r 'interface{} -> any' .Bjørn Erik Pedersen
Updates #9687
2020-12-03all: Format code with gofumptBjørn Erik Pedersen
See https://github.com/mvdan/gofumpt
2019-11-25commands: Fix jekyll metadata import on individual postsChris Trimble
Prior refactor had eliminated writing FrontMatter for Jekyll imports. This fixes that bug as well as adds a regression test. Also removed unused site var, replaced some raw strings, and added regression test for \r\n removal. Fixes #5576
2019-08-12tests: Convert from testify to quicktestBjørn Erik Pedersen
2018-12-12importer: fix jekyll import highlight optionsJean-François YUEN
2018-01-28Only set 'url' if permalink in metadata and remove duplicate confirm msgColin Seymour
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
2017-04-22commands: Import Octopress image tag in Jekyll importerStefan Buynov
2017-03-18Case insensitive translation of the 'more' tag when importing from JekyllStefan Buynov
2015-12-07Fix copyright headers in source filesBjørn Erik Pedersen
Still need to add some missing headers and an AUTHORS file. See #1646
2015-12-02Move `import jekyll` functions to import_jekyll.goAnthony Fok
Also rename import_test.go to import_jekyll_test.go