_content: Breadcrumbs added to children pages.
Added to all doc children page with doclayout. Added to Why Go pages. Added to Security pages. Video of Changes: https://drive.google.com/file/d/1wX9e9K9H9wPTaLLQHh15-cWzMTMRr9DO/view?usp=sharing Change-Id: I0fbf8e925e7fa357762d8eebd2bf13d561d49d86 Reviewed-on: https://go-review.googlesource.com/c/website/+/432775 Reviewed-by: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
Родитель
6e1dd4f006
Коммит
78a220a4fa
|
@ -5,6 +5,9 @@
|
|||
<div class="Article-columns">
|
||||
<div class="Article-content">
|
||||
{{end}}
|
||||
{{- if .breadcrumb}}
|
||||
{{ breadcrumbs . }}
|
||||
{{- end}}
|
||||
<h1>{{.title}}</h1>
|
||||
{{.Content}}
|
||||
|
||||
|
|
|
@ -949,6 +949,13 @@ h1 + h2.subtitle {
|
|||
max-width: 75.75rem;
|
||||
padding: 0 0 1rem;
|
||||
}
|
||||
.SiteBreadcrumb {
|
||||
list-style:none;
|
||||
display:flex;
|
||||
align-items:center;
|
||||
padding:0;
|
||||
margin: 1.5rem 0;
|
||||
}
|
||||
.BreadcrumbNav-li {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
|
@ -988,11 +995,6 @@ a.BreadcrumbNav-link {
|
|||
width: 1rem;
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 57.7rem) {
|
||||
.BreadcrumbNav-inner {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
.SubHero-gridContainer,
|
||||
.WhoUses-gridContainer,
|
||||
.Playground-gridContainer,
|
||||
|
@ -2235,7 +2237,7 @@ a.WhoUsesCaseStudy-librariesViewMoreLink {
|
|||
padding-top: 1.125rem;
|
||||
}
|
||||
|
||||
.Learn-heroContent a:not(.js-downloadBtn) {
|
||||
.Learn-heroContent a:not(.js-downloadBtn):not(.BreadcrumbNav-link) {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<!--{
|
||||
"Title": "Writing Web Applications",
|
||||
"Template": true
|
||||
"Template": true,
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<h2>Introduction</h2>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Command Documentation"
|
||||
"Title": "Command Documentation",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<p>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<!--{
|
||||
"Title": "How to Write Go Code",
|
||||
"Template": true
|
||||
"Template": true,
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<h2 id="Introduction">Introduction</h2>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<!--{
|
||||
"Title": "Contribution Guide",
|
||||
"Template": true
|
||||
"Template": true,
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<p>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Accessing relational databases"
|
||||
"Title": "Accessing relational databases",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
Using Go, you can incorporate a wide variety of databases and data access
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Opening a database handle"
|
||||
"Title": "Opening a database handle",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
The [`database/sql`](https://pkg.go.dev/database/sql) package simplifies
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Diagnostics"
|
||||
"Title": "Diagnostics",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<!--
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Editor plugins and IDEs"
|
||||
"Title": "Editor plugins and IDEs",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<h2 id="introduction">Introduction</h2>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<!--{
|
||||
"Title": "Effective Go",
|
||||
"Template": true
|
||||
"Template": true,
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<h2 id="introduction">Introduction</h2>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<!--{
|
||||
"Title": "Frequently Asked Questions (FAQ)",
|
||||
"Sidebar": "faq"
|
||||
"Sidebar": "faq",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<h2 id="Origins">Origins</h2>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<!--{
|
||||
"Title": "A Guide to the Go Garbage Collector",
|
||||
"Path": "/doc/gc-guide"
|
||||
"Path": "/doc/gc-guide",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<!--
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Contributing to the gccgo frontend"
|
||||
"Title": "Contributing to the gccgo frontend",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<h2>Introduction</h2>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Debugging Go Code with GDB"
|
||||
"Title": "Debugging Go Code with GDB",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<!--
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<!--{
|
||||
"Title": "Deprecation of 'go get' for installing executables",
|
||||
"Path": "/doc/go-get-install-deprecation"
|
||||
"Path": "/doc/go-get-install-deprecation",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
## Overview
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Go 1 and the Future of Go Programs"
|
||||
"Title": "Go 1 and the Future of Go Programs",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<h2 id="introduction">Introduction</h2>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "How to Write Go Code (with GOPATH)"
|
||||
"Title": "How to Write Go Code (with GOPATH)",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<h2 id="Introduction">Introduction</h2>
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
<!--{
|
||||
"Title": "Download and install",
|
||||
"HideTOC": true,
|
||||
"Sidebar": "bug"
|
||||
"Sidebar": "bug",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<p>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Setting up and using gccgo"
|
||||
"Title": "Setting up and using gccgo",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<p>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Installing Go from source"
|
||||
"Title": "Installing Go from source",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<p>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Add a test"
|
||||
"Title": "Add a test",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<p>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Call your code from another module"
|
||||
"Title": "Call your code from another module",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<p>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Compile and install the application"
|
||||
"Title": "Compile and install the application",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<p>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Tutorial: Create a Go module"
|
||||
"Title": "Tutorial: Create a Go module",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<p>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Tutorial: Accessing a relational database"
|
||||
"Title": "Tutorial: Accessing a relational database",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
This tutorial introduces the basics of accessing a relational database with
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<!--{
|
||||
"Title": "Tutorial: Getting started with fuzzing",
|
||||
"HideTOC": true
|
||||
"HideTOC": true,
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
This tutorial introduces the basics of fuzzing in Go. With fuzzing, random data
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Tutorial: Getting started with generics"
|
||||
"Title": "Tutorial: Getting started with generics",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
This tutorial introduces the basics of generics in Go. With generics, you can
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Tutorial: Get started with Go"
|
||||
"Title": "Tutorial: Get started with Go",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<p>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Return greetings for multiple people"
|
||||
"Title": "Return greetings for multiple people",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<p>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Return and handle an error"
|
||||
"Title": "Return and handle an error",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<p>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Tutorials"
|
||||
"Title": "Tutorials",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<p>If you're new to a part of Go, take a look at the tutorials linked below.</p>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<!--{
|
||||
"Title": "Conclusion",
|
||||
"Path": "/doc/tutorial/module-conclusion"
|
||||
"Path": "/doc/tutorial/module-conclusion",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<p>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Return a random greeting"
|
||||
"Title": "Return a random greeting",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
<p>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Tutorial: Developing a RESTful API with Go and Gin"
|
||||
"Title": "Tutorial: Developing a RESTful API with Go and Gin",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
This tutorial introduces the basics of writing a RESTful web service API with Go
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Tutorial: Getting started with multi-module workspaces"
|
||||
"Title": "Tutorial: Getting started with multi-module workspaces",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
This tutorial introduces the basics of multi-module workspaces in Go.
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: "Get Started"
|
||||
breadcrumbTitle: "Learn"
|
||||
---
|
||||
|
||||
<section class="Learn-hero">
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
---
|
||||
title: Go Fuzzing
|
||||
layout: article
|
||||
breadcrumb: true
|
||||
---
|
||||
|
||||
[Back to Go Security](/security)
|
||||
|
||||
Go supports fuzzing in its standard toolchain beginning in Go 1.18. Native Go fuzz tests are
|
||||
[supported by OSS-Fuzz](https://google.github.io/oss-fuzz/getting-started/new-project-guide/go-lang/#native-go-fuzzing-support).
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Title": "Go Fuzzing technical details"
|
||||
"Title": "Go Fuzzing technical details",
|
||||
"Breadcrumb": true
|
||||
}-->
|
||||
|
||||
This document provides an overview of the technical details of the native fuzzing implementation, and is intended to be a resource for contributors.
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
---
|
||||
title: Go Security Policy
|
||||
layout: article
|
||||
breadcrumb: true
|
||||
---
|
||||
|
||||
[Back to Go Security](/security)
|
||||
|
||||
## Overview
|
||||
|
||||
This document explains the Go Security team's process for handling issues
|
||||
|
|
|
@ -270,21 +270,19 @@
|
|||
{{- if ne .p1.URL "/"}}
|
||||
{{- breadcrumbnav (page (path.Dir (strings.TrimRight .p1.URL "/"))) .p2}}
|
||||
{{- end}}
|
||||
{{- if not (eq .p1.title "go.dev")}}
|
||||
{{- if not (eq .p1.title "The Go Programming Language")}}
|
||||
<li class="BreadcrumbNav-li {{if eq .p1.URL .p2.URL}}active{{end}}">
|
||||
<a class="BreadcrumbNav-link" href="{{.p1.URL}}">
|
||||
{{or .p1.company .p1.title}}
|
||||
{{or .p1.breadcrumbTitle .p1.title}}
|
||||
</a>
|
||||
</li>
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
|
||||
{{define "breadcrumbs"}}
|
||||
<div class="BreadcrumbNav">
|
||||
<ol class="BreadcrumbNav-inner">
|
||||
<ol class="SiteBreadcrumb">
|
||||
{{breadcrumbnav . .}}
|
||||
</ol>
|
||||
</div>
|
||||
{{- end}}
|
||||
|
||||
{{define "gopher info" -}}
|
||||
|
@ -422,6 +420,11 @@
|
|||
<div class="Article-columns">
|
||||
<div class="Article-content">
|
||||
{{end}}
|
||||
|
||||
{{if .breadcrumb}}
|
||||
{{ breadcrumbs . }}
|
||||
{{end}}
|
||||
|
||||
{{if .title}}
|
||||
<h1>{{.title}}</h1>
|
||||
{{else if eq .layout "error"}}
|
||||
|
|
|
@ -8,6 +8,7 @@ layout: none
|
|||
<div class="GoCarousel" id="SolutionsHeroCarousel-carousel">
|
||||
<div class="GoCarousel-controlsContainer">
|
||||
<div class="GoCarousel-wrapper SolutionsHeroCarousel-wrapper">
|
||||
{{ breadcrumbs . }}
|
||||
<ul class="js-solutionsHeroCarouselSlides SolutionsHeroCarousel-slides">
|
||||
{{- $n := 0}}
|
||||
{{- range newest $solutions}}
|
||||
|
|
Загрузка…
Ссылка в новой задаче