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
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
Ryan Watters
976c398f6a
Add numfmt to functions list
...
Closes rdwatters/hugo-docs-concept#147
2017-06-20 11:58:48 -05:00
Ryan Watters
d78c5b4d5c
Replace all instances of discuss.gohugo.io with new discourse.gohugo.io URL
2017-06-16 20:50:36 -05:00
Ryan Watters
9ccb82fa42
Add functions file for uniq
2017-06-03 13:00:56 -05:00
Ryan Watters
b68758a9fe
Update _index.md to show more intuitive link titles
2017-05-26 14:51:57 -05:00
Bud Parr
7fd64f19c8
Merge bp/theme-design branch containing Bud Parr's new design
...
It's a beautiful thing. A thousand thanks, Bud.
See PR rdwatters/hugo-docs-concept#118
2017-05-26 14:25:22 -05:00
Ryan Watters
c616ade998
Add logic and operators tags to where.md for better discoverability
...
See rdwatters/hugo-docs-concept#37
2017-04-30 17:27:00 -05:00
Ryan Watters
c2a5952f4f
Add regex101.com reference to both RE functions
...
Ref rdwatters/hugo-docs-concept#97
2017-04-30 17:21:31 -05:00
Ryan Watters
71471f13ce
Remove opinionated code blocks (Third round)
...
Closes rdwatters/hugo-docs-concept#105
2017-04-30 17:16:40 -05:00
Ryan Watters
e4336f0627
Fix minor typos in "where" function page
2017-04-30 16:23:41 -05:00
Ryan Watters
abe797c958
Clean up code block (First round)
...
Also create the first draft of NumFmt function.
2017-04-30 15:25:54 -05:00
Ryan Watters
d163576c41
Add blank content file for new numFormat function
2017-04-26 13:34:24 -05:00
Ryan Watters
8fb94fa4ae
Add note on Golang regexp library to findRE and replaceRE funcs
2017-04-21 13:01:19 -05:00
Ryan Watters
e63c2fb1e5
Remove extra parentheses in GetPage function example
2017-04-20 17:15:19 -05:00
Ryan Watters
21ebf481df
Remove extra parentheses in GetPage function example
2017-04-20 17:14:57 -05:00
Ryan Watters
e97837f656
Fix typo in Format function
2017-04-18 19:46:18 -05:00
Ryan Watters
c67f09b209
Update signature for len function
2017-04-18 19:32:35 -05:00
Ryan Watters
999ba8d47e
Add len to functions list with examples
...
Closes rdwatters/hugo-docs-concept#92
2017-04-18 19:30:25 -05:00
Ryan Watters
ab7f43e181
Update math function page to include "add" usage with strings
...
Closes rdwatters/hugo-docs-concept#85
2017-04-12 15:24:32 -05:00