Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-07-22Fix livereload for @import caseBjørn Erik Pedersen
Fixes #6106
2019-03-24all: Apply staticcheck recommendationsBjørn Erik Pedersen
2019-03-23Run gofmt -sBjørn Erik Pedersen
2019-02-26Rewrite relative action URLSBerin Larson
Fixes #5701
2018-12-17transform/urlreplacers: Simplify implementationBjørn Erik Pedersen
2018-12-17transform/urlreplacers: Support unquoted URLs in canonifyURLs replacerBjørn Erik Pedersen
Fixes #5529
2018-12-06Add tpl/site and tpl/hugoBjørn Erik Pedersen
This means that the current `.Site` and ´.Hugo` is available as a globals, so you can do `site.IsServer`, `hugo.Version` etc. Fixes #5470 Fixes #5467 Fixes #5503
2018-08-06Add support for minification of final outputBjørn Erik Pedersen
Hugo Pipes added minification support for resources fetched via ´resources.Get` and similar. This also adds support for minification of the final output for supported output formats: HTML, XML, SVG, CSS, JavaScript, JSON. To enable, run Hugo with the `--minify` flag: ```bash hugo --minify ``` This commit is also a major spring cleaning of the `transform` package to allow the new minification step fit into that processing chain. Fixes #1251
2018-08-05transform: Reduce allocation in the benchmark itselfBjørn Erik Pedersen
2018-08-05transform: Simplify the 0 transformer caseBjørn Erik Pedersen
2017-08-03Add some missing doc commentsJorin Vogel
As pointed out by the linter, some exported functions and types are missing doc comments. The linter warnings have been reduced from 194 to 116. Not all missing comments have been added in this commit though.
2017-06-13all: Update import paths to gohugoio/hugoBjørn Erik Pedersen
2017-04-24Automate the Hugo release processBjørn Erik Pedersen
This commit adds a work flow aroung GoReleaser to get the Hugo release process automated and more uniform: * It can be run fully automated or in two steps to allow for manual edits of the relase notes. * It supports both patch and full releases. * It fetches author, issue, repo info. etc. for the release notes from GitHub. * The file names produced are mainly the same as before, but we no use tar.gz as archive for all Unix versions. * There isn't a fully automated CI setup in place yet, but the release tag is marked in the commit message with "[ci deploy]" Fixes #3358
2017-04-06all: Handle all errorsBjørn Erik Pedersen
As reported by `errcheck`.
2017-02-17all: Refactor to nonglobal Viper, i18n etc.Bjørn Erik Pedersen
This is a final rewrite that removes all the global state in Hugo, which also enables the use if `t.Parallel` in tests. Updates #2701 Fixes #3016
2016-11-23transform: SimplifyBjørn Erik Pedersen
2016-11-04transform: Return any read or write error from ApplyBjørn Erik Pedersen
2016-07-07transform: Add missing GoDocBjørn Erik Pedersen
2016-07-01transform: Explicitly bind LiveReload to server portDragos Plesca
If hugo server is run on port 80 or 443, LiveReload does not correctly bind to the same port, instead using port 35729. This commit adds functionality to inform LiveReload of the correct port to bind to. See https://github.com/livereload/livereload-js/issues/16 Partially contributed by Jeff Minard (@chuyskywalker). Fixes #2205
2016-06-26transform: Don't use helpers.StringToReaderCameron Moore
2016-06-26helpers: Remove ToReader funcsCameron Moore
Remove StringToReader and BytesToReader in favor of using the stdlib directly.
2016-06-05Add Hugo generator tag to home page if not presentBjørn Erik Pedersen
Fixes #2182
2016-03-23transform: Group vars and consts in chain_testBjørn Erik Pedersen
2016-03-23transform: Clean up the var naming mess in chain_testBjørn Erik Pedersen
2016-03-23transform: Golint fixesBjørn Erik Pedersen
2016-03-14Remove unnecessary type conversionsBjørn Erik Pedersen
2016-03-14transform: Remove unused codeBjørn Erik Pedersen
2016-02-06transform: Complete test statement coverageBjørn Erik Pedersen
"coverage: 100.0% of statements"
2016-02-06Only do one livereload replacementBjørn Erik Pedersen
2016-02-06transform: Add missing test case in livereloadinjectBjørn Erik Pedersen
* Test for both </body> and </BODY> * This also cosmetically changes the behaviour, as the case of the end body tag is kept.
2016-02-06transform: Add missing test case for NewEmptyTransformsBjørn Erik Pedersen
2015-12-11Add copyright header to that source files that don’t have one.Anthony Fok
See #1646
2015-10-15Load livereload.js from "/"Kato Kazuyoshi
Fix #1406 Instead of loading the file from http://localhost:port/, it can be loaded from /.
2015-05-25Apply gofmt -sbep
2015-05-16Add support for URLs relative to context rootbep
Setting `RelativeURLs` to `true` will make all relative URLs in the site *really* relative. And will do so with speed. So: In `/post/myblogpost.html`: `/mycss.css` becomes `../mycss.css` The same in `/index.html` will become: `./mycss.css` etc. Note that absolute URLs will not be touched (either external resources, or URLs constructed with `BaseURL`). The speediness is about the same as before: ``` benchmark old ns/op new ns/op delta BenchmarkAbsURL 17462 18164 +4.02% BenchmarkAbsURLSrcset 18842 19632 +4.19% BenchmarkXMLAbsURLSrcset 18643 19313 +3.59% BenchmarkXMLAbsURL 9283 9656 +4.02% benchmark old allocs new allocs delta BenchmarkAbsURL 24 28 +16.67% BenchmarkAbsURLSrcset 29 32 +10.34% BenchmarkXMLAbsURLSrcset 27 30 +11.11% BenchmarkXMLAbsURL 12 14 +16.67% benchmark old bytes new bytes delta BenchmarkAbsURL 3154 3404 +7.93% BenchmarkAbsURLSrcset 2376 2573 +8.29% BenchmarkXMLAbsURLSrcset 2569 2763 +7.55% BenchmarkXMLAbsURL 1888 1998 +5.83% ``` Fixes #1104 Fixes #622 Fixes #937 Fixes #157
2015-05-12Add data-no-instant to livereload script tagbep
To support instantclick. Fixes #1135
2015-05-04Polish absurlreplacerbep
2015-05-04Rename field i to the more descriptive idxbep
2015-05-04absurlreplacer: remove superfluous code, take 2bep
``` benchmark old ns/op new ns/op delta BenchmarkAbsURL 17946 17454 -2.74% BenchmarkAbsURLSrcset 19236 18979 -1.34% BenchmarkXMLAbsURLSrcset 19046 18688 -1.88% BenchmarkXMLAbsURL 9561 9432 -1.35% benchmark old allocs new allocs delta BenchmarkAbsURL 24 24 +0.00% BenchmarkAbsURLSrcset 29 29 +0.00% BenchmarkXMLAbsURLSrcset 27 27 +0.00% BenchmarkXMLAbsURL 12 12 +0.00% benchmark old bytes new bytes delta BenchmarkAbsURL 3139 3139 +0.00% BenchmarkAbsURLSrcset 2374 2369 -0.21% BenchmarkXMLAbsURLSrcset 2574 2572 -0.08% BenchmarkXMLAbsURL 1871 1871 +0.00% ``` See #1059
2015-05-03absurlreplacer: remove superfluous codebep
``` benchmark old ns/op new ns/op delta BenchmarkAbsURL 18381 17946 -2.37% BenchmarkAbsURLSrcset 19531 19236 -1.51% BenchmarkXMLAbsURLSrcset 19316 19046 -1.40% BenchmarkXMLAbsURL 9818 9561 -2.62% benchmark old allocs new allocs delta BenchmarkAbsURL 24 24 +0.00% BenchmarkAbsURLSrcset 29 29 +0.00% BenchmarkXMLAbsURLSrcset 27 27 +0.00% BenchmarkXMLAbsURL 12 12 +0.00% benchmark old bytes new bytes delta BenchmarkAbsURL 3139 3139 +0.00% BenchmarkAbsURLSrcset 2354 2374 +0.85% BenchmarkXMLAbsURLSrcset 2584 2574 -0.39% BenchmarkXMLAbsURL 1864 1871 +0.38% ``` See #1059
2015-05-03Add benchmark tests for srcset handlingbep
See #1059
2015-05-03Fix testdata: srcset items should be comma separated, according to specbep
See #1059
2015-05-03canonifyurls in srcsetbep
Speed is about the same as before, uses slightly less memory: ``` benchmark old ns/op new ns/op delta BenchmarkAbsURL 17302 17713 +2.38% BenchmarkXMLAbsURL 9463 9470 +0.07% benchmark old allocs new allocs delta BenchmarkAbsURL 28 24 -14.29% BenchmarkXMLAbsURL 14 12 -14.29% benchmark old bytes new bytes delta BenchmarkAbsURL 3422 3144 -8.12% BenchmarkXMLAbsURL 1985 1864 -6.10% ``` Fixes #1059
2015-05-01absurl: export a base url var for testingbep
2015-04-01Make contentTransformer names consistentbep
2015-03-19Format docsbep
2015-03-19Rename interface contentRewriter to contentTransformerbep
Is is a much better name.
2015-03-18transform: remove some superfluous int conversionsbep
2015-03-18Remove URL param from exported AbsURL methodsbep
This is to make it clear that there is only one URL in play, the BaseURL.
2015-03-18Un-export ContentReWriterbep