hugo-coder-fork/layouts/partials/posts
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
..
commento.html Check if commentoUrl is set before using it. (#198) 2019-07-15 20:42:28 -03:00
disqus.html Check if commentoUrl is set before using it. (#198) 2019-07-15 20:42:28 -03:00
math.html Add KaTeX support (#164) 2019-04-01 20:14:19 -03:00
series.html replace .URL with .RelPermalink (#176) 2019-05-01 14:01:25 -03:00