Bjørn Erik Pedersen [Thu, 19 Apr 2018 10:04:34 +0000 (12:04 +0200)]
Improve .Content vs shortcodes
For the content from other pages in shortcodes there are some chicken and
egg dependencies that is hard to get around. But we can improve on this by preparing the pages in a certain order:
1. The headless bundles goes first. These are page typically page and image collections..
2. Leaf bundles
3. Regular single pages
4. Branch bundles
Fixes #4632
cmal [Tue, 17 Apr 2018 09:29:25 +0000 (11:29 +0200)]
Improve .Get docs
cmal [Tue, 17 Apr 2018 09:29:00 +0000 (11:29 +0200)]
Update missing positional parameter test for .Get
cmal [Tue, 17 Apr 2018 09:24:03 +0000 (11:24 +0200)]
.Get doesn't crash on missing positional param
fixes #4619
cmal [Tue, 17 Apr 2018 08:49:17 +0000 (10:49 +0200)]
.Get function: fix syntax signature
Bjørn Erik Pedersen [Tue, 17 Apr 2018 13:37:05 +0000 (15:37 +0200)]
Improve error message in metadata parse
Fixes #3696
Bjørn Erik Pedersen [Tue, 17 Apr 2018 08:28:32 +0000 (10:28 +0200)]
hugolib: Fix broken test
Bjørn Erik Pedersen [Tue, 17 Apr 2018 08:20:16 +0000 (10:20 +0200)]
parser: Add some context to front matter parse error
Fixes #4638
Lucas Liberacki [Tue, 17 Apr 2018 05:20:14 +0000 (01:20 -0400)]
Updated GetCSV error message (#4636)
hugoreleaser [Mon, 16 Apr 2018 07:33:49 +0000 (07:33 +0000)]
releaser: Prepare repository for 0.40-DEV
[ci skip]
hugoreleaser [Mon, 16 Apr 2018 07:31:26 +0000 (07:31 +0000)]
releaser: Add release notes to /docs for release of 0.39
[ci skip]
hugoreleaser [Mon, 16 Apr 2018 07:31:26 +0000 (07:31 +0000)]
releaser: Bump versions for release of 0.39
[ci skip]
Bjørn Erik Pedersen [Mon, 16 Apr 2018 07:27:39 +0000 (09:27 +0200)]
releaser: Fix LICENSE vs LICENSE.md
Fixes #4631
Bjørn Erik Pedersen [Mon, 16 Apr 2018 07:00:42 +0000 (09:00 +0200)]
Release 0.39
hugoreleaser [Mon, 16 Apr 2018 06:27:26 +0000 (06:27 +0000)]
releaser: Add release notes draft for 0.39
Rename to *-ready.md to continue. [ci skip]
Bjørn Erik Pedersen [Mon, 16 Apr 2018 06:23:32 +0000 (08:23 +0200)]
commands: Re-add the missing releaser command
Bjørn Erik Pedersen [Mon, 16 Apr 2018 05:45:38 +0000 (07:45 +0200)]
Bjørn Erik Pedersen [Mon, 16 Apr 2018 05:43:59 +0000 (07:43 +0200)]
Squashed 'docs/' changes from
d9c8fc220..
f9a5dc59b
f9a5dc59b Code Toggle block added to doc site final batch Templates ✅ Variables ✅
4d4107968 Add eSolia as new sponsor
000fed94e Add missing closing tags for li in menu template example
f462b620f Clarify that local CSV files cannot be inside data dir
ae083641a Added hugo-search-index to list of search tools
e2b64d0b7 Remove extra link
2fb4c9af5 Release 0.38.2
59b1c9853 releaser: Prepare repository for 0.39-DEV
92f6a05ea releaser: Add release notes to /docs for release of 0.38.2
76244729e releaser: Bump versions for release of 0.38.2
0960c5fb3 Adjust gray color of tab vs pane in code-toggle.
8ae3aadd7 use code-toggle shortcode when relevant Content Management ✅
455b8b53b Update related.md
6e8d19090 Release 0.38.1
079ba044c releaser: Prepare repository for 0.39-DEV
6f23e6ec1 releaser: Add release notes to /docs for release of 0.38.1
c51692ceb releaser: Bump versions for release of 0.38.1
d37ea6a5e Update related.md
faa2707d0 Update index.md
9ce901dcb Add a forgotten language tag (go-html-template) for code
b05aaed14 Update where.md
4d4760819 Fix typo in code-toggle.md
c5a5250a1 Use the new go-html-template Chroma lexer
2de831f4b Add the full list of Chroma lexers
18114d4b4 Update Output Formats
b069d7f84 Release 0.38
caaa8355a releaser: Prepare repository for 0.39-DEV
e45b7cc9f releaser: Add release notes to /docs for release of 0.38
40f40906e releaser: Bump versions for release of 0.38
2d52e2e4e Merge commit '
ed8bf081fdbf336e026517b7e1b123c039014ab5'
1439f64a0 docs: Generate docshelper data
5b0edfd79 Add .Site.IsServer
fdb579ad1 Merge commit '
0a23baa6a90901f772c234107c4f12c16c76f4aa'
7b71da1f8 hugolib: Add Reset method to delete key from Scratch
63a131664 docs: Add docs for lang.Merge
55cba056d Merge commit '
3886fc1fef6ac19d58b9ba1bb642d0c6c9a54031'
6f301ebcc docs: Add docs on the new front matter configuration
7ba35ef56 Merge commit '
c0290655825e7bb36e13fb39f89d85b392cf1adc'
3d2cab754 releaser: Prepare repository for 0.38-DEV
095e888e1 releaser: Add release notes to /docs for release of 0.37.1
593fa0dcb releaser: Bump versions for release of 0.37.1
c18c1df54 releaser: Prepare repository for 0.38-DEV
git-subtree-dir: docs
git-subtree-split:
f9a5dc59b77d15cc2c7534e10bcd90bcfeda7bb4
Bjørn Erik Pedersen [Sun, 15 Apr 2018 22:03:56 +0000 (00:03 +0200)]
Remove old LICENSE.md
Closes #4623
Bjørn Erik Pedersen [Sun, 15 Apr 2018 22:03:30 +0000 (00:03 +0200)]
Add a GitHub compatible Apache 2 license text
Bjørn Erik Pedersen [Sun, 15 Apr 2018 21:17:50 +0000 (23:17 +0200)]
tpl/urls: Add anchorize template func
Bjørn Erik Pedersen [Sun, 15 Apr 2018 19:06:57 +0000 (21:06 +0200)]
tpl/path: Add path.Join
Bjørn Erik Pedersen [Sun, 15 Apr 2018 18:54:22 +0000 (20:54 +0200)]
tpl: Add path.Split template func
Bjørn Erik Pedersen [Sun, 15 Apr 2018 17:31:42 +0000 (19:31 +0200)]
hugolib: Do not reset .Page.Scratch on rebuilds
Fixes #4627
Bjørn Erik Pedersen [Sun, 15 Apr 2018 15:07:49 +0000 (17:07 +0200)]
resource: Implement Resource.Content
Fixes #4622
Bjørn Erik Pedersen [Sun, 15 Apr 2018 14:42:54 +0000 (16:42 +0200)]
Make Page.Content a method that returns interface{}
To prepare for a `Resource.Content` method.
See #4622
Bjørn Erik Pedersen [Sun, 15 Apr 2018 12:34:34 +0000 (14:34 +0200)]
source: Remove deprecated File.Bytes
Bjørn Erik Pedersen [Sun, 15 Apr 2018 07:46:02 +0000 (09:46 +0200)]
commands: Remove accidental and breaking space in baseURL flag
And added key-trimming to prevent future mishaps.
See #4607
Bjørn Erik Pedersen [Sat, 14 Apr 2018 08:34:02 +0000 (10:34 +0200)]
commands: Properly handle CLI slice arguments
Like `--disableKinds` -- this handling was kind of broken when we recently moved this from global vars
See #4607
Bjørn Erik Pedersen [Sat, 14 Apr 2018 07:17:30 +0000 (09:17 +0200)]
commands: Correctly handle destination and i18n-warnings
And add some more CLI tests.
See #4607
Bjørn Erik Pedersen [Fri, 13 Apr 2018 06:42:29 +0000 (08:42 +0200)]
commands: Fix handling of persistent CLI flags
See #4607
Bjørn Erik Pedersen [Thu, 12 Apr 2018 10:19:46 +0000 (12:19 +0200)]
hugolib: Fix livereload of bundled pages
Fixes #4607
Bjørn Erik Pedersen [Thu, 12 Apr 2018 07:31:53 +0000 (09:31 +0200)]
commands: Fix failing Travis server test
Bjørn Erik Pedersen [Wed, 11 Apr 2018 20:41:48 +0000 (22:41 +0200)]
Allow "*/" inside commented out shortcodes
Fixes #4608
Bjørn Erik Pedersen [Wed, 11 Apr 2018 18:17:28 +0000 (20:17 +0200)]
commands: Make commands.Execute return a Response object
We have no global `Hugo` object no more (yay!), and there are some external tools that depends on that value.
These tools need to use get that value from `Response.Result`.
Note that `commands.Execute` now also takes the arguments as a string slice. This should also make it easier to use, not having to modify `os.Args`.
This commit also wraps up this particular issue. Phew!
Test coverage in /commands before: 14.4%
Now: 53.5%
Still work to do, now it is at least possible.
Closes #4598
Bjørn Erik Pedersen [Wed, 11 Apr 2018 08:15:01 +0000 (10:15 +0200)]
commands: Remove some TODOs
See #4598
Bjørn Erik Pedersen [Wed, 11 Apr 2018 08:09:45 +0000 (10:09 +0200)]
commands: Fix the config command
It now also accepts the `-s` (source) flag.
See #4598
Bjørn Erik Pedersen [Wed, 11 Apr 2018 07:57:43 +0000 (09:57 +0200)]
commands: Fix some flag diff
The CLI docs output is now identical with the master version.
See #4598
Bjørn Erik Pedersen [Wed, 11 Apr 2018 07:38:58 +0000 (09:38 +0200)]
commands: Add basic server test
See #4598
Bjørn Erik Pedersen [Wed, 11 Apr 2018 06:55:50 +0000 (08:55 +0200)]
commands: Fix TestFixURL
See #4598
Bjørn Erik Pedersen [Wed, 11 Apr 2018 06:39:39 +0000 (08:39 +0200)]
commands: Remove the Hugo global
There are still some cleaning to do, but that felt good.
See #4598
Bjørn Erik Pedersen [Wed, 11 Apr 2018 06:31:18 +0000 (08:31 +0200)]
commands: Make the limit command work again
See #4598
Bjørn Erik Pedersen [Wed, 11 Apr 2018 05:54:08 +0000 (07:54 +0200)]
commands: Move the commands related logic to its own file
See #4598
Bjørn Erik Pedersen [Tue, 10 Apr 2018 17:16:09 +0000 (19:16 +0200)]
commands: Add CLI tests
See #4598
Bjørn Erik Pedersen [Tue, 10 Apr 2018 07:19:26 +0000 (09:19 +0200)]
commands: Make the hugo command non-global
See #4598
Bjørn Erik Pedersen [Tue, 10 Apr 2018 06:55:13 +0000 (08:55 +0200)]
commands: Extract some common types into its own file
See #4598
Bjørn Erik Pedersen [Mon, 9 Apr 2018 20:28:03 +0000 (22:28 +0200)]
commands: Make the server command non-global
See #4598
Bjørn Erik Pedersen [Mon, 9 Apr 2018 20:09:11 +0000 (22:09 +0200)]
commands: Make the gen commands non-global
See #4598
Bjørn Erik Pedersen [Mon, 9 Apr 2018 18:42:08 +0000 (20:42 +0200)]
commands: Make the list commands non-global
See #4598
Bjørn Erik Pedersen [Mon, 9 Apr 2018 18:37:17 +0000 (20:37 +0200)]
commands: Make the import commands non-global
See #4598
Bjørn Erik Pedersen [Mon, 9 Apr 2018 18:05:09 +0000 (20:05 +0200)]
comands: Make the config command non-global
See #4598
Bjørn Erik Pedersen [Mon, 9 Apr 2018 17:36:10 +0000 (19:36 +0200)]
commands: Make the new commands non-global
See #4598
Bjørn Erik Pedersen [Mon, 9 Apr 2018 16:49:13 +0000 (18:49 +0200)]
commands: Make convert command non-global
See #4598
Bjørn Erik Pedersen [Mon, 9 Apr 2018 16:38:21 +0000 (18:38 +0200)]
commands: Make more commands non-global
See #4598
Bjørn Erik Pedersen [Mon, 9 Apr 2018 15:54:43 +0000 (17:54 +0200)]
commands: Make benchmark non-global
See #4598
Bjørn Erik Pedersen [Mon, 9 Apr 2018 15:20:18 +0000 (17:20 +0200)]
commands: Start of flag cleaning
See #4598
Bjørn Erik Pedersen [Wed, 11 Apr 2018 07:47:58 +0000 (09:47 +0200)]
commands: Use short date format in CLI docs
To make it possible to compare the output.
See #4598
Hudson Muff [Fri, 23 Mar 2018 16:34:45 +0000 (17:34 +0100)]
Update README.md
I discovered an inconsistency between the website documentation (https://gohugo.io/getting-started/installing/#source) and this README, for installing from source. I checked them both and the website seems to be newer so I would like to propose updating this README to install Hugo using mage (unless it doesn't really matter).
Bjørn Erik Pedersen [Mon, 9 Apr 2018 09:12:05 +0000 (11:12 +0200)]
Sync dependencies
Bjørn Erik Pedersen [Mon, 9 Apr 2018 09:01:01 +0000 (11:01 +0200)]
Bump Go versions
Fixes #4545
hugoreleaser [Mon, 9 Apr 2018 08:19:32 +0000 (08:19 +0000)]
releaser: Prepare repository for 0.39-DEV
[ci skip]
hugoreleaser [Mon, 9 Apr 2018 08:17:15 +0000 (08:17 +0000)]
releaser: Add release notes to /docs for release of 0.38.2
[ci skip]
hugoreleaser [Mon, 9 Apr 2018 08:17:14 +0000 (08:17 +0000)]
releaser: Bump versions for release of 0.38.2
[ci skip]
Bjørn Erik Pedersen [Mon, 9 Apr 2018 08:08:33 +0000 (10:08 +0200)]
Release 0.38.2
hugoreleaser [Mon, 9 Apr 2018 08:00:48 +0000 (08:00 +0000)]
releaser: Add release notes draft for 0.38.2
Rename to *-ready.md to continue. [ci skip]
Bjørn Erik Pedersen [Sun, 8 Apr 2018 08:20:39 +0000 (10:20 +0200)]
Bump the debouncer dependency
No practical difference.
Bjørn Erik Pedersen [Sat, 7 Apr 2018 16:09:31 +0000 (18:09 +0200)]
Use a versioned debounce dependency
Bjørn Erik Pedersen [Sat, 7 Apr 2018 09:27:22 +0000 (11:27 +0200)]
Fix handling of --contentDir etc. flag
We need to revisit the commands package re globals and tests, but this should fix the init order of flags and languages.
Fixes #4589
Anthony Fok [Sat, 7 Apr 2018 08:25:52 +0000 (02:25 -0600)]
travis: Disable shallow clone to fix TestPageWithLastmodFromGitInfo
Fixes #4584
Anthony Fok [Sat, 7 Apr 2018 08:17:48 +0000 (02:17 -0600)]
Bjørn Erik Pedersen [Sat, 7 Apr 2018 08:10:06 +0000 (10:10 +0200)]
Fix handling of content files with "." in them
As in, more dots than just to separate the extension and any language indicator.
Fixes #4559
Bjørn Erik Pedersen [Fri, 6 Apr 2018 16:14:11 +0000 (18:14 +0200)]
And now really disable failing test on Travis
See #4584
Bjørn Erik Pedersen [Fri, 6 Apr 2018 15:31:13 +0000 (17:31 +0200)]
Disable failing test on Travis
See #4584
Bjørn Erik Pedersen [Fri, 6 Apr 2018 10:01:38 +0000 (12:01 +0200)]
Revert "Try an older GitMap version"
This reverts commit
3a3261a3b9565526840b1ff1bced01e1873cc6e5.
Bjørn Erik Pedersen [Fri, 6 Apr 2018 08:59:47 +0000 (10:59 +0200)]
Try an older GitMap version
To test if the test failures goes away.
Bjørn Erik Pedersen [Fri, 6 Apr 2018 08:41:28 +0000 (10:41 +0200)]
hugolib: Set .Parent in bundled pages to its owner
Fixes #4582
hugoreleaser [Thu, 5 Apr 2018 16:39:05 +0000 (16:39 +0000)]
releaser: Prepare repository for 0.39-DEV
[ci skip]
hugoreleaser [Thu, 5 Apr 2018 16:35:25 +0000 (16:35 +0000)]
releaser: Add release notes to /docs for release of 0.38.1
[ci skip]
hugoreleaser [Thu, 5 Apr 2018 16:35:25 +0000 (16:35 +0000)]
releaser: Bump versions for release of 0.38.1
[ci skip]
Bjørn Erik Pedersen [Thu, 5 Apr 2018 16:31:17 +0000 (18:31 +0200)]
Release 0.38.1
hugoreleaser [Thu, 5 Apr 2018 16:27:24 +0000 (16:27 +0000)]
releaser: Add release notes draft for 0.38.1
Rename to *-ready.md to continue. [ci skip]
Bjørn Erik Pedersen [Thu, 5 Apr 2018 16:02:52 +0000 (18:02 +0200)]
Fix livereload for the home page bundle
Fixes #4576
Anthony Fok [Thu, 5 Apr 2018 15:35:47 +0000 (09:35 -0600)]
snap: Revert to "mage test" because "mage check" fails
"mage check", which runs "go test", gofmt, "go vet", and
"go test -race", fails one way or another especially on
on non-amd64 architectures, and sometimes even on amd64 too.
Partially reverting my undocumented change in commit
294c0f8.
Fixes #4578
Anthony Fok [Thu, 5 Apr 2018 13:15:51 +0000 (07:15 -0600)]
snap: Add bash completion
Anthony Fok [Thu, 5 Apr 2018 13:14:51 +0000 (07:14 -0600)]
snap: Fix empty BuildDate in "hugo version"
Previously, "snap run hugo version" returns an empty BuildDate like so:
Hugo Static Site Generator v0.38 linux/amd64 BuildDate:
Fix by overriding the default build target of snapcraft's go plugin.
Bjørn Erik Pedersen [Thu, 5 Apr 2018 08:57:13 +0000 (10:57 +0200)]
Fix some livereload content regressions
Introduced in Hugo 0.38.
Fixes #4566
Anthony Fok [Thu, 5 Apr 2018 12:01:11 +0000 (06:01 -0600)]
Update github.com/bep/gitmap to fix snap build
Fixes #4538
Brian Fitzgerald [Fri, 23 Mar 2018 05:11:35 +0000 (22:11 -0700)]
Fix two tests that are broken on Windows
Put guards around TestPageBundlerCaptureSymlinks and
TestPageBundlerSiteWitSymbolicLinksInContent so that they aren't
run on Windows (they both use symbolic links and the Go library
implementation requires administrator mode on Windows).
Bjørn Erik Pedersen [Wed, 4 Apr 2018 07:29:59 +0000 (09:29 +0200)]
commands: Handle mass content etc. edits in server mode
Fixes #4563
hugoreleaser [Mon, 2 Apr 2018 11:06:04 +0000 (11:06 +0000)]
releaser: Prepare repository for 0.39-DEV
[ci skip]
hugoreleaser [Mon, 2 Apr 2018 11:03:32 +0000 (11:03 +0000)]
releaser: Add release notes to /docs for release of 0.38
[ci skip]
hugoreleaser [Mon, 2 Apr 2018 11:03:32 +0000 (11:03 +0000)]
releaser: Bump versions for release of 0.38
[ci skip]
Bjørn Erik Pedersen [Mon, 2 Apr 2018 10:53:20 +0000 (12:53 +0200)]
Release 0.38
hugoreleaser [Mon, 2 Apr 2018 10:32:48 +0000 (10:32 +0000)]
releaser: Add release notes draft for 0.38
Rename to *-ready.md to continue. [ci skip]
Anthony Fok [Mon, 2 Apr 2018 06:44:05 +0000 (00:44 -0600)]
travis: Clean up and increase verbosity
Bjørn Erik Pedersen [Mon, 2 Apr 2018 06:53:34 +0000 (08:53 +0200)]
Squashed 'docs/' changes from
3068989b9..
d9c8fc220
d9c8fc220 Rebuild Chroma CSS
a9168b106 Adds missing word
ebaa172af Remove note about enabling custom GitLab domains
2ef3918b2 Add code toggler
41878b6ca Clarify the use of .GetPage with page bundles
ffcb26270 Fix broken link for configuration.md
1e72e2b3e Fixed typo in heading - Hightlighter
72b2db77c Change "on the form" to "of the form"
e15e6966f Fix example GitHub url
git-subtree-dir: docs
git-subtree-split:
d9c8fc220710fe2bdcc2c61afd9e40e7233953cf
Bjørn Erik Pedersen [Mon, 2 Apr 2018 06:53:34 +0000 (08:53 +0200)]
Bjørn Erik Pedersen [Mon, 2 Apr 2018 06:52:10 +0000 (08:52 +0200)]
docs: Generate docshelper data
And fix build ...
Bjørn Erik Pedersen [Mon, 2 Apr 2018 06:49:54 +0000 (08:49 +0200)]
docshelper: List Chroma lexers
Fixes #4554
Anthony Fok [Mon, 2 Apr 2018 04:48:31 +0000 (22:48 -0600)]
travis: Run "gem install" without sudo
Running "sudo gem install" was causing random errors like the following:
ERROR: While executing gem ... (Errno::EACCES)
Permission denied @ rb_sysopen - /home/travis/.rvm/gems/ruby-2.4.1/cache/asciidoctor-1.5.6.2.gem
Perhaps sudo is no longer necessary, even on OS X? :-)