bep [Sun, 17 May 2015 13:44:43 +0000 (15:44 +0200)]
 
Add a line in doc about the RelativeURL setting
Fixes #1145
bep [Sun, 17 May 2015 13:01:24 +0000 (15:01 +0200)]
 
Add bugfix to releasenotes
Takuya Wakisaka [Thu, 9 Apr 2015 16:14:26 +0000 (01:14 +0900)]
 
Fix UTF8 permalink
Generate unencoded directory in public dir.
Fixes #988
Takuya Wakisaka [Sat, 9 May 2015 10:12:30 +0000 (19:12 +0900)]
 
Add Page tests with UTF8 paths
See #988
bep [Sat, 16 May 2015 17:52:12 +0000 (19:52 +0200)]
 
Remove trailing spaces in completionfile flag
bep [Sat, 16 May 2015 16:12:00 +0000 (18:12 +0200)]
 
Add some bullet points to 0.14 rel notes
bep [Sat, 16 May 2015 16:04:56 +0000 (18:04 +0200)]
 
Add Bash completion
Add a new command, genautocomplete, wich generates a Bash completion script (zsh and others later).
The script is by default written to `/etc/bash_completion.d/hugo.sh`; this can be set in `--completionfile=/some/file`.
Fixes #438
Andre R [Sun, 10 May 2015 18:38:05 +0000 (14:38 -0400)]
 
Fix datePublished to publishdate
bep [Sat, 16 May 2015 13:42:10 +0000 (15:42 +0200)]
 
Do not shout about missing baseURL if relativeURLs is set
Rick Cogley [Tue, 12 May 2015 06:56:56 +0000 (15:56 +0900)]
 
Edits on aliases, comments, theme customizing
Fleshed out aliases section, loading the "redirect" keyword so that it's easier to find. Specifically added a "how aliases work" section.
Added Discourse to comments section.
Fleshed out themes/customizing, because it seems to be the source of a lot of questions on the forum.
Rick Cogley [Sat, 16 May 2015 12:59:37 +0000 (21:59 +0900)]
 
Edit docs extras syntax highlighting.md
Added a bunch of clarifying narrative, looking at the discussion forum for what people are asking about, and what I myself was confused about.
* clearer separation of advantage of each style - server or client side - at the top
* inconsistent newlines (different column widths) so I just removed them from obvious paragraphs
* added that the highlight shortcode is not used for the client-side javascripts
* Hugo is taking crap for Pygments being slow, so tried to emphasize that's it's in Pygment's lap. I got your back, Hugo.
* On client-side added prism example
* More clarity on how the css and js needs to be added to your templates
* Explained how the client-side scripts work
bep [Fri, 15 May 2015 22:11:39 +0000 (00:11 +0200)]
 
Add support for URLs relative to context root
Setting `RelativeURLs` to `true` will make all relative URLs in the site *really* relative.
And will do so with speed.
So:
In `/post/myblogpost.html`:
`/mycss.css` becomes `../mycss.css`
The same in `/index.html` will become:
`./mycss.css` etc.
Note that absolute URLs will not be touched (either external resources, or URLs constructed with `BaseURL`).
The speediness is about the same as before:
```
benchmark                    old ns/op     new ns/op     delta
BenchmarkAbsURL              17462         18164         +4.02%
BenchmarkAbsURLSrcset        18842         19632         +4.19%
BenchmarkXMLAbsURLSrcset     18643         19313         +3.59%
BenchmarkXMLAbsURL           9283          9656          +4.02%
benchmark                    old allocs     new allocs     delta
BenchmarkAbsURL              24             28             +16.67%
BenchmarkAbsURLSrcset        29             32             +10.34%
BenchmarkXMLAbsURLSrcset     27             30             +11.11%
BenchmarkXMLAbsURL           12             14             +16.67%
benchmark                    old bytes     new bytes     delta
BenchmarkAbsURL              3154          3404          +7.93%
BenchmarkAbsURLSrcset        2376          2573          +8.29%
BenchmarkXMLAbsURLSrcset     2569          2763          +7.55%
BenchmarkXMLAbsURL           1888          1998          +5.83%
```
Fixes #1104
Fixes #622
Fixes #937
Fixes #157
Rick Cogley [Fri, 15 May 2015 15:04:25 +0000 (00:04 +0900)]
 
