Anthony Fok [Wed, 2 Dec 2015 09:20:55 +0000 (02:20 -0700)]
Enable dirname and filename completion for more flags
These flags are:
* --source (-s), --cacheDir, --destination (-d) and --logFile
* --completionfile and --dir.
Anthony Fok [Wed, 2 Dec 2015 04:03:17 +0000 (21:03 -0700)]
Print error when /index.html is zero-length
Also print warning (in verbose mode) for other empty pages.
See #947
Anthony Fok [Wed, 2 Dec 2015 04:00:59 +0000 (21:00 -0700)]
Run `go fmt hugolib/site.go`
Anthony Fok [Tue, 1 Dec 2015 17:25:56 +0000 (10:25 -0700)]
Bump min_version to 0.15 for `hugo new theme`
Tatsushi Demachi [Tue, 1 Dec 2015 16:48:52 +0000 (01:48 +0900)]
Make noTimes command flag work
Hugo command provides "noTimes" flag but it doesn't affect synced files
timestamp regardless of whether the flag is specified or not.
This fixes it by adding a flag check and overwriting configuration if it
is specified.
Fix #1583
Tatsushi Demachi [Tue, 1 Dec 2015 14:53:27 +0000 (23:53 +0900)]
Copy static dir files without theme's static dir
Hugo command doesn't copy site's "static" directory files to "public"
directory if a specified theme doesn't have "static" directory because
theme's "static" directory checking always returns an error.
This fixes it by just showing a warning message about theme's "static"
directory absence and not skipping following processes.
Fix #1655
Takeru Naito [Tue, 1 Dec 2015 07:07:43 +0000 (16:07 +0900)]
Fix typo in "Creating a New Theme"
the the skeleton's ->
the theme skeleton's
David Oliver [Sat, 28 Nov 2015 19:26:01 +0000 (20:26 +0100)]
Add Draft page variable to docs
Also tweaks language used in page params sentence.
Gustav Näslund [Mon, 30 Nov 2015 19:52:30 +0000 (20:52 +0100)]
Use .Site.Pages in the documentation examples instead of .Site.Recent
Valentin Vago [Mon, 30 Nov 2015 09:41:19 +0000 (10:41 +0100)]
Add Camunda blog and docs showcases
Anthony Fok [Mon, 30 Nov 2015 07:19:04 +0000 (00:19 -0700)]
Change plainIdAnchors to plainIDAnchors in docs
Also add a note saying that these blackfriday flags are
very case-sensitive as of Hugo v0.15.
Thanks to @ryanclarke for noticing the change in behaviour.
See also spf13/hugo@
5838420
Anthony Fok [Mon, 30 Nov 2015 06:23:25 +0000 (23:23 -0700)]
Copyedit the shortcodes documentation some more
digitalcraftsman [Tue, 24 Nov 2015 21:22:58 +0000 (22:22 +0100)]
Docs: improve shortcodes page
See #1613
Anthony Fok [Mon, 30 Nov 2015 04:43:49 +0000 (21:43 -0700)]
Remove an erroneous "$" prompt in quickstart guide
Doug Horner [Mon, 30 Nov 2015 02:40:16 +0000 (21:40 -0500)]
Added the command in the documentation.
It was confusing that the command was not in step 5, while it is in step 6.
Anthony Fok [Sat, 28 Nov 2015 14:32:02 +0000 (07:32 -0700)]
Support setting target directory in `hugo gen man`
Fixes #1627
Michael Henderson [Sat, 28 Nov 2015 04:44:10 +0000 (22:44 -0600)]
Update for version 0.16
Updated output of commands. Removed unneeded flags such as
--watch. Didn't resist the temptation to reword some parts.
digitalcraftsman [Fri, 27 Nov 2015 14:33:16 +0000 (15:33 +0100)]
Docs: remove note about config changes and manual livereload
digitalcraftsman [Fri, 27 Nov 2015 14:30:16 +0000 (15:30 +0100)]
Docs: improve usage.md
digitalcraftsman [Fri, 27 Nov 2015 14:21:22 +0000 (15:21 +0100)]
Docs: improve quickstart guide
Fixes #1553
ChristophFloat [Tue, 24 Nov 2015 11:10:36 +0000 (12:10 +0100)]
Update press.md
Include my Blogpost about using Hugo together with git to automatically
generate the site when you push it into your Repo using a Git Hook (German).
Bjørn Erik Pedersen [Wed, 25 Nov 2015 22:18:20 +0000 (23:18 +0100)]
Add note in doc about Jekyll import
Bjørn Erik Pedersen [Wed, 25 Nov 2015 22:11:16 +0000 (23:11 +0100)]
Regenerate the commands section of doc
Steve Francia [Wed, 25 Nov 2015 14:49:03 +0000 (09:49 -0500)]
Version bump to 0.16-DEV
Steve Francia [Wed, 25 Nov 2015 14:33:53 +0000 (09:33 -0500)]
version bump to v0.15
Steve Francia [Wed, 25 Nov 2015 13:33:38 +0000 (08:33 -0500)]
Update license file in the docs/website to apache
Cameron Moore [Wed, 25 Nov 2015 00:30:05 +0000 (18:30 -0600)]
Update release notes with additional new features
Steve Francia [Tue, 24 Nov 2015 21:51:01 +0000 (16:51 -0500)]
Update and reorganize 0.15 release notes
Bjørn Erik Pedersen [Tue, 24 Nov 2015 20:13:02 +0000 (21:13 +0100)]
Make the release note about renderToDisk more consise
See #1611
digitalcraftsman [Tue, 24 Nov 2015 19:45:54 +0000 (20:45 +0100)]
Update release notes
digitalcraftsman [Mon, 23 Nov 2015 18:32:03 +0000 (19:32 +0100)]
Add IsNamedParams property in shortcodes
digitalcraftsman [Fri, 20 Nov 2015 19:31:57 +0000 (20:31 +0100)]
Add documentation for built-in shortcodes
Fixes #1576
digitalcraftsman [Fri, 20 Nov 2015 18:44:05 +0000 (19:44 +0100)]
Add shortcode for tweets
digitalcraftsman [Fri, 20 Nov 2015 17:38:56 +0000 (18:38 +0100)]
Add shortcode for github gists
digitalcraftsman [Fri, 20 Nov 2015 17:33:46 +0000 (18:33 +0100)]
Add shortcode for vimeo
digitalcraftsman [Fri, 20 Nov 2015 17:31:37 +0000 (18:31 +0100)]
Add shortcode for youtube
digitalcraftsman [Fri, 20 Nov 2015 17:13:43 +0000 (18:13 +0100)]
Add shortcode for speakerdeck
Cameron Moore [Tue, 24 Nov 2015 05:02:33 +0000 (23:02 -0600)]
Update shortcode docs with .IsNamedParams
There are some minor cleanups included here as well.
Fixes #1607
Steve Francia [Tue, 24 Nov 2015 03:16:36 +0000 (22:16 -0500)]
Change the license to Apache 2.0
Bjørn Erik Pedersen [Mon, 23 Nov 2015 21:35:54 +0000 (22:35 +0100)]
Simplify ExtractRootPaths
Andrew Brampton [Thu, 9 Jul 2015 01:51:54 +0000 (18:51 -0700)]
Add PygmentsOptions option
This allows default pygments settings to be used, if none are explictly set per shortcode.
Fixes #1260
Kato Kazuyoshi [Sat, 17 Oct 2015 03:45:49 +0000 (20:45 -0700)]
Permalink on Node and Page should be of string
This change fixes #1384.
Marek Janda [Tue, 3 Nov 2015 19:09:34 +0000 (20:09 +0100)]
Move blackfriday site-wide config loading to NewBlackFriday()
Cameron Moore [Sat, 21 Nov 2015 00:59:54 +0000 (18:59 -0600)]
Add shortcode IsNamedParams property
It would be helpful to know whether a shortcode was called with positional or
named parameters. This commit adds a boolean `IsNamedParams` property to the
`ShortcodeWithPage` struct.
Bjørn Erik Pedersen [Mon, 23 Nov 2015 15:51:12 +0000 (16:51 +0100)]
Restructure the gen commands
Fixes #1603
Bjørn Erik Pedersen [Mon, 23 Nov 2015 15:32:06 +0000 (16:32 +0100)]
Improve "watching for ..." logging
Anthony Fok [Sun, 22 Nov 2015 16:19:54 +0000 (09:19 -0700)]
Add commands/genman.go to autogenerate man pages
Fixes #1369
Anthony Fok [Sun, 22 Nov 2015 16:40:22 +0000 (09:40 -0700)]
Fix missing word in code comment (my own fault)
Bjørn Erik Pedersen [Sat, 21 Nov 2015 22:29:58 +0000 (23:29 +0100)]
Avoid multiple locks for shortcode template
Fixes #1600
Bjørn Erik Pedersen [Sat, 21 Nov 2015 20:57:26 +0000 (21:57 +0100)]
Improve RW-locking of template in shortcode handling
See #1599
Bjørn Erik Pedersen [Sat, 21 Nov 2015 19:03:18 +0000 (20:03 +0100)]
Fix recently introduced new data race in the shortcode handling
Fixes #1599
Anthony Fok [Sat, 21 Nov 2015 13:31:10 +0000 (06:31 -0700)]
Copyedit long help message in commands/server.go
Cameron Moore [Wed, 11 Nov 2015 03:31:52 +0000 (21:31 -0600)]
Add RSSLink to SiteInfo
Marek Janda [Mon, 2 Nov 2015 19:49:15 +0000 (20:49 +0100)]
Apply absURL on social tag urls
Cameron Moore [Sun, 15 Nov 2015 19:53:12 +0000 (13:53 -0600)]
Return error if shortcode template.Tree is nil
If a shortcode template fails to compile, the template will be non-nil, but
template.Tree will be nil which caused a panic.
Anthony Fok [Fri, 20 Nov 2015 21:24:22 +0000 (14:24 -0700)]
docs: Change "Github" to "GitHub"
Anthony Fok [Fri, 20 Nov 2015 21:02:07 +0000 (14:02 -0700)]
docs: Optimize a few large showcase thumbnail PNGs
using pngquant and OptiPNG. Result:
arresteddevops-tn.png 154734 bytes → 47184 bytes
maximeguitare-tn.png 95571 bytes → 24183 bytes
ridingbytes-tn.png 262222 bytes → 66491 bytes
And a small one to an even smaller one too:
goin5minutes-tn.png 26220 bytes → 9297 bytes
digitalcraftsman [Fri, 20 Nov 2015 19:53:05 +0000 (20:53 +0100)]
Add Go in 5 minutes to the showcases
digitalcraftsman [Fri, 20 Nov 2015 19:41:16 +0000 (20:41 +0100)]
Docs: fix typo in template function section
Cameron Moore [Sun, 15 Nov 2015 20:30:57 +0000 (14:30 -0600)]
Add SafeJS template function
This commit adds a SafeJS template function. Tests and documentation are
included.
Fixes #1579
Bjørn Erik Pedersen [Fri, 20 Nov 2015 18:18:38 +0000 (19:18 +0100)]
Add increased time.Time support to the 0.15 release notes
Bjørn Erik Pedersen [Fri, 20 Nov 2015 18:16:13 +0000 (19:16 +0100)]
Update Travis 1.4.2 > 1.4.3
Steve Francia [Fri, 20 Nov 2015 15:26:21 +0000 (10:26 -0500)]
fix broken image in showcase
kmonsoor [Thu, 19 Nov 2015 23:24:41 +0000 (05:24 +0600)]
fixed documentation link
Matt Stratton [Fri, 20 Nov 2015 07:49:09 +0000 (01:49 -0600)]
Add Arrested DevOps site to Showcase
Steve Francia [Fri, 20 Nov 2015 15:13:03 +0000 (10:13 -0500)]
Hugo server watch by default
Bjørn Erik Pedersen [Fri, 20 Nov 2015 10:53:25 +0000 (11:53 +0100)]
Add time.Time support in ge, gt, le, lt
Fixes #1593
Bjørn Erik Pedersen [Thu, 19 Nov 2015 19:27:02 +0000 (20:27 +0100)]
Remove some superficial tests
Bjørn Erik Pedersen [Thu, 19 Nov 2015 18:48:40 +0000 (19:48 +0100)]
Revert "Disable render-to-memory on Windows"
This reverts commit
91e0c2b1feb2a7a1b074784a41249139b2fae975.
This should now work.
Bjørn Erik Pedersen [Wed, 18 Nov 2015 22:10:56 +0000 (23:10 +0100)]
Disable render-to-memory on Windows
See #1586
Bjørn Erik Pedersen [Wed, 18 Nov 2015 21:59:32 +0000 (22:59 +0100)]
Do not rebuild on extra Spotlight filesystem events
Write and rename operations are often followed by CHMOD.
There may be valid use cases for rebuilding the site on CHMOD,
but that will require more complex logic than this simple conditional.
On OS X this seems to be related to Spotlight, see:
https://github.com/go-fsnotify/fsnotify/issues/15
A workaround is to put your site(s) on the Spotlight exception list,
but that may be a little mysterious for most end users.
So, for now, we skip reload on CHMOD.
This small commit will be a 100% improvement for most OS X-users.
Fixes #1587
Bjørn Erik Pedersen [Tue, 20 Oct 2015 18:35:12 +0000 (20:35 +0200)]
Make replaceShortcodeTokens rewrite the input slice
Currently a `[]byte` copy is returned. In most cases this is the safe thing to do, but we should just modify/grow the slice as needed.
This is faster and consumes less memory:
```
benchmark old ns/op new ns/op delta
BenchmarkReplaceShortcodeTokens-4 7350 4419 -39.88%
benchmark old allocs new allocs delta
BenchmarkReplaceShortcodeTokens-4 5 1 -80.00%
benchmark old bytes new bytes delta
BenchmarkReplaceShortcodeTokens-4 4816 1152 -76.08%
```
This commit is aso a small spring cleaning of duplicated code in the different `PageConvert` methods.
Fixes #1516
Anthony Fok [Tue, 17 Nov 2015 05:54:15 +0000 (22:54 -0700)]
Add latest review from Smashing Magazine to Press page
spf13 [Tue, 17 Nov 2015 02:55:18 +0000 (21:55 -0500)]
Hugo server renders and serves from memory by default (30%+ improvement)
spf13 [Tue, 17 Nov 2015 02:54:21 +0000 (21:54 -0500)]
permit the notimes flag on hugo server
spf13 [Tue, 17 Nov 2015 02:53:05 +0000 (21:53 -0500)]
No double slash when destination set to '/'
spf13 [Tue, 17 Nov 2015 02:52:37 +0000 (21:52 -0500)]
Handle sync (file copy) errors better)
Anthony Fok [Mon, 16 Nov 2015 14:15:17 +0000 (07:15 -0700)]
Fix trivial typos in code
Anthony Fok [Mon, 16 Nov 2015 13:59:14 +0000 (06:59 -0700)]
Copyedit docs/content/tools/index.md
Anthony Fok [Mon, 16 Nov 2015 13:51:57 +0000 (06:51 -0700)]
Add @wicast’s "Hugo is cool" post to Press page
Anthony Fok [Mon, 16 Nov 2015 13:48:20 +0000 (06:48 -0700)]
Add docs/data/titles.toml to set title "Site Showcase"
Idea from https://discuss.gohugo.io/t/how-to-name-list-templates/949
tuxy [Mon, 16 Nov 2015 08:51:12 +0000 (01:51 -0700)]
Add ReadText project to Site Showcase
Richard Sumilang [Sun, 15 Nov 2015 19:37:31 +0000 (11:37 -0800)]
Adding LosslessLife blog to showcase.
Bjørn Erik Pedersen [Sun, 15 Nov 2015 16:49:30 +0000 (17:49 +0100)]
Emphasize that commit message titles should start with a capital letter
spf13 [Sun, 15 Nov 2015 16:10:35 +0000 (11:10 -0500)]
re-simplify SafeHTML function
digitalcraftsman [Wed, 11 Nov 2015 12:56:13 +0000 (13:56 +0100)]
Docs: add hugofy to tools
spf13 [Thu, 12 Nov 2015 16:09:20 +0000 (11:09 -0500)]
simplify rssuri logic
spf13 [Thu, 12 Nov 2015 15:53:21 +0000 (10:53 -0500)]
rewrite safeHTML function
Bjørn Erik Pedersen [Sat, 14 Nov 2015 15:59:45 +0000 (16:59 +0100)]
Revert "Update Go release version to 1.5.2 in Travis config"
This reverts commit
30ebf6b82354fc1eb7a15aa0ff610b24a690724c.
There is no Go 1.5.2... Where did I get that info!?
Bjørn Erik Pedersen [Fri, 13 Nov 2015 20:21:03 +0000 (21:21 +0100)]
Get rid of allocation in the BenchmarkReplaceShortcodeTokens itself
So we can see the real numbers.
See #1516
digitalcraftsman [Fri, 13 Nov 2015 12:13:27 +0000 (13:13 +0100)]
Docs: fix typo in tools section
digitalcraftsman [Wed, 11 Nov 2015 12:56:13 +0000 (13:56 +0100)]
Docs: add hugofy to tools
digitalcraftsman [Wed, 11 Nov 2015 12:40:12 +0000 (13:40 +0100)]
Update release notes
Note the new built-in Google Analytics template.
Coders Digest [Wed, 11 Nov 2015 06:25:06 +0000 (14:25 +0800)]
Adding article about moving to hugo
spf13 [Thu, 12 Nov 2015 15:23:41 +0000 (10:23 -0500)]
Improve the server usage output
Bjørn Erik Pedersen [Wed, 11 Nov 2015 21:47:09 +0000 (22:47 +0100)]
Print parse errors from Viper
Fabiano Frizzo [Tue, 10 Nov 2015 00:08:40 +0000 (22:08 -0200)]
doc: Add new article by Fabiano Frizzo to Press
Bjørn Erik Pedersen [Tue, 10 Nov 2015 20:41:47 +0000 (21:41 +0100)]
Update Go release version to 1.5.2 in Travis config
Tatsushi Demachi [Tue, 10 Nov 2015 13:02:45 +0000 (22:02 +0900)]
Fix GroupByParam to return original param string
Page.GroupByParam function internally uses Page.GetParam to get a
parameter value for a key of a page group but now Page.GetParam returns
a lowercase character string every time. It has no need to using
lowercase character string as a group key value and it confuse a
function user.
This fixes it to keep and return an original parameter string as a group
key value.
Fix #1564
spf13 [Tue, 10 Nov 2015 04:31:52 +0000 (23:31 -0500)]
Add support for dynamic reloading of config file when watching