Bjørn Erik Pedersen [Sun, 19 Mar 2017 20:18:33 +0000 (21:18 +0100)]
Add support for a flatter and simpler language file structure
See https://github.com/nicksnyder/go-i18n/issues/62
See #2577
Bjørn Erik Pedersen [Sun, 19 Mar 2017 09:23:54 +0000 (10:23 +0100)]
Revert "helpers: Add a Debug method to DistinctLogger"
Not needed.
This reverts commit
4382a8a6a030520d9f094b3d7bb8f3ae3f08b187.
Tibo Beijen [Sat, 18 Mar 2017 20:54:54 +0000 (21:54 +0100)]
docs: Add tibobeijen.nl to site showcase
Bjørn Erik Pedersen [Sat, 18 Mar 2017 16:31:42 +0000 (17:31 +0100)]
helpers: Add a Debug method to DistinctLogger
Stefan Buynov [Sat, 18 Mar 2017 15:16:25 +0000 (17:16 +0200)]
Case insensitive translation of the 'more' tag when importing from Jekyll
Dan Callahan [Fri, 17 Mar 2017 22:57:53 +0000 (17:57 -0500)]
docs: Fix documentation of non-existent 'editor' config
Anthony Fok [Wed, 15 Mar 2017 13:58:58 +0000 (07:58 -0600)]
docs: Change OS X to macOS in README and CONTRIBUTING
Albert Nigmatzianov [Wed, 15 Mar 2017 08:27:02 +0000 (13:27 +0500)]
docs: Fix CONTRIBUTING.md
Bjørn Erik Pedersen [Wed, 15 Mar 2017 07:04:52 +0000 (08:04 +0100)]
Update to new go-toml API
Closes #3142
Cameron Moore [Tue, 14 Mar 2017 22:03:49 +0000 (17:03 -0500)]
docs: Update contributing guides
Add vendoring and make targets. Require Go 1.8+ and remove mention of
GOPATH (just assume $HOME/go).
Due to time contraints, the contributing tutorial was only slightly
updated to make obvious corrections.
Fixes #3153
Anthony Fok [Tue, 14 Mar 2017 13:34:42 +0000 (07:34 -0600)]
docs: Optimize 11 showcase thumbnail images
Anthony Fok [Tue, 14 Mar 2017 12:08:21 +0000 (06:08 -0600)]
docs: Add Linux distro-specific installation instructions
Backported from https://hugodocs.info/getting-started/installing/
with added mention for Fedora and Red Hat.
Anthony Fok [Tue, 14 Mar 2017 00:11:57 +0000 (18:11 -0600)]
docs: Note Hugo as Snap package can write only inside $HOME
Backported from https://hugodocs.info/getting-started/installing/
Fixes #3143
Anthony Fok [Mon, 13 Mar 2017 19:29:23 +0000 (13:29 -0600)]
docs: Replace Mac OS X with macOS in three places
Rosen Lu [Sun, 12 Mar 2017 07:47:43 +0000 (15:47 +0800)]
docs: Add lucumt.info to showcase
crasm [Tue, 20 Dec 2016 13:54:52 +0000 (08:54 -0500)]
parser: Accept JSON frontmatter without leading "{\n"
Accept JSON frontmatter without leading "{\n" so that one line
frontmatters such as `{"param":"paramvalue"}` no longer silently render
empty html.
Anthony Kong [Mon, 13 Mar 2017 11:50:57 +0000 (22:50 +1100)]
commands: Improve jekyll import date format
Allow both yyyy-mm-dd and yyyy-m-d formats in jekyll markdown
file names.
Mark D. Blackwell [Fri, 6 Jan 2017 14:49:15 +0000 (09:49 -0500)]
docs: Improve command reference page
digitalcraftsman [Sun, 12 Mar 2017 22:04:12 +0000 (23:04 +0100)]
tpl: Add union template func
Bjørn Erik Pedersen [Sat, 11 Mar 2017 23:52:40 +0000 (00:52 +0100)]
docs: Add Android to README
Bjørn Erik Pedersen [Fri, 10 Mar 2017 19:54:50 +0000 (20:54 +0100)]
hugolib: Fix reloading corner cases for shortcodes
This commit fixes two different, but related issues:
1) Live-reload when a new shortcode was defined in the content file before the shortcode itself was created.
2) Live-reload when a newly defined shortcode changed its "inner content" status.
This commit also improves the shortcode related error messages to include the full path to the content file in question.
Fixes #3156
Bjørn Erik Pedersen [Sat, 11 Mar 2017 18:07:32 +0000 (19:07 +0100)]
commands: t.Error => t.Errorf
Cameron Moore [Mon, 26 Dec 2016 21:23:20 +0000 (15:23 -0600)]
parser: Refactor frontmatter parser and add tests
Lots of cleanups here:
- Refactor InterfaceToConfig and InterfaceToFrontMatter to use io.Writer.
- Simplify InterfaceToFrontMatter by wrapping InterfaceToConfig.
- Export FrontmatterType since we return it in DetectFrontMatter.
- Refactor removeTOMLIdentifier to avoid blindly replacing "+++".
- Update HandleJSONMetaData to return an empty map on nil input.
- Updates vendored goorgeous package and test for org-mode frontmatter.
- Add tests and godoc comments.
Coverage for parser package increased from 45.2% to 85.2%.
Cameron Moore [Fri, 10 Mar 2017 21:45:07 +0000 (15:45 -0600)]
hugolib: Clean up redundant frontmatter error logging
Fixes #3157
C. S. Samulski [Fri, 10 Mar 2017 18:56:30 +0000 (13:56 -0500)]
docs: Explain themes dir in quickstart guide
Themes is currently not included in the description that follows `tree -a` even
though it is autogenerated for you by `new site`.
Jay Dreyer [Thu, 9 Mar 2017 01:43:28 +0000 (19:43 -0600)]
docs: Add myearworms.com to the showcase
Cameron Moore [Fri, 10 Mar 2017 00:41:59 +0000 (18:41 -0600)]
hugolib: Default rssLimit to unlimited
Fixes #3145
Albert Nigmatzianov [Thu, 9 Mar 2017 13:18:12 +0000 (18:18 +0500)]
all: Fix some govet complaints
Cameron Moore [Thu, 9 Mar 2017 05:33:02 +0000 (23:33 -0600)]
Update appveyor config
Remove "image" setting as the "WMF 5" image is deprecated.
Fixes #3061, #3142
Cameron Moore [Tue, 7 Mar 2017 20:11:03 +0000 (14:11 -0600)]
tplimpl: Add built-in print funcs to FuncMap
Add print, printf, and println to the Hugo FuncMap so that they are
accessible to the apply template func.
Updates #3139
Bjørn Erik Pedersen [Wed, 8 Mar 2017 13:19:23 +0000 (14:19 +0100)]
hugolib: Don't report taxonomy count if disabled
Albert Nigmatzianov [Wed, 8 Mar 2017 08:58:58 +0000 (13:58 +0500)]
hugolib: Remove unnecessary params
Found by github.com/mvdan/unparam
Shubhojyoti Bhattacharya [Tue, 7 Mar 2017 11:08:17 +0000 (16:38 +0530)]
docs: Add enjoyable.recipes to the showcase
Anton Staaf [Sun, 5 Mar 2017 20:24:14 +0000 (12:24 -0800)]
hugolib: Populate the taxonomy term Pages list
Previously this was left empty, but it is very handy to have a list
of term pages for a given taxonomy. This list can now be paginated
like other page lists. It makes it possible to render summary
content from each terms index page for instance. It also makes it
possible to sort the term pages in the same way that other page
lists can be sorted. An RSS feed is now generated for
KindTaxonomyTerm pages as well.
This also fixes a bug in HugoSites.createMissingPages. Previously
it would only check for existing KindTaxonomyTerm pages if the
taxonomy had any terms defined. So for a taxonomy with no terms
but a taxonomy terms page it would generate a second empty terms
page.
Bjørn Erik Pedersen [Sun, 5 Mar 2017 14:40:59 +0000 (15:40 +0100)]
hugolib: Add a temporary workaround for page.copy() data race
See ##3129
Stanislav Popov [Sun, 5 Mar 2017 10:33:37 +0000 (15:33 +0500)]
docs: Correct toml syntax in Github deploy tutorial
Bjørn Erik Pedersen [Fri, 3 Mar 2017 09:47:43 +0000 (10:47 +0100)]
hugolib, target: Rework/move the target package
This relates to #3123.
The interfaces and types in `target` made sense at some point, but now this package is too restricted to a hardcoded set of media types.
The overall current logic:
* Create a file path based on some `Translator` with some hardcoded logic handling uglyURLs, hardcoded html suffix etc.
* In in some cases (alias), a template is applied to create the alias file.
* Then the content is written to destination.
One could argue that it is the last bullet that is the actual core responsibility.
This commit fixes that by moving the `hugolib`-related logic where it belong, and simplify the code, i.e. remove the abstractions.
This code will most certainly evolve once we start on #3123, but now it is at least possible to understand where to start.
Fixes #3123
Bjørn Erik Pedersen [Sat, 4 Mar 2017 19:24:26 +0000 (20:24 +0100)]
vendor: Update cast
Anton Staaf [Sat, 4 Mar 2017 00:00:11 +0000 (16:00 -0800)]
hugolib: Fix HugoSites.createMissingPages
Previously it would only check for existing KindTaxonomyTerm pages
if the taxonomy had any terms defined. So for a taxonomy with no terms
but a taxonomy terms page it would generate a second empty terms page.
Josh Habdas [Fri, 3 Mar 2017 08:24:59 +0000 (16:24 +0800)]
docs: Add blog post from After Dark creator
Bjørn Erik Pedersen [Thu, 2 Mar 2017 12:52:08 +0000 (13:52 +0100)]
hugolib: Add section template baseof test case
Closes #2995
See #3116
Bjørn Erik Pedersen [Thu, 2 Mar 2017 09:07:42 +0000 (10:07 +0100)]
docs: Add new section list lookup alternative
Updates #3116
Bjørn Erik Pedersen [Thu, 2 Mar 2017 09:04:20 +0000 (10:04 +0100)]
hugolib: Add /layouts/SECTION/list.html to template lookup
Fixes #3116
Bjørn Erik Pedersen [Wed, 1 Mar 2017 23:21:02 +0000 (00:21 +0100)]
helpers: Return partially cleaned URL in case of error in URLPrep anyway
Closes #2987
Cameron Moore [Fri, 24 Feb 2017 04:35:20 +0000 (22:35 -0600)]
tplimpl: return an error on unsupported type in isSet
Fixes #3092
Bjørn Erik Pedersen [Wed, 1 Mar 2017 22:49:24 +0000 (23:49 +0100)]
helpers: Remove unused arg
Bjørn Erik Pedersen [Wed, 1 Mar 2017 17:44:30 +0000 (18:44 +0100)]
hugolib: Fix broken test
See #2977
Bjørn Erik Pedersen [Wed, 1 Mar 2017 17:37:44 +0000 (18:37 +0100)]
docs: Add some more quotes
Bjørn Erik Pedersen [Wed, 1 Mar 2017 16:07:38 +0000 (17:07 +0100)]
hugolib: Make sure that empty terms lists are still created
Fixes #2977
Bjørn Erik Pedersen [Wed, 1 Mar 2017 14:03:28 +0000 (15:03 +0100)]
Handle Hugo version strings with patch level
Fixes #3025
Bjørn Erik Pedersen [Wed, 1 Mar 2017 13:34:40 +0000 (14:34 +0100)]
helpers: Fix version string for Hugo 0.20 and similar
Fixes #3112
Bjørn Erik Pedersen [Wed, 1 Mar 2017 11:30:41 +0000 (12:30 +0100)]
hugolib: Only return RSSLink when RSS is available
Fixes #1302
Bjørn Erik Pedersen [Tue, 28 Feb 2017 20:25:08 +0000 (21:25 +0100)]
vendor: Update Cobra
Fixes #2349
Keane Nguyen [Tue, 28 Feb 2017 20:12:34 +0000 (14:12 -0600)]
docs: Correct date in automated deployment tutorial
Last modified date couldn't be parsed by Hugo.
vsopvsop [Tue, 28 Feb 2017 20:06:48 +0000 (01:36 +0530)]
docs: Correct link of 'now' tpl func in release notes
When mentioning the commit for 'now' template function the previous line's github link is repeated unfortunately.
Bjørn Erik Pedersen [Tue, 28 Feb 2017 09:07:10 +0000 (10:07 +0100)]
vendor: Bump versions
Bjørn Erik Pedersen [Tue, 28 Feb 2017 08:06:33 +0000 (09:06 +0100)]
hugolib: Only consider regular pages in Prev/Next
Fixes #3108
Keane Nguyen [Sun, 26 Feb 2017 04:00:39 +0000 (22:00 -0600)]
docs: Revise automated deployment tutorial
Update tutorial to reflect changes to Wercker website.
Bjørn Erik Pedersen [Mon, 27 Feb 2017 12:58:50 +0000 (13:58 +0100)]
Bump version to 0.20-DEV
Bjørn Erik Pedersen [Mon, 27 Feb 2017 10:21:29 +0000 (11:21 +0100)]
docs: Some minor release notes fixes
Bjørn Erik Pedersen [Mon, 27 Feb 2017 10:16:19 +0000 (11:16 +0100)]
docs: Fix shortcode param in release notes
Bjørn Erik Pedersen [Mon, 27 Feb 2017 09:49:35 +0000 (10:49 +0100)]
Update versions to 0.19 release
Bjørn Erik Pedersen [Mon, 27 Feb 2017 09:35:31 +0000 (10:35 +0100)]
docs: Add release notes for Hugo 0.19
Bjørn Erik Pedersen [Sun, 26 Feb 2017 20:51:53 +0000 (21:51 +0100)]
docs: Add documentation for disableKinds
Fixes #3054
Cameron Moore [Sat, 25 Feb 2017 23:12:08 +0000 (17:12 -0600)]
docs: Update RSS docs with rssLimit changes
Side effect: remove unnecessary XML templates from example blog site.
Fixes #3065
Bjørn Erik Pedersen [Sat, 25 Feb 2017 17:14:48 +0000 (18:14 +0100)]
Revert "hugolib: Add terms' pages to .Data.Pages"
This reverts commit
e117b1b2c7d18f25e1b7094fd7edb5e12721b79d.
Will have to think a little about this.
Bjørn Erik Pedersen [Sat, 25 Feb 2017 17:10:51 +0000 (18:10 +0100)]
Revert "hugolib: Render paginator pages for taxonomy terms"
This reverts commit
4d679627ecf7801ee80cbd37909155728249829e.
Will have to think a little more about this.
Bjørn Erik Pedersen [Sat, 25 Feb 2017 09:02:56 +0000 (10:02 +0100)]
docs: Regenerate commands doc
digitalcraftsman [Fri, 24 Feb 2017 20:36:11 +0000 (21:36 +0100)]
tpl: Add title meta tag to twitter card template
Fixes #3095
digitalcraftsman [Fri, 24 Feb 2017 21:21:58 +0000 (22:21 +0100)]
docs: Remove waffle.io graph from CONTRIBUTING.md
Fixes #2892
Josh Archer [Wed, 22 Feb 2017 14:24:59 +0000 (14:24 +0000)]
docs: Adds 'Using _index.md' page
There has been confusion regarding the use of _index.md pages following
the shift to 'Everything is a Page' in Hugo v0.18:
https://discuss.gohugo.io/t/hugo-0-18-ignores-index-md-in-the-section/4896
This has lead to attempts at clarification:
https://discuss.gohugo.io/t/-index-md-pages-in-section-taxonomies-etc-are-not-rendered-using-single-html-template/5466
There is also an open issue regarding improving the docs on this topic:
https://github.com/spf13/hugo/issues/2827
This commit adds a dedicated page explaining how _index.md files fit
into Hugo's template hierarchy, what they can contain and how to render
content from them onto the respective list/terms/home page.
What this commit doesn't do is address confusion over former behaviour
of the 'index.md' files (note the lack of _). Instead it focuses on
clarifying the new behaviour in the hope of rendering the old moot.
Fixes #2827
Kiley Dorton [Fri, 24 Feb 2017 18:27:32 +0000 (13:27 -0500)]
docs: Fix ambiguous typo in quickstart
digitalcraftsman [Thu, 23 Feb 2017 21:05:38 +0000 (22:05 +0100)]
docs: Mention Hugo's official twitter account
jacob-long [Wed, 22 Feb 2017 06:05:07 +0000 (01:05 -0500)]
docs: Add article to press.md + cleanup
Added article from gettingthingstech.com.
I also cleaned up some poorly-aligned entries near the top of markdown table
(though it doesn't affect the HTML output either way).
Bjørn Erik Pedersen [Thu, 23 Feb 2017 09:03:48 +0000 (10:03 +0100)]
hugolib: Fix preserveTaxonomyNames regression
Fixes #3070
Hauke Löffler [Wed, 22 Feb 2017 23:17:14 +0000 (00:17 +0100)]
Update Docker file to Go 1.8
* new go-version, switch to alpine (reduce size by 500mb)
* use govendor
Bjørn Erik Pedersen [Wed, 22 Feb 2017 20:31:52 +0000 (21:31 +0100)]
hugolib: Render paginator pages for taxonomy terms
See #2826
Bjørn Erik Pedersen [Wed, 22 Feb 2017 20:13:21 +0000 (21:13 +0100)]
hugolib: Add terms' pages to .Data.Pages
Fixes #2826
Bjørn Erik Pedersen [Wed, 22 Feb 2017 08:38:55 +0000 (09:38 +0100)]
hugolib: Temporarily disable leaktest
See #3082
Bjørn Erik Pedersen [Tue, 21 Feb 2017 23:14:27 +0000 (00:14 +0100)]
hugolib: Fix broken shortcode tests
Bjørn Erik Pedersen [Tue, 21 Feb 2017 21:53:37 +0000 (22:53 +0100)]
hugolib: Include full filepath on shortcode errors
Fixes #3079
Félix Blanco [Tue, 21 Feb 2017 11:42:13 +0000 (12:42 +0100)]
docs: Add promotive.es to the showcase
Bjørn Erik Pedersen [Tue, 21 Feb 2017 17:56:56 +0000 (18:56 +0100)]
hugolib: Cleanup the Goroutine count calculation
Bjørn Erik Pedersen [Tue, 21 Feb 2017 15:24:47 +0000 (16:24 +0100)]
vendor: Update cast
Fixes #3059
bogem [Mon, 20 Feb 2017 08:53:11 +0000 (13:53 +0500)]
commands: Cache logFile in createLogger
bogem [Mon, 20 Feb 2017 08:52:06 +0000 (13:52 +0500)]
hugolib: Add relativeURLs and canonifyURLs to Site
bogem [Mon, 20 Feb 2017 08:50:34 +0000 (13:50 +0500)]
commands: Remove flagChanged from commandeer
Alan Orth [Tue, 21 Feb 2017 13:18:59 +0000 (15:18 +0200)]
tpl: Use og:updated_time OpenGraph tag on nodes
A previous commit greatly improved the OpenGraph tags generated by
Hugo's internal opengraph template, but there was a minor error in
the fix. Nodes are of type "website" and according to the Facebook
docs they should use og:updated_time.
See: https://github.com/spf13/hugo/pull/2979
See: https://developers.facebook.com/docs/reference/opengraph/object-type/website/
John Feminella [Sun, 12 Feb 2017 20:30:39 +0000 (15:30 -0500)]
Use Page.Params more consistently when adding metadata
Bjørn Erik Pedersen [Tue, 21 Feb 2017 12:55:08 +0000 (13:55 +0100)]
tpl, hugolib: Fix live-reload of non-renderable content pages
Fixes #3062
Alan Orth [Tue, 21 Feb 2017 06:50:35 +0000 (08:50 +0200)]
tpl: Remove twitter:domain tag from internal shortcode
It seems this metadata tag is no longer used by Twitter, as it has
been removed from their Cards Markup Tag Reference since at least
2013 according to a post on the W3 mailing list.
See: https://dev.twitter.com/cards/markup
See: https://lists.w3.org/Archives/Public/www-validator/2013Oct/0025.html
Li-aung Yip [Tue, 21 Feb 2017 09:38:12 +0000 (17:38 +0800)]
docs: Improve documentation for menu rendering
Fixes #1393
Bjørn Erik Pedersen [Tue, 21 Feb 2017 08:46:56 +0000 (09:46 +0100)]
commands: Make sure build error is logged in watch mode
See #3062
Bjørn Erik Pedersen [Tue, 21 Feb 2017 08:41:56 +0000 (09:41 +0100)]
utils: Use local logger
Bjørn Erik Pedersen [Tue, 21 Feb 2017 07:49:04 +0000 (08:49 +0100)]
hugolib: Add check for p.Markup == "org"
To be improved.
Chase Adams [Tue, 21 Feb 2017 07:46:03 +0000 (23:46 -0800)]
all: Add org-mode support
Fixes #1483
See #936
Bjørn Erik Pedersen [Mon, 20 Feb 2017 08:33:35 +0000 (09:33 +0100)]
hugolib: Finish menu vs section content pages
This commit also fixes the default menu sort when the weight is 0.
Closes #2974
Abdo Roig-Maranges [Sun, 22 Jan 2017 11:28:31 +0000 (12:28 +0100)]
hugolib: Improve menu generation for section pages with content
When using the lazy blogger setting to automatically generate menu
entries from section pages, we now recognize section pages that have
content, and use the weight and linktitle configured in the frontmatter.
This way, we can use the lazy blogger automatic generation, and
influence menu order and translations, directly from the frontmatter.
Updates #2974
Bjørn Erik Pedersen [Mon, 20 Feb 2017 07:51:18 +0000 (08:51 +0100)]
hugolib: Cache the value of Page's RelPermalink
bogem [Sun, 19 Feb 2017 22:53:48 +0000 (03:53 +0500)]
Get rid of some viper.Get* calls
Enforce usage of PathSpec
Fixes #3060
Updates #2728