Bjørn Erik Pedersen
9a6216c18b
Hugo 0.49
2018-09-24 12:51:52 +02:00
Bjørn Erik Pedersen
55aa91185d
Merge branch 'temp49'
2018-09-24 12:45:42 +02:00
Bjørn Erik Pedersen
48413d76f4
build: Update the temp docker script
2018-09-24 12:41:12 +02:00
hugoreleaser
e0a36421ec
releaser: Prepare repository for 0.50-DEV
...
[ci skip]
2018-09-24 10:04:24 +00:00
hugoreleaser
66b9e2bff2
releaser: Prepare repository for 0.50-DEV
...
[ci skip]
2018-09-24 10:04:24 +00:00
hugoreleaser
c07b3b385d
releaser: Add release notes to /docs for release of 0.49
...
[ci skip]
2018-09-24 10:01:04 +00:00
hugoreleaser
398996e8b0
releaser: Add release notes to /docs for release of 0.49
...
[ci skip]
2018-09-24 10:01:04 +00:00
hugoreleaser
c1175a12a3
releaser: Bump versions for release of 0.49
...
[ci skip]
2018-09-24 10:01:04 +00:00
hugoreleaser
7f005f5e98
releaser: Bump versions for release of 0.49
...
[ci skip]
2018-09-24 10:01:04 +00:00
Bjørn Erik Pedersen
011e3aaa9e
Release 0.49
2018-09-24 11:52:47 +02:00
Bjørn Erik Pedersen
2966f62546
docs: Document directory based archetypes
...
See #4535
2018-09-24 11:52:25 +02:00
Bjørn Erik Pedersen
3697448450
docs: Document directory based archetypes
...
See #4535
2018-09-24 11:52:25 +02:00
hugoreleaser
2638b04c62
releaser: Add release notes draft for 0.49
...
Rename to *-ready.md to continue. [ci skip]
2018-09-24 11:49:07 +02:00
Bjørn Erik Pedersen
73dcd02ede
Add showcase archetype folder
...
See https://github.com/gohugoio/hugo/issues/4535
2018-09-24 11:47:49 +02:00
Bjørn Erik Pedersen
cf47f43ff1
ci: Add "go mod download" to CI scripts
...
To hopefully make them less flaky.
2018-09-24 10:31:59 +02:00
Bjørn Erik Pedersen
0a55ad11b8
docs: Regenerate CLI docs
2018-09-24 10:11:41 +02:00
Bjørn Erik Pedersen
3b6bd1210a
docs: Regenerate CLI docs
2018-09-24 10:11:41 +02:00
Bjørn Erik Pedersen
e09866c2d9
docs: Document group
...
Fixes https://github.com/gohugoio/hugoDocs/issues/597
2018-09-24 10:07:50 +02:00
Bjørn Erik Pedersen
8388cd90e8
docs: Document group
...
Fixes https://github.com/gohugoio/hugoDocs/issues/597
2018-09-24 10:07:50 +02:00
Bjørn Erik Pedersen
807c551922
Squashed 'docs/' changes from 6b00298bb..e5e98b950
...
e5e98b950 Update code-toggle.md
340c9c623 Update 'Fetch from Github' installation instructions in line with Github README
d9f06c23c Add tip about clearing browser cache (#608 )
7c9df4731 Adding Remark as additional Comments Alternatives for hugo (#607 )
b1ce8bf02 Revert "Temp change of baseURL"
fdbc582ff Temp change of baseURL
5ec663bd6 Fix wrong date in frontmatter config example (#602 )
0b3022eb1 Fix broken link to https://www.wercker.com (#603 )
b4a7e31a6 Turn off minification
bfcc1ac21 Add a Tweet
8be09c0b4 Remove unused data file
git-subtree-dir: docs
git-subtree-split: e5e98b950c
2018-09-23 23:48:53 +02:00
Bjørn Erik Pedersen
ef986358a4
Merge commit '807c551922707fc5ae0eb26e8f01638c0c63fdb3'
2018-09-23 23:48:53 +02:00
Bjørn Erik Pedersen
bc57f5c36e
Merge commit '807c551922707fc5ae0eb26e8f01638c0c63fdb3'
2018-09-23 23:48:53 +02:00
Bjørn Erik Pedersen
fe6a6f2737
resource/integrity: Make Data.Integrity be of type template.HTMLAttr
2018-09-23 23:40:35 +02:00
Bjørn Erik Pedersen
2650fa772b
Add directory based archetypes
...
Given this content:
```bash
archetypes
├── default.md
└── post-bundle
├── bio.md
├── images
│ └── featured.jpg
└── index.md
```
```bash
hugo new --kind post-bundle post/my-post
```
Will create a new folder in `/content/post/my-post` with the same set of files as in the `post-bundle` archetypes folder.
This commit also improves the archetype language detection, so, if you use template code in your content files, the `.Site` you get is for the correct language. This also means that it is now possible to translate strings defined in the `i18n` bundles, e.g. `{{ i18n "hello" }}`.
Fixes #4535
2018-09-23 19:27:23 +02:00
Ricardo N Feliciano
ef525b15d4
Build on CircleCI outside of GOPATH
...
Fixes #5135
2018-09-23 18:50:26 +02:00
Bjørn Erik Pedersen
f916814697
Prevent symbolic links from themes
2018-09-23 17:18:35 +02:00
Ricardo N Feliciano
681f14fc9b
tpl/collections: Allow first function to return an empty slice
...
Fixes #5235
2018-09-22 20:58:46 +02:00
Ricardo N Feliciano
cae07ce84b
tpl/collections: Allow first function to return an empty slice
...
Fixes #5235
2018-09-22 20:58:46 +02:00
Ricardo N Feliciano
4f9c109dc5
tpl/opengraph: Use safeHTMLAttr instead of safeHTML for HTML attributes
...
Fixes #5236
2018-09-22 00:36:15 +02:00
Bjørn Erik Pedersen
f1a00b2069
hugolib: Remove deprecated rssURI
2018-09-21 14:30:57 +02:00
Bjørn Erik Pedersen
df4cbbd3bd
commands: Remove deprecated flags
2018-09-21 14:27:35 +02:00
Bjørn Erik Pedersen
2e2e34a935
hugolib: Deprecate Pages.Sort
...
In favour of ByWeight.
2018-09-21 14:23:00 +02:00
Bjørn Erik Pedersen
2eed35c826
hugolib: Minor cleaning in the sorting code
2018-09-21 14:13:45 +02:00
Bjørn Erik Pedersen
dd692c710a
hugolib: Clear the page cache per render
...
This is a slight performance optimization with no functional effect.
See #5239
2018-09-21 11:21:15 +02:00
Bjørn Erik Pedersen
ed4f1edbd7
hugolib: Compare every element in pages cache
...
It is slightly slower, but correctnes is, of course, more important:
```bash
benchmark old ns/op new ns/op delta
BenchmarkSortByWeightAndReverse-4 367 645 +75.75%
benchmark old allocs new allocs delta
BenchmarkSortByWeightAndReverse-4 2 2 +0.00%
benchmark old bytes new bytes delta
BenchmarkSortByWeightAndReverse-4 64 64 +0.00%
```
Running the same benchmark without any cache (i.e. resorting the slice on every iteration) and then compare it to the current version shows that it still is plenty worth it:
```bash
▶ benchcmp 2.bench 1.bench
benchmark old ns/op new ns/op delta
BenchmarkSortByWeightAndReverse-4 1358757 645 -99.95%
benchmark old allocs new allocs delta
BenchmarkSortByWeightAndReverse-4 17159 2 -99.99%
benchmark old bytes new bytes delta
BenchmarkSortByWeightAndReverse-4 274573 64 -99.98%
```
Closes #5239
2018-09-21 11:21:15 +02:00
Bjørn Erik Pedersen
e5e98b950c
Update code-toggle.md
2018-09-20 14:39:55 +02:00
Sapphire Mason-Brown
340c9c6236
Update 'Fetch from Github' installation instructions in line with Github README
2018-09-20 11:07:40 +02:00
Admiral Martin
d9f06c23c4
Add tip about clearing browser cache ( #608 )
...
Ref: https://discourse.gohugo.io/t/hugo-server-command-serving-wrong-page/13576/7
2018-09-19 13:02:41 -04:00
Alex
7c9df4731e
Adding Remark as additional Comments Alternatives for hugo ( #607 )
2018-09-18 09:28:47 -04:00
Bjørn Erik Pedersen
058cc6c2c3
Revert "hugolib: Normalize permalink path segments"
...
This reverts commit 06976ebb87 .
Fixes #5223
2018-09-18 09:27:49 +02:00
Bjørn Erik Pedersen
b1ce8bf027
Revert "Temp change of baseURL"
...
This reverts commit fdbc582ff2 .
2018-09-17 16:54:29 +02:00
Bjørn Erik Pedersen
fdbc582ff2
Temp change of baseURL
2018-09-17 15:42:19 +02:00
Bjørn Erik Pedersen
4b82f74848
Update releasenotes_writer.go
...
Add @onedrawingperday to the release credit list. The activity on the theme repo is increasing and the work he and @digitalcraftsman
is doing is very much appreciated.
2018-09-14 23:25:54 +02:00
Anthony Nelzin-Santos
5ec663bd60
Fix wrong date in frontmatter config example ( #602 )
2018-09-14 14:11:34 -04:00
Christian Oliff
0b3022eb12
Fix broken link to https://www.wercker.com ( #603 )
...
(requires the www)
2018-09-14 14:11:01 -04:00
Bjørn Erik Pedersen
b4a7e31a6e
Turn off minification
...
See #604
2018-09-14 19:26:25 +02:00
Cameron Moore
06976ebb87
hugolib: Normalize permalink path segments
...
When constructing permalinks, ensure that path segments are normalized
with PathSpec.MakeSegment instead of PathSpec.URLize.
Fixes #4926
2018-09-14 11:35:26 +02:00
Bjørn Erik Pedersen
555a5612b2
hugolib: Do not set RSS as Kind in RSS output
...
Before Hugo this commit we set the pseudo page kind RSS on the page when output to RSS. This had some unintended side effects, esp. when the only output format for that page was RSS.
For the page kinds that can have multiple output formats, the Kind should be one of the standard home, page etc.
Fixes #5138
2018-09-14 11:33:02 +02:00
Bjørn Erik Pedersen
75e54345f9
hugolib: Make sure ambiguous lookups in GetPage gets an error
...
See #5138
2018-09-14 11:33:02 +02:00
Bjørn Erik Pedersen
f6dcc93bc3
docs: Add docs for append
...
See #5190
2018-09-14 10:12:08 +02:00