Commit Graph

167 Commits

Author SHA1 Message Date
Ricardo N Feliciano a4ea3402d1 Fix ref and relref function pages. 2017-12-14 00:03:05 +01:00
Bjørn Erik Pedersen 88bf0e6637 Merge commit 'ecf5e081b5540e69f4af330233f39a07baf53846' 2017-10-15 10:20:55 +02:00
Andrew Brampton fc40d078d6 Remove page arg from examples of relref shortcode 2017-10-04 17:12:00 +02:00
Andrew Brampton c578620b57 Remove page arg from examples of ref shortcode 2017-10-04 17:11:27 +02:00
Bjørn Erik Pedersen 6c7191331d Merge commit 'dae5a7c61cceeb0de59f2d755f63e453f71dd9b2' 2017-10-04 09:27:30 +02:00
Brendan Roy efd1821bd7 tpl: Add errorf template function
Add template function that will build a string from the given format
string and arguments, then log it to ERROR. This has an intended
side-effect of causing the build to fail, when executed.

Resolves #3817
2017-10-03 07:59:51 +02:00
Cameron Moore dcb0998d0f Add a Build Performance page draft
* Add a Build Performance page draft

* Update Build Performance page

* Add step analysis to build performance guide

* Remove wip and draft status from front matter
2017-09-29 13:58:21 +02:00
digitalcraftsman 9e8c09652a tpl: Add os.fileExists template function
Fixes #3839
2017-09-28 19:52:34 +02:00
Bjørn Erik Pedersen e969cfcd79 Merge commit '9d68f695e782c6a83c77aff13317c7a22c694c98' 2017-09-28 17:22:55 +02:00
Lucas Jenss 1a2d516a0c tpl: Add float template function
Add a template function that allows conversion to float. This is
useful, for example, when passing aspect ratios into templates,
which tend to not be integers.

Fixes #3307
2017-09-28 16:53:18 +02:00
digitalcraftsman 36d7e22f5c Document fmt.{print, println} template functions
Closes #97
2017-09-27 17:30:32 +02:00
Cameron Moore 00342ca9ae Fix broken link on highlight page 2017-09-27 08:51:08 +02:00
digitalcraftsman 0100df7364 Fix code examples for math.{Ceil, Floor, Round} 2017-09-26 23:41:52 +02:00
digitalcraftsman 463558f919 Document math.Log template function
Closes #99
2017-09-26 21:26:33 +02:00
Cameron Moore f060d6d124 Fix math.Ceil, Floor, and Round naming
math.Ceil, Floor, and Round don't have short-hand equivalents.

Fixes #205
2017-09-26 12:04:11 +02:00
digitalcraftsman a2262d241e Document strings.TrimPrefix and TrimSuffix template functions
Closes #148
2017-09-25 19:26:34 +02:00
digitalcraftsman 80c1ce631b Document strings.TrimLeft and TrimRight template functions
Closes #147
2017-09-25 19:11:45 +02:00
digitalcraftsman 2921088dde Document urls.Parse template function
Closes #204
2017-09-25 18:39:00 +02:00
digitalcraftsman f0133079b3 Document math.{ceil, floor, round} template functions
Closes #203
2017-09-25 18:23:34 +02:00
Bjørn Erik Pedersen 20959c7b91 Rewrite the syntax highlighter docs etc. 2017-09-25 08:30:32 +02:00
Sean Shao c8f1a2d2f6 Correct code example for index template function
typo in example code {{ index .Site.Data.locations .Params.location }}
2017-09-19 15:33:25 +02:00
Bjørn Erik Pedersen 158cee1b5c Make the tags into keywords
See #32
2017-09-13 19:50:17 +02:00
Cameron Moore eb371e5235 functions: Fix lang.NumFmt docs
Fixes #154
2017-08-21 21:47:02 +02:00
James Rhea 2a14624dfb Fix alias in countrunes.md
Fixes #84.
2017-08-16 22:54:06 +02:00
Bjørn Erik Pedersen a3ef5be939 Remove string concatenation from add (math) sample
Using `add` to concatenate two strings sounds like a hack, and has its limitations. Use `printf` for this.
2017-08-16 18:08:52 +02:00
Bjørn Erik Pedersen a78bbe22d7 Add link to Go issue 2017-08-10 14:22:05 +02:00
Ron Liskey 35abbc8691 Add example with taxonomy for title template func
Example URL with printf.
2017-08-06 11:34:37 +02:00
Abdullah Diab 8353177226 Replace http://example.{com,org}/ with https://example.{com,org}/
* Replace http://example.{com,org}/ with https://example.{com,org}/

