[x/go.dev] layouts/shortcodes: fix gopher.html template parse errors

This doesn't make sense, because each (...) is a bool,
so the first cannot be called as a function taking the second.

	{{if (eq $gopher "front") (eq $gopher "sticker1")}}

I am not sure whether the current web site works with some
older versions of Hugo, but it doesn't work on my machine
with the both v0.59.1 and the latest v0.81.0. It just looks like
it's always been broken, but then I'm confused about how the
web site itself is running.

In any event, this CL fixes the condition, which is clearly meant
to be an "or" of those two:

	{{if or (eq $gopher "front") (eq $gopher "sticker1")}}

But this is needlessly complex too, since eq will do that for us:

	{{if eq $gopher "front" "sticker1"}}

Fixed that condition and simplified a few others.

Now hugo runs successfully.

Change-Id: I02568c4e9331c71107488d44423535186e73e809
X-GoDev-Commit: 189cbf4f05b7bb855a3dc6f95c0acc57a2ba1434
1 file changed
tree: 5a96a53fce78b9f60d44f11b2c32b6ac885db7c9
  1. go.dev/
  2. AUTHORS
  3. CONTRIBUTING.md
  4. CONTRIBUTORS
  5. LICENSE
  6. PATENTS
  7. README.md
README.md

Go Website

This repository holds the Go Website server code and content.

Download/Install

The easiest way to install is to run go get -u golang.org/x/website. You can also manually git clone the repository to $GOPATH/src/golang.org/x/website.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/website:” in the subject line, so it is easy to find.