Anthony Fok [Fri, 2 Oct 2015 09:27:38 +0000 (03:27 -0600)]
Fix strange carousel width on http://gohugo.io/
The solution is to add `table-layout:fixed` when `display:table` is used
as per the answer given at:
http://stackoverflow.com/questions/
21230184/owl-carousel-inside-a-table-cell-parent-makes-parent-to-expand-weird
Fixes #1465
Bjørn Erik Pedersen [Fri, 2 Oct 2015 04:47:34 +0000 (06:47 +0200)]
Rename NormalizeHugoFlagsFunc to NormalizeHugoFlags
It IS a func.
vsopvsop [Sun, 27 Sep 2015 17:19:02 +0000 (22:49 +0530)]
is it .md instead of .ad?
Michael Käufl [Mon, 28 Sep 2015 21:14:24 +0000 (23:14 +0200)]
Used leading slash more consistently
Michael Käufl [Mon, 28 Sep 2015 21:12:57 +0000 (23:12 +0200)]
Marked the whole path as code
Bjørn Erik Pedersen [Wed, 30 Sep 2015 03:43:11 +0000 (05:43 +0200)]
Use filepath as the last default sort key for pages
Bjørn Erik Pedersen [Fri, 25 Sep 2015 19:34:32 +0000 (21:34 +0200)]
Add the base64 template funcs to release notes
digitalcraftsman [Sat, 12 Sep 2015 19:45:12 +0000 (21:45 +0200)]
Add base64Decode and base64Encode template functions
Fixes #1416
Sven Dowideit [Wed, 23 Sep 2015 04:43:17 +0000 (14:43 +1000)]
Allow for any (short) line begining or ending with html comment
Fixes #1428
Ben Turner [Tue, 22 Sep 2015 03:00:48 +0000 (20:00 -0700)]
Change port number from 1414 to 1313 (default)
Change the port number to access the site locally from 1414 to 1313 as per the default and the image.
Bjørn Erik Pedersen [Wed, 23 Sep 2015 07:18:20 +0000 (09:18 +0200)]
Remove superfluous `g` in docs
digitalcraftsman [Tue, 22 Sep 2015 11:12:28 +0000 (13:12 +0200)]
Tools: Add more to tools to the list
Bjørn Erik Pedersen [Tue, 22 Sep 2015 20:33:41 +0000 (22:33 +0200)]
Fix typo in docs
See #1438
Bjørn Erik Pedersen [Tue, 22 Sep 2015 20:31:02 +0000 (22:31 +0200)]
Add singularize template func
See #1438
Bjørn Erik Pedersen [Tue, 22 Sep 2015 20:24:24 +0000 (22:24 +0200)]
Add pluralize template func
Fixes #1438
vsopvsop [Mon, 21 Sep 2015 01:26:17 +0000 (06:56 +0530)]
correct spelling for 'including' and 'counterpart'
Anthony Fok [Sun, 20 Sep 2015 23:30:49 +0000 (17:30 -0600)]
Press: Update URL to Spencer Lyon’s “Hugo and GitHub Pages”
Spencer had moved his web site from http://sglyon.com/ to
http://spencerlyon.com/. Special thanks to @vsopvsop
for noticing the dead link on the Press coverage page.
Resolves #1446
Anthony Fok [Sun, 20 Sep 2015 23:25:04 +0000 (17:25 -0600)]
Press: New URL to Kenny Woo’s blog about Hugo
Kenny had moved his blog from http://kennywoo.com/ to http://kenwoo.io/
vsopvsop [Sat, 19 Sep 2015 17:31:01 +0000 (23:01 +0530)]
dead link
Hugo over Octopress
http://kennywoo.com/blog/hugo---golang-based-static-site-generator/
vsopvsop [Sat, 19 Sep 2015 01:04:35 +0000 (06:34 +0530)]
Link no longer works - Dead link
http://commiechink.com/2014/08/hello-hugo/
Anthony Fok [Wed, 16 Sep 2015 05:12:01 +0000 (23:12 -0600)]
Show both baseURL and bind address in `hugo server` output
Fixes #1426
Anthony Fok [Wed, 16 Sep 2015 05:04:24 +0000 (23:04 -0600)]
Update .travis.yml for Go 1.5.1
Also replaced CRLF with LF in .travis.yml
Edward Vielmetti [Wed, 16 Sep 2015 03:57:17 +0000 (23:57 -0400)]
Test builds on OS X
Add an "os" target for OS X to test builds on Mac. No reason to believe it won't work, but always worth testing things.
Ben Turner [Tue, 15 Sep 2015 18:31:11 +0000 (11:31 -0700)]
Fix typo in terms.md
Anthony Fok [Tue, 15 Sep 2015 12:12:25 +0000 (06:12 -0600)]
Revert "docs: Fix URL to yulinling.net (https → http) in Showcase"
This reverts commit
ca74dd233df1bd15bcdad0204e79ae77a057ea94.
Samuel Prashker [Wed, 2 Sep 2015 19:22:21 +0000 (15:22 -0400)]
docs: Fix typo in url extras
Anthony Fok [Mon, 14 Sep 2015 20:32:38 +0000 (14:32 -0600)]
docs: Fix URL to yulinling.net (https → http) in Showcase
lynxiayel [Fri, 11 Sep 2015 09:42:37 +0000 (05:42 -0400)]
Add yulinling.net to Showcase
Anthony Fok [Mon, 14 Sep 2015 20:02:17 +0000 (14:02 -0600)]
docs: Optimize recent thumbnail images in Showcase
Anthony Fok [Mon, 14 Sep 2015 18:47:43 +0000 (12:47 -0600)]
docs: Fix formatting in overview/usage.md
Anthony Fok [Mon, 14 Sep 2015 18:44:33 +0000 (12:44 -0600)]
docs: Add a few more blog articles to Press
Also add ` ` to one of the dates in the table
to prevent the Date column from wrapping
Anthony Fok [Mon, 14 Sep 2015 18:18:54 +0000 (12:18 -0600)]
Add "control code" and "trailing space" to alias validation
Bjørn Erik Pedersen [Mon, 14 Sep 2015 15:31:39 +0000 (17:31 +0200)]
Move isThemeVsHugoVersionMismatch to /commands
To prevent potential package cycles in /helpers.
Anthony Fok [Sun, 13 Sep 2015 12:36:08 +0000 (06:36 -0600)]
Validate aliases to prevent directory traversal etc.
Add validation before creating aliases:
* Prevent creating aliases outside webroot (public/ dir)
* Skip empty "" alias
* Skip "/" → "/index.html", which gets overwritten anyway
* Refuse to create Windows-invalid filenames on Windows;
warn on other platforms
* In case of invalid aliases, after skipping them,
return `err = nil` to prevent the error passing up
all the way to `hugolib.Render()` and causing Hugo to abort.
* Update alias tests.
Fixes #701: Add support for alias with whitespace
Fixes #1418: Add validation for alias
Anthony Fok [Wed, 9 Sep 2015 05:29:04 +0000 (23:29 -0600)]
Complete the Url-to-URL transition in docs
See #959
Anthony Fok [Wed, 9 Sep 2015 05:27:55 +0000 (23:27 -0600)]
Complete the Url-to-URL transition in tests
See #959
Anthony Fok [Wed, 9 Sep 2015 05:05:11 +0000 (23:05 -0600)]
Add helpers.NormalizeHugoFlagsFunc() to handle flag name changes
It currently handles --baseUrl to --baseURL, and --uglyUrls to --uglyURLs.
Special thanks to Eric Paris (@eparis) for writing the
"normalized name" support in Cobra, and for showing us
how it is used in Kubernetes.
See Issue #959
digitalcraftsman [Sat, 12 Sep 2015 17:46:01 +0000 (19:46 +0200)]
Docs: extend the migration tool list and add a cross-reference in the start guide
digitalcraftsman [Sat, 12 Sep 2015 10:12:01 +0000 (12:12 +0200)]
Docs: Add a section about tools around Hugo
coderzh [Thu, 3 Sep 2015 10:22:20 +0000 (18:22 +0800)]
WordCount Summary support UTF-8 string
Anthony Fok [Thu, 10 Sep 2015 09:08:32 +0000 (03:08 -0600)]
docs: Change redirect documentation to aliases
Fixes #962
Anthony Fok [Wed, 9 Sep 2015 04:51:57 +0000 (22:51 -0600)]
Convert example/blog to use new syntax for Hugo v0.14+
safeHtml → safeHTML, .Site.BaseUrl → .Site.BaseURL
(Hmm... How did we miss that earlier?)
Anthony Fok [Wed, 9 Sep 2015 04:35:26 +0000 (22:35 -0600)]
docs: Remove empty sourceLink from two sites in Showcase
The empty sourceLink created an empty HTML anchor
which got pointed back to http://gohugo.io/showcase/
Kohei Yoshino [Tue, 8 Sep 2015 23:50:22 +0000 (19:50 -0400)]
Add FxSiteCompat.com to Showcase
spf13 [Wed, 9 Sep 2015 02:52:24 +0000 (22:52 -0400)]
fix showcase to render properly
Richard Sumilang [Mon, 7 Sep 2015 07:17:45 +0000 (00:17 -0700)]
Adding RichardSumilang.com to the showcases.
Benoit Benedetti [Sun, 6 Sep 2015 18:30:34 +0000 (20:30 +0200)]
Docs: Add Humboldtux.net to Showcase page
Benoit Benedetti [Sun, 6 Sep 2015 18:12:19 +0000 (20:12 +0200)]
Docs: Add new french mag article by @humboldtux to Press page
jlengstorf [Sat, 5 Sep 2015 13:38:55 +0000 (15:38 +0200)]
Added details about generated files and development flows
digitalcraftsman [Fri, 4 Sep 2015 11:43:09 +0000 (13:43 +0200)]
Add a 404.html file if a new theme is created
Isaac Gregson [Fri, 4 Sep 2015 09:37:30 +0000 (12:37 +0300)]
Update organization.md
Increases clarity on the different between `section` and `type`.
The current `section` information here is wrong (sections can *not* be specified in front matter). This caused quite the headache. This change fixes this and also adds `type`, since it *can* be specified in front matter.
spf13 [Tue, 8 Sep 2015 15:23:14 +0000 (11:23 -0400)]
showcase layout improved when thumbnails are different proportions
sergeant [Wed, 26 Aug 2015 21:01:12 +0000 (23:01 +0200)]
Add NoDesk to Showcase
sergeant [Wed, 26 Aug 2015 20:37:29 +0000 (22:37 +0200)]
Add NoDesk to Showcase
digitalcraftsman [Mon, 24 Aug 2015 11:29:45 +0000 (13:29 +0200)]
Describe the use of custom archetypes in the docs
Karim Ali [Mon, 24 Aug 2015 19:10:49 +0000 (21:10 +0200)]
Add GreenITGlobe website for showcases page
Hugh Grigg [Fri, 21 Aug 2015 14:46:30 +0000 (15:46 +0100)]
Add Chinese Grammar to showcase
Anthony Fok [Tue, 1 Sep 2015 18:06:34 +0000 (12:06 -0600)]
Docs: Add new blog post by @CoderZh to Press page
chrongzhang [Tue, 1 Sep 2015 12:53:25 +0000 (20:53 +0800)]
Add config option "disablePathToLower"
Enabling this prevents lowercasing of the path/url.
Fixes #557
Jeff Hodges [Sun, 30 Aug 2015 22:51:25 +0000 (15:51 -0700)]
Correct check of published boolean
Jeff Hodges [Sun, 2 Aug 2015 06:02:20 +0000 (23:02 -0700)]
Add undocumented published setting to front matter
A new "published" setting that is the opposite of "draft" is added and
left intentionally undocumented.
This setting comes from jekyll and eases the transition to hugo
greatly. We leave it undocumented so that folks don't rely on it, but
also don't shoot themselves in the foot during a jekyll migration.
The foot-shooting occurs if they have only a few documents that were
drafts ("published: false") in the jekyll version of their site and
don't notice that they were published in the migration to hugo.
Bjørn Erik Pedersen [Wed, 26 Aug 2015 19:29:32 +0000 (21:29 +0200)]
Unexport FileAndExt
If needed outside helpers, create an exported file path (FilePathAndExt?) and/or a url version.
Bjørn Erik Pedersen [Sun, 23 Aug 2015 13:14:48 +0000 (15:14 +0200)]
Polish 0.15 release notes
Bjørn Erik Pedersen [Sun, 23 Aug 2015 12:20:14 +0000 (14:20 +0200)]
Add first draft of Hugo 0.15 Release Notes
Tatsushi Demachi [Sun, 16 Aug 2015 03:30:22 +0000 (12:30 +0900)]
Use LazyFileReader for reading file contents
Simple ioutil.ReadFile is used for reading file contents but it reads
all of the file contents and copies them into the memory and is run in a
single goroutine. It causes much memory consumption at copying media
files in content directory to publish directory and it is not good at
performance.
This improves the both issue by replacing ReadFile with LazyFileReader.
It postpones reading the file contents until it is really needed. As the
result, actual file read is run in parallelized goroutine. It improves
performance especially in a really big site.
In addition, if this reader is called from io.Copy, it does not copy the
file contents into the memory but just copies them into destination
file. It improves much memory consumption issue when the site has many
media files.
Fix #1181
Tatsushi Demachi [Sat, 15 Aug 2015 15:06:39 +0000 (00:06 +0900)]
Add LazyFileReader type to source library
LazyFileReader is an io.Reader implementation to postpone reading the
file contents until it is really needed. It is introduced for improving
performance and memory consumption at reading media files in content
directory.
Bjørn Erik Pedersen [Fri, 21 Aug 2015 07:17:53 +0000 (09:17 +0200)]
Update Travis for Go 1.5
Andrew Carter [Thu, 20 Aug 2015 20:48:42 +0000 (13:48 -0700)]
Fix -ldflags for Go 1.5
Use correct form -X <name>=<value> for Go 1.5
Icaro Seara [Wed, 19 Aug 2015 01:59:34 +0000 (22:59 -0300)]
Fix typo, "delemiters" -> "delimiters"
Francois Lanthier Nadeau [Thu, 13 Aug 2015 18:00:33 +0000 (14:00 -0400)]
Update press.md
New article about Hugo on the Snipcart blog.
Anthony Fok [Wed, 19 Aug 2015 06:36:22 +0000 (00:36 -0600)]
Search current directory for config file by default
As of 2015-08-16, Viper no longer searches the CWD
for config file by default to avoid unintended surprises,
but Hugo relies on the original behaviour.
Fixed by calling
viper.AddConfigPath(".")
at the appropriate place.
See https://github.com/spf13/viper/issues/73 for more information.
Fixes #1363
Bjørn Erik Pedersen [Sat, 15 Aug 2015 13:47:16 +0000 (15:47 +0200)]
Use cast.ToIntE for int conversions in substr and slicestr
It is less restrictive, and it is what is used in other template funcs.
Benny Wu [Fri, 14 Aug 2015 08:36:56 +0000 (15:36 +0700)]
Slicestr fix for other int type param
Fixes #1347
Benny Wu [Tue, 11 Aug 2015 02:33:13 +0000 (09:33 +0700)]
Documentation update on Template Where Function for nil
Anthony Fok [Mon, 10 Aug 2015 00:49:54 +0000 (18:49 -0600)]
Implement `hugo --theme=[Tab][Tab]` bash completion
using the new BashCompSubdirsInDir annotation in spf13/cobra.
Anthony Fok [Thu, 6 Aug 2015 21:38:25 +0000 (15:38 -0600)]
Print feedback for `hugo genautocomplete`
Anthony Fok [Sat, 8 Aug 2015 04:26:28 +0000 (22:26 -0600)]
Print feedback for `hugo gendoc`
Anthony Fok [Sat, 8 Aug 2015 04:50:36 +0000 (22:50 -0600)]
Use spf13/pflag's new SetAnnotation helper
And make our bash completion code more compact.
Michael Diamond [Thu, 6 Aug 2015 05:39:49 +0000 (01:39 -0400)]
Added sitemap configuration documentation.
Michael Diamond [Thu, 6 Aug 2015 05:21:18 +0000 (01:21 -0400)]
Added mention of .Data.Pages, removed duplicate .Site.Pages mention.
Anthony Fok [Sat, 8 Aug 2015 20:48:01 +0000 (14:48 -0600)]
docs: Remove minodisk's dsk.mn/ from Showcase
The domain dsk.mn expired in January 2015,
and unfortunately I was unable to reach the author
nor find his replacement website.
Anthony Fok [Sat, 8 Aug 2015 20:22:48 +0000 (14:22 -0600)]
docs: Clean up and align Showcase thumbnail images
Some of the thumbnails in Showcase were out of place
because of several irregularly sized thumbnails,
and some of them almost 300KB in filesize.
Resize them all to 600x400 (pixels), and use the `-tn.png`
suffix.
When necessary, the website snapshot is re-captured using
gnome-web-photo. Then, the following commands (or a combination
thereof) are used to crop and resize the image into a thumbnail,
and to reduce its filesize:
$ convert example.png -crop 900x600+0+0 \
-filter Lanczos2Sharp -distort Resize 600x400 \
example-tn.png
$ pngquant --nofs -v --speed 1 --quality 65-80 example-tn.png
$ optipng -o7 -zm1-9 example-tn-or8.png
$ mv example-tn-or8.png example-tn.png
Anthony Fok [Sat, 8 Aug 2015 07:41:18 +0000 (01:41 -0600)]
docs: Add site title; set pluralizeListTitles = false
To prevent "Showcase" from becoming "Showcases",
also to have the RSS feed display correct titles,
i.e. "Showcase on gohugo.io" rather than "Showcase on ".
Bruno Calheira [Thu, 6 Aug 2015 00:06:53 +0000 (21:06 -0300)]
Add Arqueart to Showcase
Bruno Calheira [Wed, 5 Aug 2015 23:51:33 +0000 (20:51 -0300)]
Create arqueart.md
Anthony Fok [Sat, 8 Aug 2015 05:30:11 +0000 (23:30 -0600)]
docs: More detailed explanation of .Site.LastChange
Austin Dizzy [Mon, 3 Aug 2015 04:01:52 +0000 (00:01 -0400)]
Removed extra .Site.LastChange listing
Baptiste Mathus [Sat, 1 Aug 2015 21:50:39 +0000 (23:50 +0200)]
Doc for other supported formats (external helpers)
As Hugo now supports more formats thanks to the new "external helpers"
feature recently introduced, and as requested by some people, I added
some lines in the doc:
* basically confirming it actually exists
* how to use it
Bjørn Erik Pedersen [Fri, 7 Aug 2015 18:30:01 +0000 (20:30 +0200)]
Reset Scratch for 404
The 404 pages etc. need a better solution, but fix this issue for now.
Fixes #1336
Bjørn Erik Pedersen [Fri, 7 Aug 2015 18:09:40 +0000 (20:09 +0200)]
Revert "Fix some Go code doc issues"
This reverts commit
de7dd70bbc1ac533f137e5f788e1b337d6ba6b8c.
Broke the code fence feat.
Bjørn Erik Pedersen [Fri, 7 Aug 2015 18:08:23 +0000 (20:08 +0200)]
Avoid panic in shortcode param handling
Fixes #1337
Bjørn Erik Pedersen [Fri, 7 Aug 2015 17:21:26 +0000 (19:21 +0200)]
Do not panic on index out of range in shortcode.Get
Fixes #1335
Bjørn Erik Pedersen [Fri, 7 Aug 2015 12:55:53 +0000 (14:55 +0200)]
Also rename readDir in docs shortcode
Bjørn Erik Pedersen [Fri, 7 Aug 2015 12:33:48 +0000 (14:33 +0200)]
Rename ReadDir to readDir
To make it consistent with the other template funcs.
Tatsushi Demachi [Fri, 7 Aug 2015 11:05:18 +0000 (20:05 +0900)]
Make sort tpl func accept field/key chaining arg
'sort' template function used to accept only each element's struct field
name, method name and map key name as its second argument. This extends
it to accept a field/method/key chaining key string like
'Params.foo.bar' as the argument. It evaluates sub elements of each
array or map elements and sorts by them.
Typical use case would be sorting pages by user defined front matter
value. For example, sorting pages by 'Params.foo.bar' is possible by
writing the following template code
{{ range sort .Data.Pages "Params.foo.bar" }}
{{ .Content }}
{{ end }}
It ignores all leading and trailing dots so "Params.foo.bar" can be
written in ".Params.foo.bar"
This also fixes the issue that 'sort' cannot evaluate a pointer value.
Fix #1330
Tatsushi Demachi [Thu, 6 Aug 2015 17:27:15 +0000 (02:27 +0900)]
Fix sort tpl func to return explicit type value
sort template function returns `[]interface{}` type slice value
regardless of its original element type.
This fixes it to keep the original element type. For example, if it
sorts `map[string]int` type value, it returns `[]int` slice value
instead of `[]interface{}` slice value.
Bjørn Erik Pedersen [Fri, 7 Aug 2015 06:52:22 +0000 (08:52 +0200)]
Fix Unicode issue in Slicestr and Substr
Fixes #1333
Bjørn Erik Pedersen [Thu, 6 Aug 2015 20:58:10 +0000 (22:58 +0200)]
Fix some Go code doc issues
Bjørn Erik Pedersen [Thu, 6 Aug 2015 20:46:01 +0000 (22:46 +0200)]
Add missing formatting directive in Printf call
To make Go Vet happy.
Anthony Fok [Wed, 5 Aug 2015 22:24:03 +0000 (16:24 -0600)]
docs: Extend documentation on Blackfriday options
Especially to spell out how the `latexDashes` flag
changes the behavior of smart dashes