Edits to templates/404.md
Added bit about how the 404.html page has to be set to load automatically - auto on Github but needs config on other web servers.
Also tweaked the text a little to emphasize it's a node type, and explain a little more about where the 404 template should be saved.
Juan B. Rodriguez [Thu, 14 May 2015 21:58:14 +0000 (16:58 -0500)]
 
Set s.Info.LastChange to Lastmod
Set sitemap.xml <lastmod> field to Lastmod.
See #733
Juan B. Rodriguez [Thu, 14 May 2015 20:06:36 +0000 (15:06 -0500)]
 
Add Lastmod field
Create new field in Node
Update Page to look for lastmod field in the front matter. If not present, then assign Date to Lastmod
Update Site, to assign a value to Lastmod (based on the same logic used for Date)
Fixes #733
bep [Thu, 14 May 2015 21:24:13 +0000 (23:24 +0200)]
 
Remove old baseline.txt with no current relevance
bep [Thu, 14 May 2015 21:18:00 +0000 (23:18 +0200)]
 
Add convenience script to run benchmarks
bep [Thu, 14 May 2015 19:37:53 +0000 (21:37 +0200)]
 
Only uglify 404.html on server root
`404.html` needs to be that and not `/404/` in the root.
There seem to be content pages in the wild with the name `404` (Hugo docs),
so this commit adds an extra check so only root 404 pages ignore the `uglifyURLs`setting.
Fixes #1140
bep [Tue, 12 May 2015 17:49:44 +0000 (19:49 +0200)]
 
Add data-no-instant to livereload script tag
To support instantclick.
Fixes #1135
bep [Tue, 12 May 2015 16:46:45 +0000 (18:46 +0200)]
 
docs: reverse taxonomy entries
David Calavera [Sat, 9 May 2015 22:21:30 +0000 (15:21 -0700)]
 
Allow to reverse taxonomy entries.
bep [Tue, 12 May 2015 16:12:58 +0000 (18:12 +0200)]
 
Allow forward slashes in Hugo new on Windows
Fixes  #1133
bep [Mon, 11 May 2015 20:23:35 +0000 (22:23 +0200)]
 
docs: Use ToC length to pick the compact version
bep [Mon, 11 May 2015 17:08:52 +0000 (19:08 +0200)]
 
Add doc for absURL and relURL
Also group URL related functions in doc.
bep [Mon, 11 May 2015 16:39:40 +0000 (18:39 +0200)]
 
Add ToC to long pages
* A compact, fixed box in the right screen
* Only for big screens, > 1200 px wide
bep [Mon, 11 May 2015 16:06:47 +0000 (18:06 +0200)]
 
Add absURL and relURL to release notes
bep [Mon, 11 May 2015 11:59:06 +0000 (13:59 +0200)]
 
Add relURL template func
Fixes #1126
bep [Mon, 11 May 2015 10:28:44 +0000 (12:28 +0200)]
 
Add absURL template func
Fixes #1106
bep [Sun, 10 May 2015 16:28:47 +0000 (18:28 +0200)]
 
Make page 1 alias ugly
When `uglyurls = true`
Fixes #1121
bep [Sun, 10 May 2015 14:18:14 +0000 (16:18 +0200)]
 
Add docs for Section Menu for “the Lazy Blogger”
bep [Sun, 10 May 2015 13:41:20 +0000 (15:41 +0200)]
 
Add list of deprecated names to release notes
bep [Sun, 10 May 2015 13:25:58 +0000 (15:25 +0200)]
 
Add issue to release notes
bep [Sun, 10 May 2015 13:23:36 +0000 (15:23 +0200)]
 
