hugo-coder-fork/layouts/partials
John Tobin 26a6a0a7cd Check if commentoUrl is set before using it. (#198)
* Check if commentoUrl is set before using it.

When a variable does not exist it evaluates to `nil`, and so the
check `(not (eq .Site.Params.commentoUrl ""))` evaluates to true rather
than false because `nil` is not "".  Before this change, unless you
explicitly set Params.commentoUrl to "", the commento HTML block would
be added, and this fails because /js/commento.js does not exist.  This
change ensures that the commento HTML block is only added whe
Params.commentoUrl exists and is set to a non-empty string.

* Check if DisqusShortname is set before using it.
2019-07-15 20:42:28 -03:00
..
posts Check if commentoUrl is set before using it. (#198) 2019-07-15 20:42:28 -03:00
taxonomy Add trailing slash to remove redirects. (#112) 2018-11-20 16:19:10 -02:00
404.html Add pt-br i18n (#144) 2019-02-09 12:36:32 -02:00
footer.html use safeHTML in footer (#181) 2019-05-12 20:41:26 -03:00
header.html Change relLangURL to safeURL in the header (#183) 2019-05-24 14:39:43 -03:00
home.html Home rel link (#195) 2019-06-26 10:09:47 -03:00
list.html replace .URL with .RelPermalink (#176) 2019-05-01 14:01:25 -03:00
page.html Initial files 2018-02-28 22:38:59 -03:00
pagination.html Initial files 2018-02-28 22:38:59 -03:00