bep [Wed, 27 May 2015 18:41:25 +0000 (20:41 +0200)]
Never remove trailing slash in RelPermalink
Fixed #1174
bep [Wed, 27 May 2015 09:59:27 +0000 (11:59 +0200)]
docs: getting usage up to spec
Anthony Fok [Wed, 27 May 2015 03:45:50 +0000 (21:45 -0600)]
Add two articles about Hugo to the Press page
* http://jbrodriguez.io/mobile-friendly-website-2/
* http://blog.hypriot.com/post/moved-from-posthaven-to-hugo/
bep [Tue, 26 May 2015 21:08:32 +0000 (23:08 +0200)]
Make deprecated warning for this release more alert
bep [Tue, 26 May 2015 20:44:40 +0000 (22:44 +0200)]
Hyphenate DEV version
Tatsushi Demachi [Tue, 26 May 2015 10:33:32 +0000 (19:33 +0900)]
Add `time.Time` type support to `where` tpl func
`where` tpl function doesn't support `time.Time` type so if people want
to compare such values, it's required that these values are converted
into `int` and compare them.
This improves it. If `time.Time` values are passed to `where`, it
converts them into `int` internally, compares them and returns the
result.
See also
http://discuss.gohugo.io/t/future-posts-and-past-posts/1229/3
bep [Tue, 26 May 2015 08:52:00 +0000 (10:52 +0200)]
docs: add bepsays.com to showcase
Jeff Ramnani [Mon, 25 May 2015 19:16:10 +0000 (14:16 -0500)]
Document techniques for debugging templates.
This information was previously scattered around in the forums and
mailing list. Add it to the official docs to make things easier for new
users.
Fixes #1167
spf13 [Tue, 26 May 2015 01:47:41 +0000 (21:47 -0400)]
adding goxc config file
spf13 [Tue, 26 May 2015 01:46:29 +0000 (21:46 -0400)]
bumping master version to v0.15-DEV
spf13 [Mon, 25 May 2015 15:59:47 +0000 (11:59 -0400)]
Bump version to Hugo v0.14.0
spf13 [Mon, 25 May 2015 15:55:48 +0000 (11:55 -0400)]
Add GopherCon to the showcase
spf13 [Mon, 25 May 2015 15:55:33 +0000 (11:55 -0400)]
Add GoGB to the showcase
spf13 [Mon, 25 May 2015 15:55:19 +0000 (11:55 -0400)]
Add DavidePetilli to showcase
spf13 [Mon, 25 May 2015 15:55:04 +0000 (11:55 -0400)]
update release notes
spf13 [Mon, 25 May 2015 15:54:47 +0000 (11:54 -0400)]
Add new directions for maintaining press page
spf13 [Mon, 25 May 2015 15:54:22 +0000 (11:54 -0400)]
Move press page to top level menu
spf13 [Mon, 25 May 2015 15:53:37 +0000 (11:53 -0400)]
add dozens of articles to the press page
bep [Mon, 25 May 2015 11:10:26 +0000 (13:10 +0200)]
Unexport filepath/path bridge types
They are of no use outside the helpers package.
See #1160
bep [Mon, 25 May 2015 10:57:37 +0000 (12:57 +0200)]
Pass RenderingContext by reference in Mmark
bep [Mon, 25 May 2015 10:54:12 +0000 (12:54 +0200)]
Apply gofmt -s
bep [Sun, 24 May 2015 16:46:32 +0000 (18:46 +0200)]
Add Go 1.4.2 to Travis config
Go tip is at 1.5 now; make sure we also test with the latest release version.
spf13 [Sun, 24 May 2015 02:04:12 +0000 (22:04 -0400)]
Update release notes in prep for v0.14.0
bep [Sat, 23 May 2015 20:13:05 +0000 (22:13 +0200)]
Remove unused Completed chan on Site
See #1160
bep [Sat, 23 May 2015 10:28:01 +0000 (12:28 +0200)]
Prevent cyclic ref crash in JSON encode
Note that this commit makes no promise about great JSON output from the encoder, but the cyclic refs should be broken.
Fixes #1123
bep [Fri, 22 May 2015 21:43:12 +0000 (23:43 +0200)]
docs: some more on absURL, relURL
bep [Fri, 22 May 2015 20:36:17 +0000 (22:36 +0200)]
docs: add doc for substr
Fixes #1156
bep [Fri, 22 May 2015 20:20:35 +0000 (22:20 +0200)]
docs: add doc for slicestr
See #1156
bep [Fri, 22 May 2015 20:17:45 +0000 (22:17 +0200)]
docs: add doc for seq
See #1156
bep [Fri, 22 May 2015 18:46:09 +0000 (20:46 +0200)]
docs: add ToC to some more pages
bep [Fri, 22 May 2015 18:18:34 +0000 (20:18 +0200)]
docs: avoid navbar hiding when jumping to in-page anchor
Jeff Ramnani [Fri, 22 May 2015 17:06:18 +0000 (12:06 -0500)]
Docs: Add taxonomy term variables to the list of vars.
Taxonomy Term pages have variables in addition to those on "node"
pages. Documenting these variables with all the other node variables
makes them easier to find.
Fixes: #1155
Jeff Ramnani [Fri, 22 May 2015 16:43:29 +0000 (11:43 -0500)]
Add ".Render" to the list of functions.
Fixes: #1153
Rick Cogley [Tue, 19 May 2015 14:18:28 +0000 (23:18 +0900)]
Clarifying Edits for templates/rss.md
Added clarification for RSS doc page.
* a little formatting to make key words jump out
* emphasize that you can create your own
* add how to link to the feed in <head>
* add what .RSSlink does
* added point that a link to an RSS feed should be of type application/rss+xml
bep [Thu, 21 May 2015 21:04:36 +0000 (23:04 +0200)]
Grammar fix in error message
bep [Thu, 21 May 2015 18:12:25 +0000 (20:12 +0200)]
Do not consider single.html for the home page
Fixes #1152
bep [Thu, 21 May 2015 18:05:14 +0000 (20:05 +0200)]
Fix formatting in hugo command description
bep [Thu, 21 May 2015 11:30:01 +0000 (13:30 +0200)]
Fix CLI command description for the top level
And regenerate the commands doc.
spf13 [Wed, 20 May 2015 22:55:24 +0000 (18:55 -0400)]
Adding default handler & tests Fixes #147
spf13 [Wed, 20 May 2015 22:50:32 +0000 (18:50 -0400)]
Better organization of loading defaults
spf13 [Wed, 20 May 2015 22:48:33 +0000 (18:48 -0400)]
Merge branch 'master' of GitHub.com:spf13/hugo
spf13 [Wed, 20 May 2015 06:21:21 +0000 (02:21 -0400)]
Stop Viper from leaking across many of the tests (now tests pass regardless of order tested)
bep [Tue, 19 May 2015 20:00:48 +0000 (22:00 +0200)]
Add benchmark test for replaceShortcodeTokens
bep [Wed, 13 May 2015 13:31:30 +0000 (15:31 +0200)]
Add gendoc command
Using the new, great auto-doc in Cobra.
This commit also contains a current result of that command added to a commands section in docs.
Fixes #1136
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