From cbd24723f5e2232966bd94d3a2371a1d22ae62ca Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 9 Nov 2021 15:44:24 -0500 Subject: go.dev/_content: various formatting fixes Add a standard 1rem margin above and below key block elements like h1, h2, ..., ol, ul, p. Today it's very inconsistent and because you get a margin from either the block above or below, it mostly works out, except in certain cases where text gets jammed together a bit too much. Add the auto-TOC generator for use in layouts that define #nav (nothing yet, but golang.org-migrated pages will). Add "Table of Contents" to the top of the TOC. Allow pages to opt out of the TOC by setting HideTOC in their metadata. Make subtitle heading (Version of Jan 1, 2021) line up horizontally with the TOC. Preparation for the golang.org -> go.dev move. Change-Id: Ic9121e5b636155c54e487bcb735ac0bc3f958733 Reviewed-on: https://go-review.googlesource.com/c/website/+/362502 Trust: Russ Cox Reviewed-by: Jamal Carvalho --- _content/doc/tutorial/getting-started.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '_content/doc/tutorial/getting-started.html') diff --git a/_content/doc/tutorial/getting-started.html b/_content/doc/tutorial/getting-started.html index 2946f272..6ca9e43c 100644 --- a/_content/doc/tutorial/getting-started.html +++ b/_content/doc/tutorial/getting-started.html @@ -127,11 +127,11 @@ go: creating new go.mod: module example/hello
  • - In your text editor, create a file hello.go in which to write your code. +

    In your text editor, create a file hello.go in which to write your code.

  • - Paste the following code into your hello.go file and save the file. +

    Paste the following code into your hello.go file and save the file.

     package main
    @@ -170,7 +170,7 @@ func main() {
       
  • - Run your code to see the greeting. +

    Run your code to see the greeting.

     $ go run .
    -- 
    cgit v1.3-5-g9baa