Lucas Westermann
87c539101d
Updated readFile documentation
...
I've re-written the opening sentence to reflect the fact that the function checks multiple locations. I also added in a separate paragraph at the end to indicate that paths in error messages should be taken with a grain of salt.
2018-04-16 10:40:17 +02:00
divinerites
9ce901dcbb
Add a forgotten language tag (go-html-template) for code
2018-04-04 18:01:42 +02:00
Bjørn Erik Pedersen
b05aaed14d
Update where.md
2018-04-02 18:47:48 +02:00
Bjørn Erik Pedersen
c5a5250a1b
Use the new go-html-template Chroma lexer
2018-04-02 15:07:01 +02:00
Bjørn Erik Pedersen
2d52e2e4eb
Merge commit 'ed8bf081fdbf336e026517b7e1b123c039014ab5'
2018-04-02 08:53:34 +02:00
Kaushal Modi
41878b6cac
Clarify the use of .GetPage with page bundles
...
- Add explanation to the headless page bundle example.
- Clarify that the PATH argument to .GetPath can be a single string or a series
of strings.
2018-03-30 22:40:13 +02:00
Bjørn Erik Pedersen
fdb579ad1c
Merge commit '0a23baa6a90901f772c234107c4f12c16c76f4aa'
2018-03-20 21:11:45 +01:00
cmal
7b71da1f8d
hugolib: Add Reset method to delete key from Scratch
2018-03-17 00:13:23 +01:00
Kaushal Modi
f66bad971d
Remove unintended alias
...
Fixes https://github.com/gohugoio/hugoDocs/issues/48 .
2018-03-16 15:14:35 -04:00
Bjørn Erik Pedersen
63a131664d
docs: Add docs for lang.Merge
...
See https://github.com/gohugoio/hugo/issues/4463
2018-03-16 10:10:01 +01:00
Stefan Weil
3f177c94e4
Fix some typos (found by codespell)
2018-03-15 12:49:04 -04:00
Kaushal Modi
d23d8f5c42
Remove 'fundamentals' category from function pages
...
Fixes https://github.com/gohugoio/hugoDocs/issues/406
2018-03-09 19:09:57 +01:00
Jake Rayson
b9505fc70b
Remove template reference to ordinal numbers
...
> Spelled-out cardinal numbers … are not currently supported
So, remove reference to them in "Hugo Date and Time Templating Reference"
2018-03-08 15:48:57 -05:00
Jake Rayson
2a7fdc2694
Fix typo 'vailable' to 'available' line 53
2018-03-06 16:03:42 +01:00
Bruce
999b752016
LastMod should be Lastmod?
...
Trying to use LastMod gives errors, however Lastmod works. So, I'd guess the documentation should be updated.
2018-03-05 23:09:07 -05:00
Nick-Rivera
6bcdc58ef1
Word choice improvements
2018-03-02 15:31:01 -05:00
Kaushal Modi
4917f06363
Mention that math add/sub/mul/div functions can do float math too
...
Fixes https://github.com/gohugoio/hugoDocs/issues/373
2018-02-26 18:39:44 -05:00
Bjørn Erik Pedersen
31632beeb8
Document .Site.Params.mainSections
...
Fixes #371
2018-02-26 10:14:30 +01:00
Kaushal Modi
6c7687c2d2
Minor edits to the apply documentation
...
- Fix typos
- Add full stop and colons
- Use expanded "is not" instead of isn't (recommended in documentation)
2018-02-12 10:48:37 -05:00
Bjørn Erik Pedersen
04bbff8b36
Update apply.md
2018-02-12 14:54:28 +01:00
Kaushal Modi
daf6f51c0b
Mention the significance of leading 0 in int fn string input
...
https://discourse.gohugo.io/t/unable-to-cast-09-of-type-string-to-int/9614
2018-01-19 14:10:10 +01:00
Jeff Washington
07f4987556
Add documentation for cond function.
...
Fixes #180 .
2018-01-19 14:09:33 +01:00
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