Bjørn Erik Pedersen
c344b1901f
commands, helpers, vendor: Update to the latest jww logger
...
Updates #2701
2017-01-03 16:57:43 +01:00
bogem
4352156a27
commands, helpers: Fix docs
2017-01-02 17:01:58 +01:00
bogem
52976da0ec
commands: Fix case in default config variable
2017-01-02 17:01:12 +01:00
bogem
6fb4f048e1
commands: Fix case in names of some methods
2017-01-02 17:01:12 +01:00
Cameron Moore
8b0c3b9b27
helpers: Remove "no theme set" warning
...
Fixes #2821
2016-12-23 19:48:50 +01:00
avi
b2687ab1f7
command: Add themesDir
command argument to specify themes directory
2016-12-22 09:33:08 +01:00
Bjørn Erik Pedersen
3d6fdb8ed3
Bump to 0.18 release version
2016-12-19 15:35:20 +01:00
Cameron Moore
971d1baf13
commands: Add noChmod option to disable perm sync
...
Includes updates to docs.
Fixes #2749
2016-11-30 08:35:30 +01:00
Bjørn Erik Pedersen
4c72eb12dc
commands: Simplify
2016-11-23 18:55:51 +01:00
Bjørn Erik Pedersen
ff2498ee89
Remove ShowPlan
...
It is out of sync with reality, has some disabled tests, and the cost
of getting it up-to-date is too high to be worth it.
2016-11-23 16:35:49 +01:00
bogem
713f577a27
commands, hugolib: Unify case of config variable names
2016-11-22 23:43:55 +01:00
bogem
dec1706ae0
commands, hugolib, parser, tpl: Use errors.New instead of fmt.Errorf
2016-11-22 23:43:55 +01:00
bogem
1f130fd692
commands, hugolib, source, target, tpl: Get rid of some fmt statements
2016-11-22 23:43:55 +01:00
bogem
120f6b0cf2
all: Use jww instead of fmt for printing
...
This is an attempt to unify method for printing.
2016-11-22 22:06:48 +01:00
Bjørn Erik Pedersen
88972b0d5b
node to page: Refactor the build process
...
To make it easier to follow and understand.
Both building and rebuilding now follow a four step flow:
1. Init
2. Process
3. Assemble
4. Render
And now there are only one Build method, used for both builds and rebuilds.
Updates #2297
2016-11-22 09:57:03 +01:00
Albert Nigmatzianov
29fda0e683
commands: Make benchmark command more useful
...
* Add information about average time, memory consumption and
allocations.
* Fix situation, when user provides memprofile and cpuprofile, but
cpuprofile will not created.
Fixes #2432
2016-11-19 00:06:54 +01:00
Albert Nigmatzianov
85a2d81e3c
commands, tpl: Get rid of repeating viper accesses
...
* all: Delete some blank lines
* commands, tpl: Get rid of repeating viper accesses
2016-11-07 00:10:32 +01:00
Albert Nigmatzianov
3a86aba517
commands: Move initialization of flags in separate function
...
And clean up flag variables.
2016-11-03 11:33:53 +01:00
Bjørn Erik Pedersen
e8380e612f
Add GitInfo
...
This commit adds a `GitInfo` object to `Page` if `EnableGitInfo` is set.
It then also sets `Lastmod` for the given `Page` to the author date provided by Git.
The Git integrations should be fairly performant, but it adds "some time" to the build, somewhat depending on the Git history size.
If you want, you can run without during development and turn it on when deploying to the live server: `hugo --enableGitInfo`.
Fixes #2102
2016-11-01 23:04:12 +01:00
Albert Nigmatzianov
f21e2f25c9
all: Unify case of config variable names
...
All config variables starts with low-case and uses camelCase.
If there is abbreviation at the beginning of the name, the whole
abbreviation will be written in low-case.
If there is abbreviation at the end of the name, the
whole abbreviation will be written in upper-case.
For example, rssURI.
2016-10-24 20:56:00 +02:00
Bjørn Erik Pedersen
d0d24b4337
commands: Do not print error on missing unknown dirs
...
See #2602
2016-10-19 20:08:57 +02:00
Bjørn Erik Pedersen
f0af80753c
commands: Only watch relevant themes dir
...
The same behavior as for the root project.
Fixes #2602
2016-10-19 20:00:51 +02:00
Bjørn Erik Pedersen
794589fbfd
Use example.org for replace-this-with-your-hugo-site.com
...
Fixes #2575
2016-10-14 09:51:39 +02:00
Dimitri Merejkowsky
56512e816f
Allow to set cache dir in config file
2016-10-09 11:00:36 +02:00
Chase Adams
3616fb629b
command: Fix hugo new for multiple architectures
...
Changes `%q` to `%s`. `%q` was safely escaping the `\` in windows so that it was printing `\\`. Uses `filepath.Join` for example filepath so that the output is OS specific and since this required splitting up the multiline string, it's refactored into a separate function..
Fixes #2401
2016-10-09 10:59:07 +02:00
Bjørn Erik Pedersen
1c214fcb7c
Add quiet mode
...
Needed to run benchmarks without the stats getting in the way of the benchmark stats.
Fixes #1218
2016-10-08 18:26:16 +02:00
Anthony Fok
fe2d246c73
commands: Bump min_version to 0.17 for "new theme" subcommand
2016-10-07 08:36:28 -06:00
Bjørn Erik Pedersen
2a4ed1c492
Add hugo env command
...
Useful for bug reports.
Fixes #2523
2016-10-05 10:20:25 +02:00
Anthony Fok
6b4d3263b6
commands: Revise instructions after "hugo new site"
...
mainly to fit inside 80-column wide terminal windows.
See #1164
2016-09-26 14:23:57 -06:00
Bjørn Erik Pedersen
9c017e512e
commands: Add some band-aid to convert
...
Fixes #2458
2016-09-19 10:52:07 +02:00
Bjørn Erik Pedersen
8d040c966f
commands: Improve error messages in convert
...
See #2440
2016-09-13 19:11:59 +02:00
Bjørn Erik Pedersen
7615ef0c28
commands: Report errors in convert
...
Fixes #2440
2016-09-13 10:49:51 +02:00
Bjørn Erik Pedersen
be09781af1
Fix broken convert command
...
Fixes #2437
2016-09-13 09:59:18 +02:00
Albert
f0ac26c944
commands: Fix typos
2016-09-12 11:32:11 +02:00
Bjørn Erik Pedersen
c700cdc39c
Replace some leftover os.Stat with hugofs.Source
2016-09-11 20:00:38 +02:00
bogem
60baec8005
commands: Delete useless conversion
2016-09-11 12:23:09 +02:00
bogem
2294b0226d
commands: Simplify err condition
2016-09-11 12:23:09 +02:00
bogem
1e18087356
commands: Delete unused newUserErrorF
2016-09-11 12:23:09 +02:00
Jelmer Tiete
5867cb5a92
Fixe target path location check in jekyll import command
2016-09-11 10:48:31 +02:00
Bjørn Erik Pedersen
09ed41be71
Add a global Reset func
...
So we can do some benchmarking.
2016-09-06 18:32:21 +03:00
Bjørn Erik Pedersen
45c69dd168
Handle error in config loading
...
See #2309
2016-09-06 18:32:19 +03:00
Bjørn Erik Pedersen
f1e1cdab3f
Improve i18n string handling
...
* Fall back to default language on missing translation file
* Add a i18n-warnings build flag
* If that flag is set, print a parseable and greppable string on missing translation strings
See #2303
2016-09-06 18:32:19 +03:00
Bjørn Erik Pedersen
9798a95670
Make the check command work in multilingual mode
...
Or: some more multilingual TODO-fixes.
See #2309
2016-09-06 18:32:18 +03:00
Bjørn Erik Pedersen
e56ecab157
Multilingual TODO-fixes, take 1
...
See #2309
2016-09-06 18:32:18 +03:00
Bjørn Erik Pedersen
d18a8cbe15
Fix livereload in multilingual mode
...
See #2309
2016-09-06 18:32:18 +03:00
Bjørn Erik Pedersen
596e0e98e4
Make it possible to add a language in server mode
...
See #2309
2016-09-06 18:32:17 +03:00
Bjørn Erik Pedersen
7cac19b1e3
cmd: Load config from the common config loader in hugolib
...
See #2309
2016-09-06 18:32:17 +03:00
Bjørn Erik Pedersen
8b657a11ee
Get the list commands up to multi-site level
...
This commit also unexports some Site methods, making it clear what the external build API really is.
See #2312
2016-09-06 18:32:17 +03:00
Bjørn Erik Pedersen
90de511017
Make taxonomies configurable per language
...
See #2312
2016-09-06 18:32:17 +03:00
Bjørn Erik Pedersen
f0b91852ea
Rework the multilingual docs
...
And in the same go adjusted some minor parts of the language API:
Add LanguagePrefix alias to Node and rename the Multilingual config section to Languages.
See #2309
2016-09-06 18:32:17 +03:00