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
2016-09-30Fix URL in multilanguage sitemap indexBjørn Erik Pedersen
Fixes #2509
2016-09-28Deprecate PageMeta.WordCount etc.Bjørn Erik Pedersen
Fix #2503
2016-09-27Fix half-broken self-closing shortcodesBjørn Erik Pedersen
Fixes #2498
2016-09-23Fix leaky goroutine Bjørn Erik Pedersen
By making the err chan buffered so both go routines can return. Also make sure that any errors are logged. Fixes #2488
2016-09-23Make multilingual respect DisableSitemapBjørn Erik Pedersen
Fixes #2485
2016-09-21Add TestChangeDefaultLanguageBjørn Erik Pedersen
2016-09-19Remove some unused varsBjørn Erik Pedersen
2016-09-19commands: Add some band-aid to convertBjørn Erik Pedersen
Fixes #2458
2016-09-18Revert the "standardize author data"Bjørn Erik Pedersen
There were some breaking changes etc. that is too late to fix for 0.17. Let us think this through and add proper author support for Hugo 0.18. Fixes #2464 Revert "docs: Add documentation for author profiles" This reverts commit b6673e5309685ae162fdef2dc39c3ce4385c6005. Revert "Add First Class Author Support" This reverts commit cf978c06496d99e76b08418422dda5797d90fed6.
2016-09-17Make suure SectionPagesMenu setting is always loaded per languageBjørn Erik Pedersen
2016-09-17Remove Authors.SortBjørn Erik Pedersen
We may add it again in the future, but let us try to keep the API as small as possible for now. See #1850
2016-09-17Add First Class Author SupportDerek Perkins
Closes #1850
2016-09-16tpl: Add EnableMissingTranslationPlaceholders optiondigitalcraftsman
Fixes #2451
2016-09-15Make paginate settings configurable per languageBjørn Erik Pedersen
Fixes #2449
2016-09-14Do not add lang prefix in URL when set in frontmatterBjørn Erik Pedersen
Fixes #2450
2016-09-14Lazy calculate WordCount, ReadingTime and FuzzyWordCountBjørn Erik Pedersen
This avoids having to execute these expensive operations for sites not using these values. This commit sums up a set of wordcounting and autosummary related performance improvements. The effect of these kind of depends on what features your site use, but a benchmark from 4 Hugo sites in the wild shows promise: ``` benchmark old ns/op new ns/op delta BenchmarkHugo-4 21293005843 20032857342 -5.92% benchmark old allocs new allocs delta BenchmarkHugo-4 65290922 65186032 -0.16% benchmark old bytes new bytes delta BenchmarkHugo-4 9771213416 9681866464 -0.91% ``` Closes #2378
2016-09-14Improve TotalWords counter funcBjørn Erik Pedersen
It is obviously more efficient when we do not care about the actual words. ``` BenchmarkTotalWords-4 100000 18795 ns/op 0 B/op 0 allocs/op BenchmarkTotalWordsOld-4 30000 46751 ns/op 6400 B/op 1 allocs/op ```
2016-09-14Avoid splitting words for summaryBjørn Erik Pedersen
For people using autogenerated summaries, this is one of the hot spots in the memory department. We don't need to split al the content into words to do proper summary truncation. This is obviously more effective: ``` BenchmarkTestTruncateWordsToWholeSentence-4 300000 4720 ns/op 0 B/op 0 allocs/op BenchmarkTestTruncateWordsToWholeSentenceOld-4 100000 17699 ns/op 3072 B/op 3 allocs/op ```
2016-09-12Add Language.LanguageNameBjørn Erik Pedersen
Fixes #2435
2016-09-12Support site menu per languageBjørn Erik Pedersen
Fixes #2434
2016-09-12hugolib: Fix typos in testsCameron Moore
2016-09-11Fix reload dir matching in themeBjørn Erik Pedersen
Fixes #2430
2016-09-11Handle symlink change eventBjørn Erik Pedersen
Hugo 0.16 announced support for symbolic links for the root folders, /content, /static etc., but this got broken pretty fast. The main problem this commit tries to solve is the matching of file change events to "what changed". An example: ContentDir: /mysites/site/content where /mysites/site/content is a symlink to /mycontent /mycontent: /mypost1.md /post/mypost2.md * A change to mypost1.md (on OS X) will trigger a file change event with name "/mycontent/mypost1.md" * A change to mypost2.md gives event with name "/mysites/site/content/mypost2.md" The first change will not trigger a correct update of Hugo before this commit. This commit fixes this by doing a two-step check: 1. Check if "/mysites/site/content/mypost2.md" is within /mysites/site/content 2. Check if "/mysites/site/content/mypost2.md" is within the real path that /mysites/site/content points to Fixes #2265 Closes #2273
2016-09-11Prevent panic on empty authorlistMathias Biilmann
2016-09-09Redirect to root when DefaultContentLanguageInSubdir = falseBjørn Erik Pedersen
Fixes #2422
2016-09-09Fix paginator counter on x86-32Bjørn Erik Pedersen
Atomic operations with 64 bit values must be aligned for 64-bit on x86-32. According to the spec: "The first word in a global variable or in an allocated struct or slice can be relied upon to be 64-bit aligned." The above wasn't enough for the `paginationPageCount` on `SiteInfo`, maybe due to how `SiteInfo` is embedded. This commit adds a 4 byte padding before the `uint64` that creates the correct alignment. Fixes #2415
2016-09-08Fix shortcode vs pygmentsBjørn Erik Pedersen
This is the nth attempt to fix an issue by changing the placeholder token pattern, but now we actually have tests for all the historic trouble cases. Fixes #2223
2016-09-08Fix pagination page counter on 32 bitBjørn Erik Pedersen
Updates #2415
2016-09-08Reset the i18n func map on reloadBjørn Erik Pedersen
Also improve the error message on missing resource bundles.
2016-09-08Add missing read lock in getNodesBjørn Erik Pedersen
2016-09-06Fix go vet 1.7 issuesBjørn Erik Pedersen
Updates #2309
2016-09-06Make sure the 404 node has .Data.PagesBjørn Erik Pedersen
Updates #2309
2016-09-06Fix site reset for benchmarks etc.Bjørn Erik Pedersen
Updates #2309
2016-09-06Fix multilingual reload when shortcode changesBjørn Erik Pedersen
This commit also refines the partial rebuild logic, to make sure we do not do more work than needed. Updates #2309
2016-09-06Set lang template globals for each site when render shortcodesBjørn Erik Pedersen
We should get rid of these globals, but that is another month.
2016-09-06Small adjustment to SiteInfo initBjørn Erik Pedersen
After a visual inspection to make (pretty) sure it is correct re multiple languages. Updates #2309
2016-09-06Create a copy of the section node for RSSBjørn Erik Pedersen
So the Permalink gets correct when listing translations. I have also checked the other relevant places to make sure we do not overwrite node values we need later. Pointers can be tricky, but lesson learned is: A copy is cheap. Updates #2309
2016-09-06Fix Data in multisitesBjørn Erik Pedersen
Updates #2309
2016-09-06Add JSON config to the multilanguage testingBjørn Erik Pedersen
Updates #2309
2016-09-06Fix YAML loading of multilingual configBjørn Erik Pedersen
And some other minor fixes from code review. Updates #2309
2016-09-06Add data testsBjørn Erik Pedersen
Updates #2309
2016-09-06Create a Node map to get proper node translationsBjørn Erik Pedersen
In a multi-language setup, before this commit the Node's Translations() method would return some "dummy nodes" that would point to the correct page (Permalink), but would not be the same as the node it points to -- it would not have the translated title etc. The node creation is, however, so mingled with rendering, whihc is too early to have any global state, so the nodes has to be split in a prepare and a render phase. This commits does that with as small a change as possible. This implementation is a temp solution until we fix #2297. Updates #2309
2016-09-06Add IsTranslated to Node and PageBjørn Erik Pedersen
Makes the templates simpler. See #2309
2016-09-06Remove unused Multilingual Viper defaultBjørn Erik Pedersen
See #2312
2016-09-06Render main content language in root by defaultBjørn Erik Pedersen
Fixes #2312
2016-09-06Add parent as owner to SiteBjørn Erik Pedersen
And pull up common member vars like Tmpl and Multilinguage. Or: the final multilingual TODO-fixes. See #2309
2016-09-06Make the check command work in multilingual modeBjørn Erik Pedersen
Or: some more multilingual TODO-fixes. See #2309
2016-09-06Make sure drafts etc. are not processedBjørn Erik Pedersen
See #2309
2016-09-06Multilingual TODO-fixes, take 1Bjørn Erik Pedersen
See #2309
2016-09-06Fix some corner cases in revised summary handlingBjørn Erik Pedersen
And clean up the test. See #2309