Fix paginator with uglyurls
Fixes #1120
bep [Sun, 10 May 2015 11:33:50 +0000 (13:33 +0200)]
 
Fix .Truncated in manual summaries
Fixes #1119
bep [Sat, 9 May 2015 20:03:45 +0000 (22:03 +0200)]
 
Some notes on 0.14 rel notes
bep [Sat, 9 May 2015 18:54:11 +0000 (20:54 +0200)]
 
Fix IsMenuCurrent for SectionPagesMenu
Pretty sure it has worked at some point, but that PR probably has been rebased to pieces.
This refactors the fix by @dannys42 into a method, as this URL fix is applied several places.
Fixes #1114
bep [Sat, 9 May 2015 06:02:52 +0000 (08:02 +0200)]
 
Make sure that complete server URL is logged on startup
Fixes #1113
Bill Traynor [Tue, 14 Apr 2015 03:04:03 +0000 (23:04 -0400)]
 
Added in set PATH and new site output.
I added in the instructions for how to add the hugo.exe to the PATH variable.  And I added in example output post new site command.
[close #1058]
bep [Sun, 5 Apr 2015 19:03:16 +0000 (21:03 +0200)]
 
Update test logs for uniformity and consistency
Many minor fixes to make test logs more consistent and correct a
mispelling.
Standardize on "[%i] got X but expected Y" for log messages. Using
a consistent layout makes it easier to read the test results. This
was mostly changing "Got" to "got". Swapped the order of values on
several calls to bring them in line with the convention.
A few log messages had a sequence number added to identify the
exact scenario that failed. Otherwise, there would be no way to
ascertain which failed When there are many scenarios.
Correct spelling of "expected."
Fixes #1028
Merged 
be2097e1ad789eca5d893805a059d94defbe5c48
[close #1040]
Danny Sung [Tue, 31 Mar 2015 05:44:08 +0000 (22:44 -0700)]
 
IsMenuCurrent now resolving correctly when baseUrl is not at the root path
Joel Scoble [Sun, 15 Mar 2015 22:32:41 +0000 (17:32 -0500)]
 
add undraft command
Anthony Fok [Fri, 30 Jan 2015 14:17:50 +0000 (07:17 -0700)]
 
Very experimental support for mmark
Either name the content files as `*.mmark`,
or add `markup = "mmark"` in the front matter
of your `*.md` content files.
bep [Tue, 6 Jan 2015 17:11:06 +0000 (18:11 +0100)]
 
Section menu for the lazy blogger
The current menu system works great, but is too much work if all you want is a simple menu with the sections as menu items, and having these menu items connected to the pages in a way that enables setting the correct menu item as active for both the section lists and the pages itself.
This commit adds a new option `SectionPagesMenu' which, if set, will create a new menu with that name with all the sections as menu items. The pages in the sections will behave as "shadow members" of these section items as `blogpage.HasMenuCurrent "sectionmenu" $sectionmenuitem` will return true.
If a menu item with the same `identifier` is defined in site config, *that* item will take precedence.
bep [Fri, 8 May 2015 18:33:40 +0000 (20:33 +0200)]
 
Make RSS output test more realistic
By setting a non-default RSS uri config value.
Dana H. P'Simer [Fri, 24 Apr 2015 18:25:09 +0000 (14:25 -0400)]
 
Add RSSUri to specify the name of the RSS file
bep [Thu, 7 May 2015 20:08:11 +0000 (22:08 +0200)]
 
Add bind to release notes
Liam Bowen [Sat, 2 May 2015 02:28:21 +0000 (22:28 -0400)]
 
Make server bind interface configurable.
Bind by default to 127.0.0.1. Previously it always bound to all interfaces.
Always have log message display that the server is available on the
interface to which it is bound, instead of the baseUrl.
Fixes #1097
Egon Elbre [Sun, 26 Apr 2015 16:25:23 +0000 (19:25 +0300)]
 
Fix multilingual styling with small screen.
Egon Elbre [Sun, 26 Apr 2015 16:23:38 +0000 (19:23 +0300)]
 
Added missing files, make the site look better.
Egon Elbre [Sun, 26 Apr 2015 15:42:09 +0000 (18:42 +0300)]
 
Fix multilingual site layouts/templates.
Yosuke INOUE [Thu, 16 Apr 2015 01:54:10 +0000 (10:54 +0900)]
 
Add blackfriday/ExtensionsMask option.
Andrew Gallant [Thu, 7 May 2015 00:55:28 +0000 (20:55 -0400)]
 
Allow 'classprefix' pygments options.
bep [Wed, 6 May 2015 17:11:33 +0000 (19:11 +0200)]
 
Add shortcode support for HTML files
Fixes #674
bep [Tue, 5 May 2015 14:02:52 +0000 (16:02 +0200)]
 
Do not add trailing slash to baseURL
Fixes #1105
bep [Mon, 4 May 2015 10:51:48 +0000 (12:51 +0200)]
 
Polish absurlreplacer
bep [Sun, 3 May 2015 22:06:10 +0000 (00:06 +0200)]
 
Rename field i to the more descriptive idx
bep [Sun, 3 May 2015 21:04:38 +0000 (23:04 +0200)]
 
absurlreplacer: remove superfluous code, take 2
 ```
benchmark                    old ns/op     new ns/op     delta
BenchmarkAbsURL              17946         17454         -2.74%
BenchmarkAbsURLSrcset        19236         18979         -1.34%
BenchmarkXMLAbsURLSrcset     19046         18688         -1.88%
BenchmarkXMLAbsURL           9561          9432          -1.35%
benchmark                    old allocs     new allocs     delta
BenchmarkAbsURL              24             24             +0.00%
BenchmarkAbsURLSrcset        29             29             +0.00%
BenchmarkXMLAbsURLSrcset     27             27             +0.00%
BenchmarkXMLAbsURL           12             12             +0.00%
benchmark                    old bytes     new bytes     delta
BenchmarkAbsURL              3139          3139          +0.00%
BenchmarkAbsURLSrcset        2374          2369          -0.21%
BenchmarkXMLAbsURLSrcset     2574          2572          -0.08%
BenchmarkXMLAbsURL           1871          1871          +0.00%
```
See #1059
bep [Sun, 3 May 2015 20:42:56 +0000 (22:42 +0200)]
 
absurlreplacer: remove superfluous code
```
benchmark                    old ns/op     new ns/op     delta
BenchmarkAbsURL              18381         17946         -2.37%
BenchmarkAbsURLSrcset        19531         19236         -1.51%
BenchmarkXMLAbsURLSrcset     19316         19046         -1.40%
BenchmarkXMLAbsURL           9818          9561          -2.62%
benchmark                    old allocs     new allocs     delta
BenchmarkAbsURL              24             24             +0.00%
BenchmarkAbsURLSrcset        29             29             +0.00%
BenchmarkXMLAbsURLSrcset     27             27             +0.00%
BenchmarkXMLAbsURL           12             12             +0.00%
benchmark                    old bytes     new bytes     delta
BenchmarkAbsURL              3139          3139          +0.00%
BenchmarkAbsURLSrcset        2354          2374          +0.85%
BenchmarkXMLAbsURLSrcset     2584          2574          -0.39%
BenchmarkXMLAbsURL           1864          1871          +0.38%
```
See #1059
bep [Sun, 3 May 2015 18:57:47 +0000 (20:57 +0200)]
 
Add benchmark tests for srcset handling
See #1059
bep [Sun, 3 May 2015 18:09:36 +0000 (20:09 +0200)]
 
Fix testdata: srcset items should be comma separated, according to spec
See #1059
bep [Sun, 3 May 2015 17:54:17 +0000 (19:54 +0200)]
 
canonifyurls in srcset
Speed is about the same as before, uses slightly less memory:
```
benchmark              old ns/op     new ns/op     delta
BenchmarkAbsURL        17302         17713         +2.38%
BenchmarkXMLAbsURL     9463          9470          +0.07%
benchmark              old allocs     new allocs     delta
BenchmarkAbsURL        28             24             -14.29%
BenchmarkXMLAbsURL     14             12             -14.29%
benchmark              old bytes     new bytes     delta
BenchmarkAbsURL        3422          3144          -8.12%
BenchmarkXMLAbsURL     1985          1864          -6.10%
```
Fixes #1059
bep [Sat, 2 May 2015 09:32:38 +0000 (11:32 +0200)]
 
Disable faulty range validation in apply
Fixed #1098
bep [Fri, 1 May 2015 22:24:46 +0000 (00:24 +0200)]
 
Try to make it more visible that you have to set baseUrl
bep [Fri, 1 May 2015 15:00:22 +0000 (17:00 +0200)]
 
tpl: check that types in args match the target func's type
Fixes #1095
bep [Fri, 1 May 2015 10:29:10 +0000 (12:29 +0200)]
 
absurl: export a base url var for testing
bep [Thu, 30 Apr 2015 13:59:14 +0000 (15:59 +0200)]
 
shortcodeparser: fix panic on slash following opening shortcode comment
Fixes #1093
bep [Thu, 30 Apr 2015 11:25:45 +0000 (13:25 +0200)]
 
tpl: add sanity check to prevent panic in seq on big nums
Fixes #1092
bep [Thu, 30 Apr 2015 09:41:25 +0000 (11:41 +0200)]
 
tpl: check for too many arguments in apply
Fixes #1091
bep [Thu, 30 Apr 2015 09:26:34 +0000 (11:26 +0200)]
 
tpl: check slice bounds in slicestr
Fixes #1090
bep [Thu, 30 Apr 2015 08:51:01 +0000 (10:51 +0200)]
 
tpl: avoid panic on too few args to apply
Fixes #1089
bep [Wed, 29 Apr 2015 20:40:31 +0000 (22:40 +0200)]
 
doc: move the index func reference to where it's used
Rick Cogley [Tue, 28 Apr 2015 22:41:08 +0000 (07:41 +0900)]
 
Add index reference to go template primer doc page
Related to @bjornerik 's answer in this discussion: http://discuss.gohugo.io/t/inserting-data-from-data-file-into-content-file-newbie-question/1002/3 ... I figured I'd make myself useful and add the reference to the index function, on the go template primer page.
Also, I moved the reference links to the bottom.
A general comment: as good as these docs are, the primer at this point makes some assumptions about audience knowledge, so some might find it lacking. Once I understand better, I might make some more clarifying edits.
bep [Wed, 29 Apr 2015 17:21:57 +0000 (19:21 +0200)]
 
Fix typo in test
bep [Wed, 29 Apr 2015 17:08:34 +0000 (19:08 +0200)]
 
Return error from HandleShortcodes
To be able to test for it.
bep [Tue, 28 Apr 2015 18:39:11 +0000 (20:39 +0200)]
 
Print ERROR on theme vs Hugo version mismatch
Fixes #1070
Rick Cogley [Mon, 27 Apr 2015 01:34:09 +0000 (10:34 +0900)]
 
Clarify partials folder subfolders
A couple of edits to clarify that the layout/partials folder can contain arbitrarily-named subfolders, since I found the examples using ``{{ partial "post/tag/list" . }}`` confusing. Some folders are named specifically to work a certain way with hugo, but although the examples use key functional section and taxonomy names like post and tag, it does not matter what they are called. Hopefully this will help other newbs.
Rick Cogley [Fri, 24 Apr 2015 09:10:51 +0000 (18:10 +0900)]
 
Single rather than double backticks in types.md
Whoops, I had the new hugo new as double backticks but it appears only single are needed.
Rick Cogley [Fri, 24 Apr 2015 09:05:50 +0000 (18:05 +0900)]
 
Clarify hugo new command in types.md
Elsewhere in the docs commands are entered as code, so to be consistent with that, added backticks and the word hugo.
bep [Wed, 22 Apr 2015 16:59:46 +0000 (18:59 +0200)]
 
Fix broken Travis tests
No idea why these suddenly starts to fail.
bep [Wed, 22 Apr 2015 16:36:07 +0000 (18:36 +0200)]
 
Do not fail on unknown files in /data
Fixes #1068
bep [Tue, 21 Apr 2015 19:25:42 +0000 (21:25 +0200)]
 
pagination: export pager to make Golint happy
bep [Tue, 21 Apr 2015 19:13:28 +0000 (21:13 +0200)]
 
Use fmt.Errorf to make Golint happy
bep [Sun, 19 Apr 2015 12:50:24 +0000 (14:50 +0200)]
 
Add shortcut to Scratch from shortcode
bep [Sun, 19 Apr 2015 09:30:10 +0000 (11:30 +0200)]
 
doc: clarify Scratch usage in shortcodes
bep [Sat, 18 Apr 2015 21:06:14 +0000 (23:06 +0200)]
 
Check spelling and some minor additions to Ace doc
bep [Sat, 18 Apr 2015 18:23:14 +0000 (20:23 +0200)]
 
Add doc for Ace templates
Fixes #1063
bep [Sat, 18 Apr 2015 11:58:35 +0000 (13:58 +0200)]
 
Expand the ACE base template lookup pattern
The previous implementation didn't easily support the use case "I want one base template for the single pages, another for the rest".
The new lookup order is:
1. <current-path>/<template-name>-baseof.ace, e.g. list-baseof.ace
2. <current-path>/baseof.ace
3. _default/<template-name>-baseof.ace, e.g. list-baseof.ace.
4. _default/baseof.ace
bep [Fri, 17 Apr 2015 22:40:54 +0000 (00:40 +0200)]
 
Polish func naming in shortcode handling
bep [Fri, 17 Apr 2015 22:32:07 +0000 (00:32 +0200)]
 
Remove unused types Shortcode and ShortcodeFunc
bep [Thu, 16 Apr 2015 00:27:37 +0000 (02:27 +0200)]
 
Only write highlight to cache when CacheDir is set
To avoid writing cache files when testing.
bep [Thu, 16 Apr 2015 00:20:15 +0000 (02:20 +0200)]
 
Fix broken Highlight test
bep [Wed, 15 Apr 2015 22:58:17 +0000 (00:58 +0200)]
 
Temporarily disable Highlight test
bep [Wed, 15 Apr 2015 18:31:05 +0000 (20:31 +0200)]
 
Add more options to highlight
Fixes #1021
bep [Tue, 14 Apr 2015 17:58:37 +0000 (19:58 +0200)]
 
Fix potential Windows path issue with Pygments cache
Florian Baumann [Thu, 2 Apr 2015 08:16:18 +0000 (10:16 +0200)]
 
Added isso as a Disqus alternative to the docs
Hi,
I'm using isso with my hugo blog which works just fine.
I think this should be added to the docs :)
Thanks!
Anthony Fok [Fri, 10 Apr 2015 20:19:54 +0000 (14:19 -0600)]
 
Add "Google Cloud Storage" article to docs Press page
See #1055
Samuel Lelièvre [Fri, 10 Apr 2015 09:26:46 +0000 (11:26 +0200)]
 
Typo in mathjax.md
complexsplit [Wed, 8 Apr 2015 03:02:20 +0000 (23:02 -0400)]
 
Add Google Cloud Storage to doc
bep [Tue, 7 Apr 2015 13:17:24 +0000 (15:17 +0200)]
 
Fix spelling mistake in comment
bep [Tue, 7 Apr 2015 11:01:04 +0000 (13:01 +0200)]
 
Add custom Windows mousestrap message
Fixes #1022