Bjørn Erik Pedersen
8a49c0b3b8
tpl/collections: Make it a package that stands on its own
...
See #3042
2017-05-01 15:13:41 +02:00
Bjørn Erik Pedersen
a3bf118eaa
tpl/compare: Make it a package that stands on its own
...
See #3042
2017-05-01 15:13:41 +02:00
Bjørn Erik Pedersen
6561557367
tpl/data: Make it a package that stands on its own
...
See #3042
2017-05-01 15:13:41 +02:00
Bjørn Erik Pedersen
0ab23eb5a8
tpl/strings: Make it a package that stands on its own
...
See #3042
2017-05-01 15:13:41 +02:00
Bjørn Erik Pedersen
eefa0703cb
tpl/math: Make it a package that stands on its own
...
See #3042
2017-05-01 15:13:41 +02:00
Bjørn Erik Pedersen
c5373efcf0
tpl: Add TemplateFuncsNamespaceRegistry
...
As a first step to remove the hard ties between `tplimpl` and the different namespace packages.
The `lang` package is used as the first example use case.
See #3042
2017-05-01 15:13:41 +02:00
Bjørn Erik Pedersen
8f95172c7a
releaser: Disable shaky test
2017-05-01 13:38:29 +02:00
Ryan Watters
f485766151
Add txtpen to the Commenting Alternatives section
...
Closes rdwatters/hugo-docs-concept#91
See PR gohugoio/hugo#3320
2017-04-30 17:42:11 -05:00
Ryan Watters
906ad232ec
Change temporarily ghdocsrepo field in site config
...
to allow for easier contrib to docs concept.
Ref rdwatters/hugo-docs-concept#103
2017-04-30 17:39:39 -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
044b23892a
Add regex101.com reference to both RE functions
...
Ref rdwatters/hugo-docs-concept#97
2017-04-30 17:22:03 -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
8b94418e73
Add link to regex101.com for replace/find RE
...
Ref rdwatters/hugo-docs-concept#22
2017-04-30 17:19:29 -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
bc9a649195
Clean up code block for ids and classes (Second round)
...
Also fix issue with needsexamples.html shortcode.
2017-04-30 16:45:57 -05:00
Ryan Watters
e4336f0627
Fix minor typos in "where" function page
2017-04-30 16:23:41 -05:00
Ryan Watters
8e151a93b8
Clean up all list templating samples
...
* Add GetPage example
* Fix missing anchors
2017-04-30 16:19:13 -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
Takuya Kitazawa
f63d129611
docs: Replace cdn.mathjax.org with cdnjs.cloudflare.com
2017-04-30 21:43:38 +02:00
Takuya Kitazawa
4b637ac041
docs: Replace cdn.mathjax.org with cdnjs.cloudflare.com
2017-04-30 21:43:38 +02:00
Ryan Watters
b6dc570cb4
Update MathJax official CDN and respective code block
...
Closes rdwatters/hugo-docs-concept#104
See PR gohugoio/hugo#3416
2017-04-30 14:15:31 -05:00
Cameron Moore
de7c32a1a8
tpl: Add template function namespaces
...
This commit moves almost all of the template functions into separate
packages under tpl/ and adds a namespace framework. All changes should
be backward compatible for end users, as all existing function names in
the template funcMap are left intact.
Seq and DoArithmatic have been moved out of the helpers package and into
template namespaces.
Most of the tests involved have been refactored, and many new tests have
been written. There's still work to do, but this is a big improvement.
I got a little overzealous and added some new functions along the way:
- strings.Contains
- strings.ContainsAny
- strings.HasSuffix
- strings.TrimPrefix
- strings.TrimSuffix
Documentation is forthcoming.
Fixes #3042
2017-04-30 10:56:38 +02:00
Mitchell Cohen
154e18ddb9
Render 404 in default language only
...
This prevents 404.html from being re-rendered for each site.
Fixes #3075
2017-04-30 10:40:37 +02:00
Bjørn Erik Pedersen
4c8b300964
netlify: Add some security headers
2017-04-30 10:37:46 +02:00
Bjørn Erik Pedersen
565a78b110
netlify: Add some security headers
2017-04-30 10:37:46 +02:00
Bjørn Erik Pedersen
355736ec35
livereload: Fix data race in close
...
Fixes #2625
2017-04-30 01:10:57 +02:00
Ryan Watters
86f36c385c
Comment out path frontM override in cm-organization page temporarily
2017-04-29 18:09:20 -05:00
Tom Harvey
7084c7fab8
docs: Fix typos
2017-04-28 07:36:38 +02:00
Tom Harvey
93a447c5dd
docs: Fix typos
2017-04-28 07:36:38 +02:00
Albert Nigmatzianov
eaf75a18ec
vendor: Update cobra and pflag
...
See https://github.com/spf13/cobra/issues/426
2017-04-27 15:37:55 +02:00
Bjørn Erik Pedersen
8d0917af0a
hubolib: Narrow a test assertion
2017-04-27 13:00:24 +02:00
Bjørn Erik Pedersen
718c0e1414
releaser: Fix broken test build
2017-04-27 11:15:24 +02:00
Bjørn Erik Pedersen
d6957c192d
releaser: Skip Git test on Travis
2017-04-27 10:59:00 +02:00
Bjørn Erik Pedersen
0f93f521b6
release: Add relase notes for 0.20.6
...
[ci skip]
2017-04-27 10:27:55 +02:00
Bjørn Erik Pedersen
a695202ff5
release: Add relase notes for 0.20.6
...
[ci skip]
2017-04-27 10:27:55 +02:00
Bjørn Erik Pedersen
fea4fd86a3
hugolib: Avoid index.md in /index/index.html
...
Hugo 0.20 broke some sites that grouped their blog post and images together in subfolders.
This commit re-introduces that behaviour:
* If the file base name resolves to the same as the base name for the output type (i.e. "index" for HTML), the user probably meant it, so we treat that as an `uglyURL`, i.e. `my-blog-post-1.md`=> `/my-blog-post-1/index.html`
* The main use case for this is to group blog post and images together.
* Note that for the top level folder there will be a potential name conflict with a `section` `index.html` (if enabled)
* This issue will not be relevant for subfolders in sections
* Hugo will soon add support for nested sections, but we will have to find a way to separate them from the rest (`/content/_mysubsection` maybe).
Fixes #3396
2017-04-27 09:50:13 +02:00
Bjørn Erik Pedersen
dbfb0899ba
docs: Regenerate commands docs
2017-04-26 22:40:21 +02:00
Bjørn Erik Pedersen
656f818867
docs: Regenerate commands docs
2017-04-26 22:40:21 +02:00
Albert Nigmatzianov
f0f69d03c5
commands: Make first letter of flags' usage lowercase
2017-04-26 22:23:20 +02:00
Albert Nigmatzianov
8fbec59930
vendor: Update cobra and pflag
...
* Faster help message
* Faster docs
* Adds help flag in usage
2017-04-26 22:23:20 +02:00
Ryan Watters
d163576c41
Add blank content file for new numFormat function
2017-04-26 13:34:24 -05:00
Anthony Fok
e55399f50b
releaser: Fix some of the fpm fields for deb
2017-04-26 10:51:05 -06:00
Bjørn Erik Pedersen
5ad2f17693
hugolib: Make missing GitInfo a WARNING
...
And not an ERROR.
Fixes #3376
2017-04-26 11:03:12 +02:00
Ryan Watters
202fa954fa
Update custom output formats description to mention extensiblity
2017-04-25 17:59:55 -05:00
Ryan Watters
0c435aaa1c
Update description for output formats
2017-04-25 17:57:06 -05:00
Jordan
d3fe0e0727
docs: Add notes about some output format behaviour
2017-04-25 19:37:35 +02:00
Jordan
162d3a586d
docs: Add notes about some output format behaviour
2017-04-25 19:37:35 +02:00
Bjørn Erik Pedersen
fd5109b6d8
releaser: Fix ldflags setting
...
Closes #3382
2017-04-25 14:30:48 +02:00
Bjørn Erik Pedersen
797b29be00
docs: Remove temp release notes
2017-04-25 09:48:23 +02:00
Bjørn Erik Pedersen
88d8111093
docs: Remove temp release notes
2017-04-25 09:48:23 +02:00