brevno-suite/hugo
10 years agoMinor polish in path/url
bep [Tue, 20 Jan 2015 19:45:03 +0000 (20:45 +0100)]
Minor polish in path/url

10 years agoAdd more tests to general helper
bep [Tue, 20 Jan 2015 16:44:35 +0000 (17:44 +0100)]
Add more tests to general helper

10 years agoAdd tests for IsSet
bep [Tue, 20 Jan 2015 16:15:12 +0000 (17:15 +0100)]
Add tests for IsSet

10 years agoAdd test binaries to .gitignore
bep [Tue, 20 Jan 2015 15:47:15 +0000 (16:47 +0100)]
Add test binaries to .gitignore

10 years agoRefactor TestGt to also include Lt, Ge, Le, Eq and Ne
bep [Tue, 20 Jan 2015 15:38:08 +0000 (16:38 +0100)]
Refactor TestGt to also include Lt, Ge, Le, Eq and Ne

10 years ago[Docs] Add a note about the plan to switch to Apache License
Anthony Fok [Fri, 26 Dec 2014 15:28:30 +0000 (08:28 -0700)]
[Docs] Add a note about the plan to switch to Apache License

10 years agoAdd tests for Apply
bep [Tue, 20 Jan 2015 13:24:43 +0000 (14:24 +0100)]
Add tests for Apply

10 years agoAdd inline doc for Apply
bep [Tue, 20 Jan 2015 12:31:02 +0000 (13:31 +0100)]
Add inline doc for Apply

10 years agoRename ignoreDotFile to isDotFile (which is what it is)
bep [Tue, 20 Jan 2015 12:21:50 +0000 (13:21 +0100)]
Rename ignoreDotFile to isDotFile (which is what it is)

10 years agoReplace regexp based Chomp with builtin TrimRight
bep [Tue, 20 Jan 2015 11:41:08 +0000 (12:41 +0100)]
Replace regexp based Chomp with builtin TrimRight

10 years agoAdd tests for Replace
bep [Tue, 20 Jan 2015 11:30:49 +0000 (12:30 +0100)]
Add tests for Replace

10 years agoAdd tests for Trim
bep [Tue, 20 Jan 2015 11:23:27 +0000 (12:23 +0100)]
Add tests for Trim

10 years agoAdd test coverage files to .gitignore
bep [Tue, 20 Jan 2015 11:09:22 +0000 (12:09 +0100)]
Add test coverage files to .gitignore

10 years agoAdd tests for Chomp
bep [Tue, 20 Jan 2015 11:07:49 +0000 (12:07 +0100)]
Add tests for Chomp

10 years agoQuick-and-dirty way to print details of template errors
Anthony Fok [Tue, 20 Jan 2015 09:23:28 +0000 (02:23 -0700)]
Quick-and-dirty way to print details of template errors

See Issue #316.

10 years ago[Docs] Incorporate some great ideas by @mohae into the `safeUrl` docs
Anthony Fok [Tue, 20 Jan 2015 07:24:47 +0000 (00:24 -0700)]
[Docs] Incorporate some great ideas by @mohae into the `safeUrl` docs

E.g. how `#ZgotomlZ` is used to "defang" the URL

10 years agoAdd `safeUrl`; disable `safeHtmlAttr`; rename `safeCSS` to `safeCss`
Anthony Fok [Tue, 20 Jan 2015 06:41:22 +0000 (23:41 -0700)]
Add `safeUrl`; disable `safeHtmlAttr`; rename `safeCSS` to `safeCss`

