Bjørn Erik Pedersen [Fri, 19 Apr 2019 06:58:12 +0000 (08:58 +0200)]
tpl/collections: Return error on invalid input in in
See #5875
Bjørn Erik Pedersen [Thu, 18 Apr 2019 15:06:54 +0000 (17:06 +0200)]
tpl/collections: Make Pages etc. work with the in func
Fixes #5875
Bjørn Erik Pedersen [Thu, 18 Apr 2019 08:27:23 +0000 (10:27 +0200)]
tpl/collections: Make Pages etc. work in uniq
Fixes #5852
Bjørn Erik Pedersen [Thu, 18 Apr 2019 07:25:40 +0000 (09:25 +0200)]
commands: Replace IsDraft with Draft in list command
Fixes #5873
hugoreleaser [Wed, 17 Apr 2019 12:22:55 +0000 (12:22 +0000)]
releaser: Prepare repository for 0.56.0-DEV
[ci skip]
hugoreleaser [Wed, 17 Apr 2019 12:20:37 +0000 (12:20 +0000)]
releaser: Add release notes to /docs for release of 0.55.2
[ci skip]
hugoreleaser [Wed, 17 Apr 2019 12:20:37 +0000 (12:20 +0000)]
releaser: Bump versions for release of 0.55.2
[ci skip]
Bjørn Erik Pedersen [Wed, 17 Apr 2019 12:13:46 +0000 (14:13 +0200)]
Release 0.55.2
hugoreleaser [Wed, 17 Apr 2019 12:10:37 +0000 (12:10 +0000)]
releaser: Add release notes draft for 0.55.2
Rename to *-ready.md to continue. [ci skip]
Bjørn Erik Pedersen [Wed, 17 Apr 2019 11:17:26 +0000 (13:17 +0200)]
hugolib: Add more tests for Permalinkable
See #5849
Bjørn Erik Pedersen [Wed, 17 Apr 2019 08:36:36 +0000 (10:36 +0200)]
hugolib: Fix Pages reinitialization on rebuilds
Which had some unpredictable behaviour when using `.Pages` on home page etc. that had a content page.
Fixes #5833
Bjørn Erik Pedersen [Tue, 16 Apr 2019 07:13:55 +0000 (09:13 +0200)]
tpl/tplimpl: Handle late transformation of templates
Fixes #5865
Bjørn Erik Pedersen [Mon, 15 Apr 2019 13:17:46 +0000 (15:17 +0200)]
hugolib: Fix shortcode namespace issue
Fixes #5863
Bjørn Erik Pedersen [Mon, 15 Apr 2019 15:09:27 +0000 (17:09 +0200)]
hugolib: Fix false WARNINGs in lang prefix check
Add a slash to the check to make it less likely to match a valid value.
Fixes #5860
Bjørn Erik Pedersen [Mon, 15 Apr 2019 10:06:12 +0000 (12:06 +0200)]
hugolib: Fix bundle resource publishing when multiple output formats
The faulty logic published the bundled resources for the "first output" format.
This worked most of the time, but since the output formats list is sorted,
any output format only used for some of the pages (e.g. CSS) would not work properly.
Fixes #5858
Bjørn Erik Pedersen [Mon, 15 Apr 2019 07:38:14 +0000 (09:38 +0200)]
hugolib: Fix panic for unused taxonomy content files
In Hugo 0.55 we connected the taxonomy nodes with their owning Page.
This failed if you had, say, a content file for a author that did not author anything in the site:
```
content/authors/silent-persin/_index.md
```
Fixes #5847
Bjørn Erik Pedersen [Sat, 13 Apr 2019 16:58:06 +0000 (18:58 +0200)]
hugolib: Fix dates for sections with dates in front matter
Fixes #5854
Bjørn Erik Pedersen [Sat, 13 Apr 2019 09:40:51 +0000 (11:40 +0200)]
Fix WeightedPages in union etc.
We introduced a callback func() to get the owner Page in 0.55.0.
Sadly, funcs is not comparable type in Go.
This commit replaces the func with a struct pointer that wraps the Page.
Fixes #5850
hugoreleaser [Fri, 12 Apr 2019 09:58:35 +0000 (09:58 +0000)]
releaser: Prepare repository for 0.56.0-DEV
[ci skip]
hugoreleaser [Fri, 12 Apr 2019 09:56:13 +0000 (09:56 +0000)]
releaser: Add release notes to /docs for release of 0.55.1
[ci skip]
hugoreleaser [Fri, 12 Apr 2019 09:56:13 +0000 (09:56 +0000)]
releaser: Bump versions for release of 0.55.1
[ci skip]
Bjørn Erik Pedersen [Fri, 12 Apr 2019 09:30:04 +0000 (11:30 +0200)]
Release 0.55.1
hugoreleaser [Fri, 12 Apr 2019 09:29:27 +0000 (09:29 +0000)]
releaser: Add release notes draft for 0.55.1
Rename to *-ready.md to continue. [ci skip]
Bjørn Erik Pedersen [Fri, 12 Apr 2019 08:44:21 +0000 (10:44 +0200)]
hugolib: Add a test for parent's resources in shortcode
See #5833
Bjørn Erik Pedersen [Fri, 12 Apr 2019 08:26:10 +0000 (10:26 +0200)]
Fix
Bjørn Erik Pedersen [Fri, 12 Apr 2019 07:50:36 +0000 (09:50 +0200)]
hugolib: Fix simple menu config
This stopped working in Hugo 0.55:
```bash
---
menu: "main"
---
```
This was also the case for using a slice of menu entries.
This still worked:
---
menu:
main:
weight: 30
---
Bjørn Erik Pedersen [Wed, 10 Apr 2019 08:11:51 +0000 (10:11 +0200)]
Fix paginator refresh on server change
Fixes #5838
Yihui Xie [Wed, 10 Apr 2019 18:50:51 +0000 (13:50 -0500)]
Remove the space in `. RelPermalink`
The same fix as
3b86b4a9f5ce010c9714d813d5b8ecddda22c69f, applied to doc.
Bjørn Erik Pedersen [Tue, 9 Apr 2019 21:59:59 +0000 (23:59 +0200)]
Bjørn Erik Pedersen [Tue, 9 Apr 2019 21:59:13 +0000 (23:59 +0200)]
Squashed 'docs/' changes from
acf70cdd9..
0f2bf195e
0f2bf195e Adjust shortcodes for 0.55
48c577121 Fix deprecation warnings
ed95a341a Update index.md
e4bc8981f Release 0.55.0
25acacb91 Merge branch 'temp55'
b240e321a releaser: Add release notes to /docs for release of 0.55.0
86a190c92 docs: Add information about summary front matter variable
9d94f4340 integrity: Add support for sha384
dd3fe9f92 Add HUGO_NUMWORKERMULTIPLIER
968372d86 Add trace.out to .gitignore
660772713 Add the Fireship images to cache
41a3e19cb hugolib: Allow page-relative aliases
4497e4b12 Update faq.md
b0ee3dccc output: Add missing JSON tag
173dac0b7 docs: Regenerate docshelper data
e30473062 docs: Regenerate CLI docs
8cb775be2 Merge commit '
c2037f0c9a3a35b9db9c404f6b5f94ec8b690a53'
5bc64bf44 Make Page an interface
371ff6c12 Add skipHTML option to blackfriday config
git-subtree-dir: docs
git-subtree-split:
0f2bf195ef549013cc843199fb50317b0d1a5e85
Bjørn Erik Pedersen [Tue, 9 Apr 2019 14:47:29 +0000 (16:47 +0200)]
resources/page: Fix .RSSLinke deprecation message
Closes #4427
Bjørn Erik Pedersen [Tue, 9 Apr 2019 14:39:12 +0000 (16:39 +0200)]
tpl/tplimpl: Replace deprecated .GetParam usage
Fixes #5834
hugoreleaser [Mon, 8 Apr 2019 16:42:12 +0000 (16:42 +0000)]
releaser: Prepare repository for 0.56.0-DEV
[ci skip]
hugoreleaser [Mon, 8 Apr 2019 16:39:45 +0000 (16:39 +0000)]
releaser: Add release notes to /docs for release of 0.55.0
[ci skip]
hugoreleaser [Mon, 8 Apr 2019 16:39:45 +0000 (16:39 +0000)]
releaser: Bump versions for release of 0.55.0
[ci skip]
Bjørn Erik Pedersen [Mon, 8 Apr 2019 16:34:48 +0000 (18:34 +0200)]
Release 0.55.0
hugoreleaser [Mon, 8 Apr 2019 09:27:25 +0000 (09:27 +0000)]
releaser: Add release notes draft for 0.55.0
Rename to *-ready.md to continue. [ci skip]
Bjørn Erik Pedersen [Sun, 7 Apr 2019 19:59:37 +0000 (21:59 +0200)]
Misc paginator adjustments
* Rewind paginator for server mode
* Add some more related tests.
* Replace the clumsy scratch constructs in internal paginator template with variables
See #5825
Bjørn Erik Pedersen [Sun, 7 Apr 2019 11:16:01 +0000 (13:16 +0200)]
Update to Go 1.12.2 and Go 1.11.7
Fixes #5819
Bjørn Erik Pedersen [Sun, 7 Apr 2019 08:22:19 +0000 (10:22 +0200)]
hugolib: Log warning on relative front matter url with lang
Will do this for one version only, as there may be situations where this is the correct thing.
Also add some more related test cases.
Fixes #5818
Bjørn Erik Pedersen [Sat, 6 Apr 2019 15:40:35 +0000 (17:40 +0200)]
Adjust rlimit logic
Closes #5821
Jim McDonald [Fri, 5 Apr 2019 22:17:54 +0000 (23:17 +0100)]
docs: Add information about summary front matter variable
Jim McDonald [Fri, 5 Apr 2019 17:11:04 +0000 (18:11 +0100)]
hugolib: Consider summary in front matter for .Summary
Add the ability to have a `summary` page variable that overrides
the auto-generated summary. Logic for obtaining summary becomes:
* if summary divider is present in content, use the text above it
* if summary variables is present in page metadata, use that
* auto-generate summary from first _x_ words of the content
Fixes #5800
Bjørn Erik Pedersen [Fri, 5 Apr 2019 14:58:52 +0000 (16:58 +0200)]
resources/page: Regenerate JSON wrapper
Bjørn Erik Pedersen [Fri, 5 Apr 2019 14:52:37 +0000 (16:52 +0200)]
resources/page: Add missing GitInfo to Page
Bjørn Erik Pedersen [Fri, 5 Apr 2019 09:40:02 +0000 (11:40 +0200)]
integrity: Add support for sha384
Fixes #5815
Bjørn Erik Pedersen [Fri, 5 Apr 2019 09:05:25 +0000 (11:05 +0200)]
hugolib: Fix default date assignment for sections
See #5784
Bjørn Erik Pedersen [Fri, 5 Apr 2019 08:09:22 +0000 (10:09 +0200)]
Add HUGO_NUMWORKERMULTIPLIER
And use that to calculate number of workers, if set, else fall back to number of logical CPUs.
Also tweak the relevant related settings to match the new setup.
Also remove the setting of `runtime.GOMAXPROCS` as this has been the default behaviour since Go 1.5.
Fixes #5814
Bjørn Erik Pedersen [Fri, 5 Apr 2019 07:31:16 +0000 (09:31 +0200)]
hugolib: Fix the GOMAXPROCS env get
Fixes #5813
Bjørn Erik Pedersen [Fri, 5 Apr 2019 06:55:39 +0000 (08:55 +0200)]
Use YAML for the benchmark compare
Bjørn Erik Pedersen [Fri, 5 Apr 2019 06:44:14 +0000 (08:44 +0200)]
hugolib: Fix benchmark for YAML front matter
Bjørn Erik Pedersen [Thu, 4 Apr 2019 14:50:10 +0000 (16:50 +0200)]
hugolib: Buffer the render pages chan
Bjørn Erik Pedersen [Thu, 4 Apr 2019 12:39:39 +0000 (14:39 +0200)]
deps: Update to imaging v1.6.0
Closes #5812
Bjørn Erik Pedersen [Thu, 4 Apr 2019 10:37:55 +0000 (12:37 +0200)]
hugolib: Re-work "fast render" logic in the new flow
Note that this fixes some "live reload" issues recently introduced in non-released code.
Closes #5811
See #5784
Bjørn Erik Pedersen [Tue, 2 Apr 2019 18:43:58 +0000 (20:43 +0200)]
metrics: Adjust the howSimilar logic vs strings
Also add a test.
Bjørn Erik Pedersen [Tue, 2 Apr 2019 08:52:43 +0000 (10:52 +0200)]
resources/page: Implement compare.ProbablyEqer for the core slices
Fixes #5808
Bjørn Erik Pedersen [Sun, 31 Mar 2019 10:08:15 +0000 (12:08 +0200)]
hugolib: Allow relative URLs in front matter
Before this commit you would have to do this in multilingual setups:
```
---
title: "Custom!"
url: "/jp/custom/foo"
---
```
This commit allows for relative URLs, e.g:
```
---
title: "Custom!"
url: "custom/foo"
---
```
Which is obviously easier and more portable.
The meaning of relative may change to include more in the future (e.g. role based access).
Fixes #5704
Bjørn Erik Pedersen [Sat, 30 Mar 2019 16:08:25 +0000 (17:08 +0100)]
hugolib: Allow page-relative aliases
Fixes #5757
Bjørn Erik Pedersen [Tue, 2 Apr 2019 08:30:24 +0000 (10:30 +0200)]
tpl: Allow the partial template func to return any type
This commit adds support for return values in partials.
This means that you can now do this and similar:
{{ $v := add . 42 }}
{{ return $v }}
Partials without a `return` statement will be rendered as before.
This works for both `partial` and `partialCached`.
Fixes #5783
Bjørn Erik Pedersen [Mon, 1 Apr 2019 07:11:36 +0000 (09:11 +0200)]
releaser: Remove version replacement in docs config
Fixes #5665
Bjørn Erik Pedersen [Mon, 1 Apr 2019 07:07:19 +0000 (09:07 +0200)]
releaser: Adjust patch vs images logic
Fixes #5664
Bjørn Erik Pedersen [Sat, 30 Mar 2019 15:46:18 +0000 (16:46 +0100)]
hugolib: Fix alias path for AMP and similar
Fixes #5760
Bjørn Erik Pedersen [Sat, 30 Mar 2019 08:12:49 +0000 (09:12 +0100)]
resources: Fix image publish ordering issue
Fixes #5730
Bjørn Erik Pedersen [Thu, 28 Mar 2019 19:59:09 +0000 (20:59 +0100)]
output: Add missing JSON tag
Bjørn Erik Pedersen [Thu, 28 Mar 2019 08:49:54 +0000 (09:49 +0100)]
docs: Regenerate docshelper data
Closes #5799
Bjørn Erik Pedersen [Thu, 28 Mar 2019 08:46:55 +0000 (09:46 +0100)]
deps: Update Chroma
Closes #5780
Bjørn Erik Pedersen [Thu, 28 Mar 2019 08:45:25 +0000 (09:45 +0100)]
hugolib: Add a simple test for jsonify of Site
Closes #5780
Bjørn Erik Pedersen [Tue, 26 Mar 2019 17:46:01 +0000 (18:46 +0100)]
docs: Regenerate CLI docs
Fixes #5779
Bjørn Erik Pedersen [Tue, 26 Mar 2019 17:41:36 +0000 (18:41 +0100)]
Bjørn Erik Pedersen [Tue, 26 Mar 2019 17:41:09 +0000 (18:41 +0100)]
Squashed 'docs/' changes from
4f4d1f48c..
acf70cdd9
acf70cdd9 Update CSS after removing Purge
74c0bb7f2 Remove purge from Webpack, temporarily
397b7284f Merge commit '
ccb1e38f3822e9b5e4fb89a296324daf3400f23b'
ccb1e38f3 Squashed 'themes/gohugoioTheme/' changes from
042112e2d..
b7853ae70
bca84e914 Fix search box text being invisible in Safari
3f21d0957 FAQ: "this feature is not available in your current Hugo version"
d8b318f90 Remove Gulp from Victor Hugo description
09d9b4c24 Update contribute/development.md
4d0f6ba47 Theme Components Support on the Hugo Themes Site (#769)
f2ec3f2a6 Fix broken link 404
af82c56c5 config: Remove superflous param
8dc14f563 Update theme total on homepage (#765)
7838fd7e2 Update description of Atlas to reflect new changes
6abab23c6 update: total of hugo themes
1dba24fde Clarify: summaryLength uses words not characters
8c54f45d6 Add missing punctuation
d17000481 Remove Hugo Frontend caddy-plugin
a7094ae62 remove unneeded meta tags
f8b0f31c6 Fix typo in cross references
61781bab9 Fix: use gh shortcode correctly
357bfca43 Update files.md
d1d2406cc Updated Hugo convert to clarify for and not ..
86850f3c3 Fix typos in multilingual.md
b68d0d892 Fix typo
8cba70e28 Document disableAliases
00e440260 Remove extra whitespace
212d63e4c Update with latest Theme Submission Guidelines (#744)
c24ea638f Update frontends.md
942bc1972 Add one more video
2e1e1091d Update the rest of the videos
a7dc70f2b Add new installation video
1a78f8487 Hosting on AWS amplify
112420c46 Fix typo
f723425e4 Add fireship.io bio to showcase
574f43503 Fixed typo
88e0e0cb7 Release 0.54.0
303edf19e Merge branch 'temp54'
c38debebd releaser: Prepare repository for 0.55.0-DEV
5c6c56fa1 releaser: Add release notes to /docs for release of 0.54.0
f86e05950 releaser: Bump versions for release of 0.54.0
6a2684fe4 Add the default cache configuration
f75c0125a Merge commit '
f27faf9afd0a8db768a21954b8755f1bf1a14f1b'
e440dc6a4 Merge commit '
5e078383a787e8b5ec3ba73f05ea4130840afbe2'
981bf53f8 Update _index.md
b54aea066 tpl: Fix reflect
41f8af5a6 Merge commit '
978856e2ad12d2bcaf37bb9e31f806b30a4c42f4'
git-subtree-dir: docs
git-subtree-split:
acf70cdd9fe2a89413e13db29466e45629372343
Bjørn Erik Pedersen [Tue, 26 Mar 2019 13:33:09 +0000 (14:33 +0100)]
hugolib: Do not fall back to site title if not set in content file
See #5784
Bjørn Erik Pedersen [Tue, 26 Mar 2019 12:12:58 +0000 (13:12 +0100)]
deps: Update Afero
Closes #5673
Bjørn Erik Pedersen [Tue, 26 Mar 2019 09:28:02 +0000 (10:28 +0100)]
hugolib: Add a test for home page with no title
See #5784
Bjørn Erik Pedersen [Mon, 25 Mar 2019 17:18:34 +0000 (18:18 +0100)]
Avoid nilpointer on no File on Page
Fixes #5781
Bjørn Erik Pedersen [Tue, 26 Mar 2019 09:15:57 +0000 (10:15 +0100)]
herrors/errors: Improve the "feature not available" error
Bjørn Erik Pedersen [Mon, 25 Mar 2019 07:25:29 +0000 (08:25 +0100)]
hugolib: Add String() to fileInfo
See #5784
Bjørn Erik Pedersen [Mon, 25 Mar 2019 06:54:10 +0000 (07:54 +0100)]
resources/page: Re-introduce .Page.Page
It was removed in
597e418cb02883418f2cebb41400e8e61413f651 -- it's not documented, but it's used in too many real sites on the web.
See #5784
Bjørn Erik Pedersen [Sun, 24 Mar 2019 09:11:16 +0000 (10:11 +0100)]
all: Apply staticcheck recommendations
Bjørn Erik Pedersen [Sun, 24 Mar 2019 09:08:19 +0000 (10:08 +0100)]
hugolib: Remove unused slice
Bjørn Erik Pedersen [Sat, 23 Mar 2019 19:15:06 +0000 (20:15 +0100)]
Run gofmt -s
Bjørn Erik Pedersen [Wed, 2 Jan 2019 11:33:26 +0000 (12:33 +0100)]
Make Page an interface
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct.
This is all a preparation step for issue #5074, "pages from other data sources".
But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes.
Most notable changes:
* The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content renderer, e.g. Blackfriday.
This means that any markdown will partake in the global ToC and footnote context etc.
* The Custom Output formats are now "fully virtualized". This removes many of the current limitations.
* The taxonomy list type now has a reference to the `Page` object.
This improves the taxonomy template `.Title` situation and make common template constructs much simpler.
See #5074
Fixes #5763
Fixes #5758
Fixes #5090
Fixes #5204
Fixes #4695
Fixes #5607
Fixes #5707
Fixes #5719
Fixes #3113
Fixes #5706
Fixes #5767
Fixes #5723
Fixes #5769
Fixes #5770
Fixes #5771
Fixes #5759
Fixes #5776
Fixes #5777
Fixes #5778
Daniel Compton [Thu, 21 Feb 2019 01:34:32 +0000 (14:34 +1300)]
List future and expired dates in CSV format
It is useful to see the date that a post will be published, or the date
that it has expired, to build tooling around it. This commit writes
posts and their publish/expired date as CSV.
Fixes #5610
Bjørn Erik Pedersen [Sun, 17 Mar 2019 07:37:42 +0000 (08:37 +0100)]
Update to Go 1.12.1 and Go 1.11.6
Fixes #5755
Bjørn Erik Pedersen [Sat, 16 Mar 2019 08:40:27 +0000 (09:40 +0100)]
tpl/tplimpl: Fix mutex unlock
Bjørn Erik Pedersen [Thu, 14 Mar 2019 20:39:00 +0000 (21:39 +0100)]
commands: Fix doLiveReload logic
Fixes #5754
Bjørn Erik Pedersen [Wed, 13 Mar 2019 09:42:43 +0000 (10:42 +0100)]
deps: Update Viper
Bjørn Erik Pedersen [Tue, 12 Mar 2019 19:27:50 +0000 (20:27 +0100)]
hugolib: Adjust site benchmark
Having all the pages with shortcodes isn't realistic.
Bjørn Erik Pedersen [Thu, 7 Mar 2019 09:26:26 +0000 (10:26 +0100)]
Update to Go 1.12
Fixes #5716
Bjørn Erik Pedersen [Wed, 6 Mar 2019 23:37:50 +0000 (00:37 +0100)]
Remove Gitter dev chat link
Almost every question we get there belong on https://discourse.gohugo.io/
Bjørn Erik Pedersen [Wed, 6 Mar 2019 08:07:49 +0000 (09:07 +0100)]
tpl/tplimpl: Fix template truth logic
Before this commit, due to a bug in Go's `text/template` package, this would print different output for typed nil interface values:
```
{{ if .AuthenticatedUser }}User is authenticated!{{ else }}{{ end }}
{{ if not .AuthenticatedUser }}{{ else }}}User is authenticated!{{ end }}
```
This commit works around this by wrapping every `if` and `with` with a custom `getif` template func with truth logic that matches `not`, `and` and `or`.
Those 3 template funcs from Go's stdlib are now pulled into Hugo's source tree and adjusted to support custom zero values, e.g. types that implement `IsZero`.
This means that you can now do:
```
{{ with .Date }}{{ . }}{{ end }}
```
And it would work as expected.
Fixes #5738
grahamjamesaddis [Tue, 5 Mar 2019 13:26:49 +0000 (13:26 +0000)]
Update Travis config to work for forked builds
arrtchiu [Mon, 4 Mar 2019 10:27:18 +0000 (18:27 +0800)]
Add skipHTML option to blackfriday config
Elliott Sales de Andrade [Sat, 2 Mar 2019 06:21:48 +0000 (01:21 -0500)]
Update stretchr/testify to 1.3.0.
Berin Larson [Tue, 26 Feb 2019 08:11:06 +0000 (13:41 +0530)]
Rewrite relative action URLS
Fixes #5701
Anthony Metzidis [Thu, 7 Feb 2019 01:01:26 +0000 (17:01 -0800)]
Support Docker args TAGS, WORKDIR, CGO; speed up repetitive builds
Bjørn Erik Pedersen [Tue, 19 Feb 2019 20:47:03 +0000 (21:47 +0100)]
hugolib: Adjust test for Go 1.12
Anton Harniakou [Sun, 3 Feb 2019 11:03:44 +0000 (14:03 +0300)]
Support nested keys/fields with missing values with the `where` function
Before this commit `where` would produce an error and bail building the
site. Now, `where` simply skips an element of a collection and does not
add it to the final result.
Closes #5637
Closes #5416
Bjørn Erik Pedersen [Sat, 2 Feb 2019 11:04:42 +0000 (12:04 +0100)]
commands: Update debouncer version
Iskander (Alex) Sharipov [Sat, 2 Feb 2019 07:19:12 +0000 (10:19 +0300)]
common/herrors: Fix args order in strings.TrimPrefix
Old code always returned "." or "" (if filepath.Ext(filename) returned ".").
Now it properly trims the prefix.
Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
Iskander (Alex) Sharipov [Sat, 2 Feb 2019 00:26:05 +0000 (03:26 +0300)]
tpl: Fix strings.HasPrefix args order