commit | d8994ffe64f983eb4679e3b2ba0d3e09975152ca | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@google.com> | Mon May 17 11:35:28 2021 -0400 |
committer | Russ Cox <rsc@google.com> | Mon May 24 23:12:15 2021 -0400 |
tree | c7e22572dd6f9baa76f52d15be10a7369c64a90e | |
parent | 2bc36cb117c563b99e2cb7a3454987acfe65b532 [diff] |
[x/go.dev] all: remove use of index.md for single page Hugo uses both a file-per-page and directory-per-page model. For example go.dev/about/ is served from _content/about.md but go.dev/solutions/dropbox/ is served from _content/solutions/dropbox/index.md. This is needlessly complex. Hugo then has the concept of a section of pages, which would naturally correspond with directories, but since directories are already used for single pages, Hugo defines that a section is a directory with an _index.md instead of an index.md. This CL removes all use of index.md for single pages. Then the directory structure and the section structure can be defined to match exactly, and then the _index.md can become plain index.md. A few images moved their URLs, which should not matter since no sites should be linking to our images. And many images were outright deleted, since they were not linked at all (copies in the images directory are linked instead). Now there is no confusion about index.md versus _index.md. Even better, parent and section are easily defined based on the name of the page's file, instead of being dependent on the content of the surrounding file tree. Change-Id: I081d34a26150a550d6fb40d534f0c6befa4901c2 X-GoDev-Commit: 617b6df873f1d3500a3e484233cd51e7fa79c578
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.