- Add `safeUrl` template function (Fixes #347)
- Add TestSafeUrl() fashioned after @tatsushid great examples
- Disable `safeHtmlAttr` pending further discussions on its other
  use cases because `safeUrl` is a cleaner solution to #347.
  (There are also `safeJs` and `safeJsStr` that we could implement
  if there are legitimate demands for them.)
- Rename `safeCSS` to `safeCss` (to follow the convention of `safeHtml`)
- Add/expand documentation on `safeHtml`, `safeCss` and `safeUrl`

10 years agoAdd SafeHtmlAttr, SafeCSS template function
Tatsushi Demachi [Mon, 19 Jan 2015 23:55:16 +0000 (08:55 +0900)]
Add SafeHtmlAttr, SafeCSS template function

This allows a template user to keep a safe HTML attribute or CSS string
as is in a template.

This is implementation of @anthonyfok great insight

Fix #784, #347

10 years agoRevert "[Docs] Use <dl> for definition lists of variables"
Anthony Fok [Mon, 19 Jan 2015 18:44:14 +0000 (11:44 -0700)]
Revert "[Docs] Use <dl> for definition lists of variables"

This reverts commit 5d6dfe81b8c78d86fad677b4ba452b7bcf52aed9.

The extra styling in docs/static/css/style.css has been retained.

10 years ago[Docs] New testimonials and press coverage
Anthony Fok [Mon, 19 Jan 2015 11:16:54 +0000 (04:16 -0700)]
[Docs] New testimonials and press coverage

Found on @spf13's Twitter.  :-)

Prevent the testimonial dates from wrapping.

Also fix a few minor problems to get the home page
to validate as proper HTML5.

10 years ago[Docs] Limit `.fa { display: inline }` within #main-content
Anthony Fok [Mon, 19 Jan 2015 09:46:21 +0000 (02:46 -0700)]
[Docs] Limit `.fa { display: inline }` within #main-content

Otherwise the items in the side menu won't line up.
Sorry about this oversight in my recent commit.

10 years ago[Docs] Add FreeBSD logo beside the FreeBSD name
Anthony Fok [Mon, 19 Jan 2015 08:49:12 +0000 (01:49 -0700)]
[Docs] Add FreeBSD logo beside the FreeBSD name

Extracted from https://www.freebsd.org/logo/logo-simple.svg
for temporary use until a future Font Awesome release adds
the `fa-freebsd` glyph (github/FortAwesome/Font-Awesome#1116)  :-)

Make .fa `display: inline` to prevent unwanted line-wrapping

Also make the menu item "Issue & Help" line up with the others.

10 years agoMerge branch 'master' of github.com:spf13/hugo
bep [Mon, 19 Jan 2015 09:05:22 +0000 (10:05 +0100)]
Merge branch 'master' of github.com:spf13/hugo

10 years agoMake RSS dates valid
bep [Mon, 19 Jan 2015 09:04:57 +0000 (10:04 +0100)]
Make RSS dates valid

See #789

10 years ago[Docs] Use <dl> for definition lists of variables
Anthony Fok [Mon, 19 Jan 2015 08:30:38 +0000 (01:30 -0700)]
[Docs] Use <dl> for definition lists of variables

Hopefully making them more semantic and easier to read,
though it is raw HTML so it is slightly more work to maintain.

Also made minor revisions to some of the variable descriptions
to be more informative, e.g. `:monthname` in permalinks use
full English names ("January" etc.)

10 years agoFix the Hugo.Generator tag so it can be used
bep [Mon, 19 Jan 2015 07:26:06 +0000 (08:26 +0100)]
Fix the Hugo.Generator tag so it can be used

10 years agoFix broken doc section
bep [Mon, 19 Jan 2015 07:14:57 +0000 (08:14 +0100)]
Fix broken doc section

10 years agoUse an init() method to create the HugoInfo instance
bep [Mon, 19 Jan 2015 02:06:07 +0000 (03:06 +0100)]
Use an init() method to create the HugoInfo instance

See #570

10 years agoUpdate release notes with the new Hugo var
bep [Mon, 19 Jan 2015 01:58:27 +0000 (02:58 +0100)]
Update release notes with the new Hugo var

10 years agoMake sure there are only one HugoInfo instance
bep [Mon, 19 Jan 2015 01:53:07 +0000 (02:53 +0100)]
Make sure there are only one HugoInfo instance

See #570

10 years agoMerge branch 'master' of github.com:spf13/hugo
bep [Mon, 19 Jan 2015 01:41:16 +0000 (02:41 +0100)]
Merge branch 'master' of github.com:spf13/hugo

10 years agoFix HugoInfo init
bep [Mon, 19 Jan 2015 01:40:34 +0000 (02:40 +0100)]
Fix HugoInfo init

See #570

10 years agoAdded top level .Hugo variable with version, commit and generator information + docs
Derek Perkins [Tue, 9 Dec 2014 15:36:07 +0000 (08:36 -0700)]
Added top level .Hugo variable with version, commit and generator information + docs
Added Version, CommitHash and BuildDate to hugolib/hugo.go and used it in build
Removed commitHash and buildDate from commands/version.go and used hugolib vars
Removed getDateFormat function from commands/version.go

Conflicts:
README.md
docs/content/templates/variables.md

10 years ago[Docs] Minor revisions to future v0.13 Release Note
Anthony Fok [Sun, 18 Jan 2015 20:25:20 +0000 (13:25 -0700)]
[Docs] Minor revisions to future v0.13 Release Note

And a tiny bit of copyediting here and there.

10 years ago[Docs] New "Troubleshooting Overview" page
Anthony Fok [Sun, 18 Jan 2015 09:43:09 +0000 (02:43 -0700)]
[Docs] New "Troubleshooting Overview" page

Somewhat cheesy at the moment.
Pull requests to improve the page are very welcome!

10 years agoAdd trim and replace to release notes
bep [Sun, 18 Jan 2015 14:18:03 +0000 (15:18 +0100)]
Add trim and replace to release notes

10 years agoMake all the params to Replace an interface{}
bep [Sun, 18 Jan 2015 14:16:48 +0000 (15:16 +0100)]
Make all the params to Replace an interface{}

10 years agoRewrite first argument to interface{}
Tom Helmer Hansen [Sat, 17 Jan 2015 14:46:27 +0000 (15:46 +0100)]
Rewrite first argument to interface{}

10 years agoAdd trim and replace template functions
Tom Helmer Hansen [Fri, 16 Jan 2015 20:18:19 +0000 (21:18 +0100)]
Add trim and replace template functions

10 years agoChange CR+LF to LF on gohugo.io front page, saving 286 bytes
Anthony Fok [Sat, 17 Jan 2015 20:24:35 +0000 (13:24 -0700)]
Change CR+LF to LF on gohugo.io front page, saving 286 bytes

Also change mode 100755 to 100644.

10 years agoUpdate gohugo.io front page for 2015; add @popthestack's testimony :-)
Anthony Fok [Sat, 17 Jan 2015 20:07:54 +0000 (13:07 -0700)]
Update gohugo.io front page for 2015; add @popthestack's testimony :-)

10 years ago[Docs] More copyediting
Anthony Fok [Sat, 17 Jan 2015 07:45:53 +0000 (00:45 -0700)]
[Docs] More copyediting

* Add link to https://travis-ci.org/spf13/hugo
* Correct heading levels in docs/content/community/mailing-list.md
* Mention RFC 3339 as the `date` format set by `hugo new`
* Mention that `hugo new` does not add `draft = true` when the user
  provides an archetype
* List short examples of TOML and YAML side by side
* Compact the Math template functions into a table
* Put some notes into a blockquote

10 years ago[Docs] Adjust sidebar menu width and capitalization
Anthony Fok [Sat, 17 Jan 2015 07:11:17 +0000 (00:11 -0700)]
[Docs] Adjust sidebar menu width and capitalization

Make the sidebar menu slightly wider so the arrow
does not get pushed to the next line.

Also remove `text-transform: capitalize;` so we can have,
e.g., "Table of Contents" rather than "Table Of Contents".

10 years agoMissing . on footer partials
Tomas Roos [Fri, 16 Jan 2015 09:33:20 +0000 (10:33 +0100)]
Missing . on footer partials

10 years agoUpdate TestFixUrl() to expect BaseUrl to have trailing `/`
Anthony Fok [Fri, 16 Jan 2015 10:13:03 +0000 (03:13 -0700)]
Update TestFixUrl() to expect BaseUrl to have trailing `/`

See #793, #799

10 years agoMerge pull request #798 from bjornerik/fix/nestedshortcodes
Bjørn Erik Pedersen [Fri, 16 Jan 2015 10:06:17 +0000 (11:06 +0100)]
Merge pull request #798 from bjornerik/fix/nestedshortcodes

Fix issue with nested shortcodes

10 years agoEnsure that BaseUrl used in `hugo server` ends with `/`
Anthony Fok [Fri, 16 Jan 2015 01:02:19 +0000 (18:02 -0700)]
Ensure that BaseUrl used in `hugo server` ends with `/`

Fixes #793, #799

10 years agoFix issue with nested shortcodes
bep [Thu, 15 Jan 2015 11:21:15 +0000 (12:21 +0100)]
Fix issue with nested shortcodes

Fixes #797

10 years agoReplace `if` with `with` in embedded rss.xml
Anthony Fok [Thu, 15 Jan 2015 04:05:13 +0000 (21:05 -0700)]
Replace `if` with `with` in embedded rss.xml

... resulting in a slightly more compact template.

10 years agoAdd ".swx" suffix to file watcher's ignore list
Anthony Fok [Wed, 14 Jan 2015 11:46:31 +0000 (04:46 -0700)]
Add ".swx" suffix to file watcher's ignore list

When a user uses Vim to open a file, it briefly creates a
".filename.md.swx" file which needlessly triggers a website rebuild.

According to a comment in Vim's src/memline.c:

    /*
     * on MS-DOS compatible filesystems (e.g. messydos) file.doc.swp
     * and file.doc are the same file. To guess if this problem is
     * present try if file.doc.swx exists. If it does, we set
     * buf->b_shortname and try file_doc.swp (dots replaced by
     * underscores for this file), and try again. If it doesn't we
     * assume that "file.doc.swp" already exists.
     */

10 years agoDisable shortcode processing for html files
bep [Wed, 14 Jan 2015 19:49:43 +0000 (20:49 +0100)]
Disable shortcode processing for html files

May be enabled later, but then it will have to do the complete "shortcode dance".

See ##674

10 years agoFirst take on release notes for 0.13
bep [Wed, 14 Jan 2015 12:54:38 +0000 (13:54 +0100)]
First take on release notes for 0.13

10 years agoAdd an alias to the old URL of github-pages-blog.md
Anthony Fok [Wed, 14 Jan 2015 04:24:58 +0000 (21:24 -0700)]
Add an alias to the old URL of github-pages-blog.md

10 years agoRename github_pages_blog.md to github-pages-blog.md
Anthony Fok [Wed, 14 Jan 2015 04:19:20 +0000 (21:19 -0700)]
Rename github_pages_blog.md to github-pages-blog.md

10 years ago[Docs] More random revision and copyediting
Anthony Fok [Wed, 14 Jan 2015 03:48:44 +0000 (20:48 -0700)]
[Docs] More random revision and copyediting

General revisions to (hopefully) make the documentation
easier to understand and more comprehensive.

Revise "Strange EOF error" troubleshooting page to say that
a fix is in place for the upcoming Hugo v0.13.

Also add more external links, and cute icons from Font Awesome.

10 years agoFixed error in tutorial, added site variable docs
Dan Hersam [Mon, 12 Jan 2015 04:05:32 +0000 (23:05 -0500)]
Fixed error in tutorial, added site variable docs

While following the github pages tutorial I found some issues. These are
the commands I ran that worked.

Added site variables to the docs from the code.

10 years agoTutorial: Automated deployments
Arjen Schwarz [Mon, 12 Jan 2015 11:08:20 +0000 (22:08 +1100)]
Tutorial: Automated deployments

Also fixed the next/prev for the tutorials

10 years agoTrivial fixes to get RSS 2.0 feeds to validate.
Anthony Fok [Tue, 13 Jan 2015 05:24:37 +0000 (22:24 -0700)]
Trivial fixes to get RSS 2.0 feeds to validate.

RSS 2.0 requires the email be listed in `<author>`,
and `UTC` as a timezone is not accepted, but `UT` or `GMT` are.

See #789 for more information.  Thanks to @snej for the report!

10 years ago[Docs] Remove references to "ATOM" feeds
Anthony Fok [Mon, 12 Jan 2015 21:12:08 +0000 (14:12 -0700)]
[Docs] Remove references to "ATOM" feeds

Thanks to @snej for reporting!

Fixes #790

10 years agoCorrect typo in hugolib/path_separators_windows_test.go
Anthony Fok [Mon, 12 Jan 2015 20:15:04 +0000 (13:15 -0700)]
Correct typo in hugolib/path_separators_windows_test.go

10 years agoCorrect spelling of two test files: seperators → separators
Anthony Fok [Sun, 11 Jan 2015 09:21:51 +0000 (02:21 -0700)]
Correct spelling of two test files: seperators → separators

10 years agoFix "hugo new" EOF error with an archetype file without the final EOL
Tatsushi Demachi [Sat, 10 Jan 2015 07:15:51 +0000 (16:15 +0900)]
Fix "hugo new" EOF error with an archetype file without the final EOL

This rewrites `extractFrontMatterDelims` function to make it work with
an archetype file without the final EOL and adds more detailed error
messages and comments.

It also removes `matches` and `matches_quick` functions which aren't
called anywhere.

10 years agonote in archetype.md to alert that ending carriage return may be nessary to avoid...
David Kebler [Fri, 9 Jan 2015 19:26:52 +0000 (11:26 -0800)]
note in archetype.md to alert that ending carriage return may be nessary to avoid EOF errors.

10 years agoSome more random copyediting of Hugo docs
Anthony Fok [Fri, 9 Jan 2015 18:51:15 +0000 (11:51 -0700)]
Some more random copyediting of Hugo docs

 - Change "livereload" and "live reload" to "LiveReload";
 - Add a `$ ` prompt before example command lines
   (not exhaustive, work in progress);
 - Remove unnecessary whitespace from partials;
 - Revise the blackfriday options table in overview/configuration.md
   to make it narrower.
 - Manually set the language for highlight.js where appropriate
 - Rename "404" to "Custom 404 page", and remove incorrect reference
   to "homepage"
 - Credit the author of tutorials/github_pages_blog.md
   (Similar notes are necessary for other contributed pages where
    "I" am not spf13 to avoid reader confusion.)
 - Add CSS for `kbd` and `table` etc. to css/style.css;
 - etc.

10 years agoMoved a test regarding a content.go function to a new test file content_test.go.
Marek Stanley [Wed, 7 Jan 2015 20:40:35 +0000 (21:40 +0100)]
Moved a test regarding a content.go function to a new test file content_test.go.
Added some tests for general helpers, especially as a way to document the expected behavior,
and as a warm-up welcome contribution.

10 years agoDo not exit server watch on error
bep [Fri, 9 Jan 2015 09:37:21 +0000 (10:37 +0100)]
Do not exit server watch on error

Before this commit any error (typically a YAML typing error in front matter) would exit server on rebuild when running `hugo server -w`.

This is very annoying as it doesn't give you any chance to fix the typo other than doing a manual restart.

This commit fixes that by just logging these errors when these rebuilds happen when changes are detected.

Fixes #781

10 years ago[Docs] New Troubleshooting section
Anthony Fok [Fri, 9 Jan 2015 01:21:04 +0000 (18:21 -0700)]
[Docs] New Troubleshooting section

With two entries of frequently encountered or obscured troubles so far:

- "Categories with accented characters" Unicode NFC/NFD mismatch
   on Mac OS X (See #739)
- `hugo new` aborts with cryptic EOF error (See #776)

10 years agoGoogle Custom Search: Open link in _parent
bep [Thu, 8 Jan 2015 12:42:16 +0000 (13:42 +0100)]
Google Custom Search: Open link in _parent

10 years agoAdd basic Google Custom Search to Hugo docs
Anthony Fok [Thu, 8 Jan 2015 07:11:43 +0000 (00:11 -0700)]
Add basic Google Custom Search to Hugo docs

Fixes #753

10 years agoFix `echoParam` template function to accept string key name
Tatsushi Demachi [Wed, 7 Jan 2015 12:26:46 +0000 (21:26 +0900)]
Fix `echoParam` template function to accept string key name

This changes `echoParam` template function behavior to accept not only
an array or a slice and its index pair but also a map and its key pair.

This also changes the function that float and uint values are treated as
a valid result type of it.

Fix #771

10 years agoRename to plainIdAnchors
Jacob Gillespie [Mon, 5 Jan 2015 19:00:56 +0000 (13:00 -0600)]
Rename to plainIdAnchors

10 years agoAdd Blackfriday: documentIDAnchor documentation
Jacob Gillespie [Mon, 5 Jan 2015 18:18:51 +0000 (12:18 -0600)]
Add Blackfriday: documentIDAnchor documentation

10 years agoGroup both options under Blackfriday: documentIDAnchor
Jacob Gillespie [Mon, 5 Jan 2015 18:18:34 +0000 (12:18 -0600)]
Group both options under Blackfriday: documentIDAnchor

10 years agoAdd config options: disable footnote anchor prefix and header ID suffix
Jacob Gillespie [Sun, 4 Jan 2015 17:27:09 +0000 (11:27 -0600)]
Add config options: disable footnote anchor prefix and header ID suffix
New config options:

* DisableFootnoteAnchorPrefix - bool - default: false
* DisableHeaderIDSuffix - bool - default: false

10 years agoAdd config file example to variables.md
philgs [Mon, 5 Jan 2015 10:49:10 +0000 (05:49 -0500)]
Add config file example to variables.md

Add a config file example for setting .Site.Params to variables.md. This addresses my confusion in [issue #766](https://github.com/spf13/hugo/issues/766).

10 years agoUpdate configuration.md
philgs [Mon, 5 Jan 2015 10:37:47 +0000 (05:37 -0500)]
Update configuration.md

Update configuration.md to show setting variables for .Site.Params in TOML config file

10 years agoAdd example code to Summaries
philgs [Mon, 5 Jan 2015 11:15:49 +0000 (06:15 -0500)]
Add example code to Summaries

I was initially confused about how to use summaries. The only example code I found in the docs was on the page for list nodes, but that uses `Render "summary"`, which is for views, not an article summary. I thought a little example here might clarify the issue for future users.

10 years agouse fsnotify 0.9.3
Nathan Youngman [Thu, 1 Jan 2015 15:48:45 +0000 (08:48 -0700)]
use fsnotify 0.9.3

This contains a few fixes (v0.9.1 through v0.9.3) but the same API and few internal changes.

https://github.com/go-fsnotify/fsnotify/blob/master/CHANGELOG.md#v093--2014-12-31

A good first step before switching to v1.

10 years agoAdd in-section Next/Prev content pointers
Dave Johnston [Fri, 18 Apr 2014 07:23:13 +0000 (07:23 +0000)]
Add in-section Next/Prev content pointers

Conflicts:
docs/content/meta/release-notes.md
docs/content/templates/variables.md

10 years agoAdd ERROR logging on invalid date and publishdate
bep [Mon, 5 Jan 2015 11:44:41 +0000 (12:44 +0100)]
Add ERROR logging on invalid date and publishdate

Having correct dates is important in Hugo. Previously date parsing errors were swallowed, leading to confusing results.

This commit adds ERROR logging when date or publishdate in front matter cannot be parsed into a time.Time.

10 years agoAdd operator argument to `where` template function
Tatsushi Demachi [Sun, 4 Jan 2015 05:24:58 +0000 (14:24 +0900)]
Add operator argument to `where` template function

It allows to use `where` template function like SQL `where` clause.
For example,

    {{ range where .Data.Pages "Type" "!=" "post" }}
        {{ .Content }}
    {{ end }}

Now these operators are implemented:

    =, ==, eq, !=, <>, ne, >=, ge, >, gt, <=, le, <, lt, in, not in

It also fixes `TestWhere` more readable

10 years agoImplement `apply`.
Austin Ziegler [Wed, 10 Dec 2014 03:46:33 +0000 (22:46 -0500)]
Implement `apply`.

- apply seq fn args…

10 years agoAdd a chomp function.
Austin Ziegler [Wed, 10 Dec 2014 01:37:51 +0000 (20:37 -0500)]
Add a chomp function.

- Mostly useful in pipelines.

10 years agoInitialize funcMap in an init function.
Austin Ziegler [Wed, 10 Dec 2014 01:32:58 +0000 (20:32 -0500)]
Initialize funcMap in an init function.

10 years agoHygiene: Reduce copy-pasted code.
Austin Ziegler [Wed, 10 Dec 2014 01:28:27 +0000 (20:28 -0500)]
Hygiene: Reduce copy-pasted code.

10 years agoalways use http scheme for localhost
Nathan Youngman [Thu, 1 Jan 2015 15:32:56 +0000 (08:32 -0700)]
always use http scheme for localhost

fixes #758

10 years agoMerge pull request #762 from bjornerik/fix/revert-revert-menutest
Bjørn Erik Pedersen [Thu, 1 Jan 2015 22:53:24 +0000 (23:53 +0100)]
Merge pull request #762 from bjornerik/fix/revert-revert-menutest

Revert "Temporarily disable failing menu test"

10 years agoRevert "Temporarily disable failing menu test"
bep [Thu, 1 Jan 2015 22:40:14 +0000 (23:40 +0100)]
Revert "Temporarily disable failing menu test"

This reverts commit e4a22255ccb818f8b55a20f56ddcfda869db250f.

10 years agoBumping Travis to test go 1.3 & 1.4
spf13 [Tue, 30 Dec 2014 19:58:48 +0000 (14:58 -0500)]
Bumping Travis to test go 1.3 & 1.4

10 years agoFix EOF
Tom Helmer Hansen [Sat, 27 Dec 2014 19:50:25 +0000 (20:50 +0100)]
Fix EOF

10 years agoAdd www.thehome.dk to showcase
Tom Helmer Hansen [Sat, 27 Dec 2014 19:42:03 +0000 (20:42 +0100)]
Add www.thehome.dk to showcase

10 years agoRefactor tpl codes
Tatsushi Demachi [Mon, 29 Dec 2014 05:41:59 +0000 (14:41 +0900)]
Refactor tpl codes

- Use indirect function instead of the same code copies
- Fix missing arguments of some test codes

10 years agoMake 'where' template function accepts dot chaining key argument
Tatsushi Demachi [Mon, 29 Dec 2014 02:33:12 +0000 (11:33 +0900)]
Make 'where' template function accepts dot chaining key argument

'where' 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 dot chaining key like 'Params.foo.bar' as the
argument. It evaluates sub elements of each array elements and checks it
matches the third argument value.

Typical use case would be for filtering Pages by user defined front
matter value. For example, to filter pages which have 'Params.foo.bar'
and its value is 'baz', it is used like

    {{ range where .Data.Pages "Params.foo.bar" "baz" }}
        {{ .Content }}
    {{ end }}

It ignores all leading and trailing dots so it can also be used with
".Params.foo.bar"

10 years ago[Docs] Mention support for the Ace HTML Template Engine
Anthony Fok [Sat, 27 Dec 2014 07:58:50 +0000 (00:58 -0700)]
[Docs] Mention support for the Ace HTML Template Engine

10 years agoDocs copyediting: Add more external URLs; add backticks, etc.
Anthony Fok [Sat, 27 Dec 2014 07:50:08 +0000 (00:50 -0700)]
Docs copyediting: Add more external URLs; add backticks, etc.

10 years ago[Docs] Go 1.4+ required for building on Windows
Anthony Fok [Fri, 26 Dec 2014 20:00:14 +0000 (13:00 -0700)]
[Docs] Go 1.4+ required for building on Windows

See Issue #688 for more information.

10 years agoAdd anchor ref to Blackfriday doc
bep [Fri, 26 Dec 2014 17:11:05 +0000 (18:11 +0100)]
Add anchor ref to Blackfriday doc

10 years agoFix a crash for ref page#anchor.
Austin Ziegler [Fri, 26 Dec 2014 16:55:53 +0000 (11:55 -0500)]
Fix a crash for ref page#anchor.

- Remove an improperly shadowed variable.
- Fixes #741.

10 years agoMerge pull request #742 from bjornerik/doc/blackfriday
Bjørn Erik Pedersen [Fri, 26 Dec 2014 15:56:06 +0000 (16:56 +0100)]
Merge pull request #742 from bjornerik/doc/blackfriday

Add doc for Blackfriday configuration

10 years agoAdd ability to canonify URLs in rendered XML output.
Ryan Martinsen [Thu, 18 Dec 2014 19:59:39 +0000 (14:59 -0500)]
Add ability to canonify URLs in rendered XML output.