To be consistent with gohugoio/hugo, @bep suggests changing all
instances of http://(www.)?example.{com,org} with
https://(www.)?example.{com,org}

See issue gohugoio/hugo#3728 with pull request gohugoio/hugo#3739
2017-08-01 22:54:32 +02:00
Cameron Moore d93f09926b functions: Add all missing binary comparison operators
Fixes #91
2017-07-27 00:20:02 +02:00
digitalcraftsman b3ec698681 Let page title correspond to function name replaceRE 2017-07-23 10:39:03 +02:00
zuriar 6c0bde3f88 Update slice.md
Change word "alice" to "slice" in description
2017-07-22 09:27:20 +02:00
Bjørn Erik Pedersen e4824eb3fe Fix the output shortcode and its usage
Passing the shortcode into the Markdown processor just to get pre and code tags does not make much sense.
2017-07-21 13:06:11 +02:00
Bjørn Erik Pedersen 83ff50c2e0 Use example.com in examples
Avoid linking to existing domain yoursite.com.
2017-07-20 21:46:10 +02:00
Bjørn Erik Pedersen 572b9e7590 Clean up the code shortcode use
* No markdown needed
* No code fence needed

See #61
2017-07-20 11:51:45 +02:00
Bjørn Erik Pedersen a1b2fd3bdc Remove the code fence language codes
See #61
2017-07-20 11:51:45 +02:00
Bjørn Erik Pedersen b0470688f1 Use infinitive mood for titles
Fixes #46
2017-07-17 21:22:03 +02:00
Bjørn Erik Pedersen 52adf3c906 Fix union description 2017-07-17 11:15:00 +02:00
Bjørn Erik Pedersen b1238c98a1 Document Pages support in union and intersect
Fixes #26
2017-07-17 11:11:10 +02:00
Bjørn Erik Pedersen 2baad4b37e Add missing functions alias 2017-07-17 01:06:11 +02:00
Bjørn Erik Pedersen d3603ef943 Adjust GetPage doc 2017-07-17 00:01:47 +02:00
Bjørn Erik Pedersen 43c935a83d Copy editing of the template func documentation 2017-07-16 22:01:36 +02:00
Bjørn Erik Pedersen b9bdfd40a6 Prefix methods with a "."
Not optimal, but it at least indicates that they need a context (Page etc.) and cannot be called alone.
2017-07-16 15:32:31 +02:00
Bjørn Erik Pedersen 4e0bca2b1e Remove the needsexamples construct
We need to rework the whole template func docs and, while a good idea, this does not fit into that.
2017-07-16 15:13:35 +02:00
Bjørn Erik Pedersen 4ac6e82810 Update content references to new gohugoio org 2017-07-16 14:38:15 +02:00
Bjørn Erik Pedersen 2d75e09066 Content fix 2017-07-16 00:24:03 +02:00
Bjørn Erik Pedersen 2a657165f7 Set unix func to draft 2017-07-14 21:30:36 +02:00
Bjørn Erik Pedersen 87db4be71e Remove the tags config for now
See https://github.com/gohugoio/hugoDocs/issues/32
2017-07-14 10:54:47 +02:00
Ryan Watters 73d616c56b Remove category taxonomy from site config 2017-07-13 00:05:15 -06:00
Ryan Watters 813a0cb0bd Add time to int example for time function 2017-07-13 00:05:15 -06:00
Ryan Watters 52aedacd2b Add admonition note to getenv function 2017-07-13 00:05:15 -06:00