commit | 40f4908e4524cf7719f5bfc4e080608c1b56973b | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@google.com> | Fri Feb 26 14:24:51 2021 -0500 |
committer | Russ Cox <rsc@google.com> | Fri Feb 26 14:24:51 2021 -0500 |
tree | 5a96a53fce78b9f60d44f11b2c32b6ac885db7c9 | |
parent | 78721852afb8dc52f2839dd983777b89c04d89fa [diff] |
[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
This repository holds the Go Website server code and content.
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
.
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.