Bjørn Erik Pedersen [Wed, 5 Oct 2016 12:27:52 +0000 (14:27 +0200)]
travis: Fix asciidoctor build
Bjørn Erik Pedersen [Wed, 5 Oct 2016 12:11:56 +0000 (14:11 +0200)]
travis: Lock asciidoctor to 1.5.4
1.5.5 (the newly released) seems to break.
Bjørn Erik Pedersen [Wed, 5 Oct 2016 08:23:45 +0000 (10:23 +0200)]
docs: Regenerate commands doc
Bjørn Erik Pedersen [Wed, 5 Oct 2016 08:20:25 +0000 (10:20 +0200)]
Add hugo env command
Useful for bug reports.
Fixes #2523
Pine [Sun, 2 Oct 2016 22:45:23 +0000 (15:45 -0700)]
docs: Us vs you
Mark D. Blackwell [Sun, 2 Oct 2016 02:19:22 +0000 (22:19 -0400)]
docs: Improve home page
Organize CSS and Javascript files into directories, separating vendor
source code from home-grown.
Separate new properties and selectors in Bootstrap CSS (already edited
for Hugo) from:
1. Original property values; and
2. Changed property values.
For the home page:
1. Clarify the English text;
2. Add some element names to classes in CSS selectors (to speed loading);
3. Document the Owl Carousel and Highlight.js versions;
4. Add Owl Carousel's license;
5. Restore HTML comments to browser source views;
6. Make the beginning GitHub button transparent on focus (like the others);
7. For the final, colored Twitter and Github buttons:
a. Remove the dotted box on focus; and
b. Color them green on active.
8. To increase (layout/) source readability:
a. Place `class` attributes before `href` attributes;
b. In `class` attributes, place more-specific class names before
less-specific; and
c. Comment the beginnings and ends of Bootstrap rows.
9. To increase understandability during development:
a. Document the meaning of CSS file, `HPstyles` by renaming it to
`home-page-style`;
b. Move inline styling to CSS stylesheets;
c. Separate @media queries to a file;
d. Separate the inline Owl Carousel custom Javascript to a file;
e. Use regular Owl Carousel CSS files instead of minified ones; and
f. Rename the wide, landscape desk background image filename from
`desk-long` to `desk-wide`.
Tim Rourke [Sat, 1 Oct 2016 12:21:13 +0000 (07:21 -0500)]
doc: Improving language in archetypes doc
Andrew Speed [Sat, 1 Oct 2016 11:02:35 +0000 (12:02 +0100)]
Update Dockerfile to pull in missing test dependency
Add the missing github.com/fortytw2/leaktest dependency required for
hugo_site_tests.
digitalcraftsman [Sat, 1 Oct 2016 09:43:38 +0000 (11:43 +0200)]
docs: Add Lipi to tools section
Bjørn Erik Pedersen [Fri, 30 Sep 2016 14:24:09 +0000 (16:24 +0200)]
Fix URL in multilanguage sitemap index
Fixes #2509
digitalcraftsman [Wed, 28 Sep 2016 15:27:18 +0000 (17:27 +0200)]
docs: Fix typo in tutorials/how-to-contribute-to-hugo.md
digitalcraftsman [Wed, 28 Sep 2016 15:25:24 +0000 (17:25 +0200)]
Contributing: Link the "How to contribute" tutorial
digitalcraftsman [Wed, 28 Sep 2016 15:17:57 +0000 (17:17 +0200)]
docs: Add notes about multilingual menus
digitalcraftsman [Wed, 28 Sep 2016 12:51:40 +0000 (14:51 +0200)]
Readme: Clarify usage of Gitter
patdhlk [Tue, 27 Sep 2016 19:53:00 +0000 (21:53 +0200)]
docs: Add tryo labs article to press.md
Bjørn Erik Pedersen [Wed, 28 Sep 2016 09:05:21 +0000 (11:05 +0200)]
Deprecate PageMeta.WordCount etc.
Fix #2503
Bjørn Erik Pedersen [Tue, 27 Sep 2016 19:11:34 +0000 (21:11 +0200)]
Fix half-broken self-closing shortcodes
Fixes #2498
Joseph Anderson [Tue, 27 Sep 2016 13:23:16 +0000 (08:23 -0500)]
docs: Fix typo on hosting-on-gitlab
Corrects "github" typo to "gitlab"
Anthony Fok [Mon, 26 Sep 2016 20:23:57 +0000 (14:23 -0600)]
commands: Revise instructions after "hugo new site"
mainly to fit inside 80-column wide terminal windows.
See #1164
Bjørn Erik Pedersen [Mon, 26 Sep 2016 15:06:58 +0000 (17:06 +0200)]
vendor: Update Viper
See #2495
Bjørn Erik Pedersen [Mon, 26 Sep 2016 08:50:38 +0000 (10:50 +0200)]
vendor: Update cast
See #2495
Bjørn Erik Pedersen [Fri, 23 Sep 2016 17:04:19 +0000 (19:04 +0200)]
Fix leaky goroutine
By making the err chan buffered so both go routines can return.
Also make sure that any errors are logged.
Fixes #2488
Bjørn Erik Pedersen [Fri, 23 Sep 2016 08:30:55 +0000 (10:30 +0200)]
Make multilingual respect DisableSitemap
Fixes #2485
Bjørn Erik Pedersen [Wed, 21 Sep 2016 12:09:41 +0000 (14:09 +0200)]
Add TestChangeDefaultLanguage
Bjørn Erik Pedersen [Tue, 20 Sep 2016 11:22:56 +0000 (13:22 +0200)]
tpl: Polish i18n tests
* Make the type/var names more specific. They live in the test namespace, but there are other tests there.
* Camel case variable
* Small change suggested by Golint
Mitchell Cohen [Tue, 20 Sep 2016 09:11:57 +0000 (05:11 -0400)]
tpl: Improve tests and docs for i18n
Bjørn Erik Pedersen [Tue, 20 Sep 2016 08:35:11 +0000 (10:35 +0200)]
vendor: Update go-toml
Fixes #2439
Bjørn Erik Pedersen [Mon, 19 Sep 2016 21:24:36 +0000 (23:24 +0200)]
vendor: Update dependencies
Bjørn Erik Pedersen [Mon, 19 Sep 2016 20:14:15 +0000 (22:14 +0200)]
Remove some unused vars
Bjørn Erik Pedersen [Mon, 19 Sep 2016 08:52:07 +0000 (10:52 +0200)]
commands: Add some band-aid to convert
Fixes #2458
Bjørn Erik Pedersen [Mon, 19 Sep 2016 00:44:21 +0000 (02:44 +0200)]
tpl: Set i18n bundle once per test run
No real practical difference, but more clear.
Cameron Moore [Sun, 18 Sep 2016 22:10:10 +0000 (17:10 -0500)]
Add vendoring with govendor
Mitchell Cohen [Sun, 18 Sep 2016 20:18:13 +0000 (16:18 -0400)]
Fix i18n with missing translations and add tests
Bjørn Erik Pedersen [Sun, 18 Sep 2016 20:04:32 +0000 (22:04 +0200)]
helpers: Skip TestGetRealPath on Windows when not in CI
`os.Symlink` needs administrator rights on Windows,
and this seems to be the simplest fix while still getting the tests run on Appveyor.
Fixes #2476
Bjørn Erik Pedersen [Sun, 18 Sep 2016 17:52:42 +0000 (19:52 +0200)]
Fail early in TestGetRealPath
See #2476
Bjørn Erik Pedersen [Sun, 18 Sep 2016 17:10:11 +0000 (19:10 +0200)]
Revert the "standardize author data"
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.
Mark D. Blackwell [Sat, 17 Sep 2016 03:54:39 +0000 (23:54 -0400)]
docs: Improve Overview Configuration manual
Bjørn Erik Pedersen [Sat, 17 Sep 2016 14:53:58 +0000 (16:53 +0200)]
Make suure SectionPagesMenu setting is always loaded per language
digitalcraftsman [Mon, 22 Aug 2016 15:53:30 +0000 (17:53 +0200)]
docs: Add documentation for author profiles
Mitchell Cohen [Fri, 16 Sep 2016 19:48:42 +0000 (15:48 -0400)]
docs: Add multilingual alias example
Bjørn Erik Pedersen [Fri, 16 Sep 2016 22:50:11 +0000 (00:50 +0200)]
Remove Authors.Sort
We may add it again in the future, but let us try to keep the API as small as possible for now.
See #1850
Derek Perkins [Fri, 16 Sep 2016 02:28:13 +0000 (20:28 -0600)]
Add First Class Author Support
Closes #1850
Daniel Holbach [Tue, 13 Sep 2016 09:52:54 +0000 (11:52 +0200)]
Add snapcraft.yaml file
digitalcraftsman [Fri, 16 Sep 2016 15:37:35 +0000 (17:37 +0200)]
docs: Clarify difference between slug and url
digitalcraftsman [Fri, 16 Sep 2016 15:20:29 +0000 (17:20 +0200)]
tpl: Add EnableMissingTranslationPlaceholders option
Fixes #2451
digitalcraftsman [Fri, 16 Sep 2016 15:13:59 +0000 (17:13 +0200)]
docs: List i18n folder in source organization
digitalcraftsman [Fri, 16 Sep 2016 15:05:38 +0000 (17:05 +0200)]
docs: Clarify usecase of data files
Fixes #1769
digitalcraftsman [Fri, 16 Sep 2016 14:43:50 +0000 (16:43 +0200)]
docs: Fix example of displaying taxonomies
Fixes #2216
digitalcraftsman [Fri, 16 Sep 2016 13:35:19 +0000 (15:35 +0200)]
docs: List multilingual tpl vars and show menu creation
Fixes #2436
digitalcraftsman [Fri, 16 Sep 2016 12:36:54 +0000 (14:36 +0200)]
docs: List config options for multilingual feature
Jacob Walker [Thu, 15 Sep 2016 16:35:39 +0000 (11:35 -0500)]
docs: Fix markdown in content/extras/scratch.md
Frank Taillandier [Fri, 9 Sep 2016 18:10:50 +0000 (20:10 +0200)]
docs: Fix French translation in multilingual.md
Mark D. Blackwell [Sat, 10 Sep 2016 22:23:23 +0000 (18:23 -0400)]
docs: Improve Traversing Local Files
Bjørn Erik Pedersen [Thu, 15 Sep 2016 07:32:52 +0000 (09:32 +0200)]
Make paginate settings configurable per language
Fixes #2449
Bjørn Erik Pedersen [Wed, 14 Sep 2016 16:51:34 +0000 (18:51 +0200)]
Do not add lang prefix in URL when set in frontmatter
Fixes #2450
Bjørn Erik Pedersen [Wed, 17 Aug 2016 11:41:48 +0000 (13:41 +0200)]
Lazy calculate WordCount, ReadingTime and FuzzyWordCount
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
Bjørn Erik Pedersen [Wed, 17 Aug 2016 04:37:19 +0000 (06:37 +0200)]
Improve TotalWords counter func
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
```
Bjørn Erik Pedersen [Tue, 16 Aug 2016 20:50:15 +0000 (22:50 +0200)]
Avoid splitting words for summary
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
```
Bjørn Erik Pedersen [Tue, 13 Sep 2016 21:44:16 +0000 (23:44 +0200)]
helpers: Improve the language prefix logic
See #2444
Bjørn Erik Pedersen [Tue, 13 Sep 2016 19:37:27 +0000 (21:37 +0200)]
helpers: Avoid adding language prefix if already present
Fixes #2444
Bjørn Erik Pedersen [Tue, 13 Sep 2016 17:11:36 +0000 (19:11 +0200)]
commands: Improve error messages in convert
See #2440
Bjørn Erik Pedersen [Tue, 13 Sep 2016 15:07:52 +0000 (17:07 +0200)]
tpl: Make the *langURL funcs tace interface{}
Fixes #2447
Bjørn Erik Pedersen [Tue, 13 Sep 2016 08:49:19 +0000 (10:49 +0200)]
commands: Report errors in convert
Fixes #2440
Bjørn Erik Pedersen [Tue, 13 Sep 2016 07:59:18 +0000 (09:59 +0200)]
Fix broken convert command
Fixes #2437
Bjørn Erik Pedersen [Mon, 12 Sep 2016 18:57:52 +0000 (20:57 +0200)]
Add Language.LanguageName
Fixes #2435
Bjørn Erik Pedersen [Mon, 12 Sep 2016 18:41:52 +0000 (20:41 +0200)]
Support site menu per language
Fixes #2434
Albert [Mon, 12 Sep 2016 09:32:11 +0000 (15:32 +0600)]
commands: Fix typos
Cameron Moore [Mon, 12 Sep 2016 09:03:53 +0000 (04:03 -0500)]
tpl: Extend where to iterate over maps
Fixes #2028
Cameron Moore [Wed, 17 Aug 2016 03:26:19 +0000 (22:26 -0500)]
tpl: Fix typos in tests
Closes #2370
Cameron Moore [Wed, 17 Aug 2016 03:26:42 +0000 (22:26 -0500)]
hugolib: Fix typos in tests
Bjørn Erik Pedersen [Sun, 11 Sep 2016 17:59:07 +0000 (19:59 +0200)]
Replace some leftover os.Stat with hugofs.Source
Bjørn Erik Pedersen [Sun, 11 Sep 2016 17:47:12 +0000 (19:47 +0200)]
Fix reload dir matching in theme
Fixes #2430
Bjørn Erik Pedersen [Sun, 10 Jul 2016 17:37:27 +0000 (19:37 +0200)]
Handle symlink change event
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
digitalcraftsman [Sun, 11 Sep 2016 16:18:28 +0000 (18:18 +0200)]
docs: Remove JPEG as format for showcase thumbnails
David Yates [Sat, 10 Sep 2016 05:30:42 +0000 (07:30 +0200)]
docs: Add davidyat.es to the showcase
bogem [Tue, 30 Aug 2016 17:30:33 +0000 (22:30 +0500)]
parser: Use strings.Contains instead of strings.Index
Closes #2400
bogem [Tue, 30 Aug 2016 17:29:48 +0000 (22:29 +0500)]
parser: Simplify err conditions
bogem [Tue, 30 Aug 2016 17:22:26 +0000 (22:22 +0500)]
commands: Delete useless conversion
bogem [Tue, 30 Aug 2016 17:20:39 +0000 (22:20 +0500)]
commands: Simplify err condition
bogem [Tue, 30 Aug 2016 17:20:21 +0000 (22:20 +0500)]
commands: Delete unused newUserErrorF
Jelmer Tiete [Sun, 11 Sep 2016 08:48:31 +0000 (01:48 -0700)]
Fixe target path location check in jekyll import command
Mathias Biilmann [Sun, 11 Sep 2016 08:46:56 +0000 (10:46 +0200)]
Prevent panic on empty authorlist
Ben Campbell [Sun, 11 Sep 2016 08:42:50 +0000 (20:42 +1200)]
Remove redundant field in sort helper struct
The pair struct used by sortSeq() had two key fields, where only one
is really needed.
Bjørn Erik Pedersen [Fri, 9 Sep 2016 19:21:16 +0000 (21:21 +0200)]
tpl: Make it more clear on missing language string
Bjørn Erik Pedersen [Fri, 9 Sep 2016 15:40:56 +0000 (17:40 +0200)]
Redirect to root when DefaultContentLanguageInSubdir = false
Fixes #2422
Bjørn Erik Pedersen [Fri, 9 Sep 2016 12:31:49 +0000 (14:31 +0200)]
Fix paginator counter on x86-32
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
Bjørn Erik Pedersen [Fri, 9 Sep 2016 11:08:20 +0000 (13:08 +0200)]
Add TODO list support for Blackfriday
* Add CSS class to TODO list and list items
* Add a flag to turn task list support off
Fixes #2269
Bjørn Erik Pedersen [Thu, 8 Sep 2016 19:23:01 +0000 (21:23 +0200)]
Fix shortcode vs pygments
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
Bjørn Erik Pedersen [Thu, 8 Sep 2016 14:17:28 +0000 (17:17 +0300)]
Fix pagination page counter on 32 bit
Updates #2415
Bjørn Erik Pedersen [Thu, 8 Sep 2016 14:04:04 +0000 (17:04 +0300)]
Reset the i18n func map on reload
Also improve the error message on missing resource bundles.
Pascal Aubort [Thu, 8 Sep 2016 13:14:53 +0000 (15:14 +0200)]
docs: Fix typos in multilingual section
Bjørn Erik Pedersen [Thu, 8 Sep 2016 13:51:32 +0000 (16:51 +0300)]
Add missing read lock in getNodes
Bjørn Erik Pedersen [Wed, 7 Sep 2016 21:37:04 +0000 (00:37 +0300)]
Bump Travis to Go 1.7.1
Bjørn Erik Pedersen [Wed, 7 Sep 2016 19:03:09 +0000 (22:03 +0300)]
tpl: Fix echoParam
Fixes #2406
Bjørn Erik Pedersen [Tue, 6 Sep 2016 20:20:59 +0000 (23:20 +0300)]
Make it the DEV version
Bjørn Erik Pedersen [Sat, 20 Aug 2016 18:54:10 +0000 (19:54 +0100)]
Fix go vet 1.7 issues
Updates #2309
Bjørn Erik Pedersen [Tue, 16 Aug 2016 10:49:07 +0000 (12:49 +0200)]
Add a global Reset func
So we can do some benchmarking.
Bjørn Erik Pedersen [Mon, 15 Aug 2016 13:31:54 +0000 (15:31 +0200)]
Make sure the 404 node has .Data.Pages
Updates #2309
Bjørn Erik Pedersen [Sun, 14 Aug 2016 23:20:16 +0000 (01:20 +0200)]
Fix site reset for benchmarks etc.
Updates #2309
Bjørn Erik Pedersen [Fri, 12 Aug 2016 22:33:17 +0000 (00:33 +0200)]
Fix multilingual reload when shortcode changes
This commit also refines the partial rebuild logic, to make sure we do not do more work than needed.
Updates #2309