_content/learn: add a tutorials section
Adds a section with cards for Go tutorials below the
Google Cloud Self-Paced Labs.
Change-Id: I459f5fab9052b84a07ff2509ffbc41c5ff8bdb75
Reviewed-on: https://go-review.googlesource.com/c/website/+/367914
Trust: Jamal Carvalho <jamal@golang.org>
Trust: Nooras Saba <saba@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Julie Qiu <julie@golang.org>
diff --git a/_content/learn/index.md b/_content/learn/index.md
index a5cbe88..495cca5 100644
--- a/_content/learn/index.md
+++ b/_content/learn/index.md
@@ -110,6 +110,23 @@
</div>
</section>
+<section id="tutorials" class="Learn-tutorials">
+ <div class="Container">
+ <div class="Learn-learningResourcesHeader">
+ <h3>Tutorials</h3>
+ </div>
+ <div class="LearnGo-gridContainer">
+ <ul class="Learn-cardList">
+ {{- range first 4 (data "tutorials.yaml") }}
+ <li class="Learn-card">
+ {{- template "learn-card" .}}
+ </li>
+ {{- end}}
+ </ul>
+ </div>
+ </div>
+</section>
+
<section id="featured-books" class="Learn-books">
<div class="Container">
<div class="Learn-learningResourcesHeader">
diff --git a/_content/learn/tutorials.yaml b/_content/learn/tutorials.yaml
new file mode 100644
index 0000000..4c72405
--- /dev/null
+++ b/_content/learn/tutorials.yaml
@@ -0,0 +1,20 @@
+- title: Getting started
+ content: In this tutorial, you'll get a brief introduction to Go programming. Along the way, you will install Go, write some simple "Hello, world" code, use the go command to run your code, use the Go package discovery tool, and call functions of an external module.
+ url: /doc/tutorial/getting-started
+ thumbnail:
+ cta: Tutorial
+- title: Create a module
+ content: This is the first part of a tutorial that introduces a few fundamental features of the Go language. In this tutorial you'll create two modules. The first is a library which is intended to be imported by other libraries or applications. The second is a caller application which will use the first.
+ url: /doc/tutorial/create-module
+ thumbnail:
+ cta: Tutorial
+- title: Developing a web service
+ content: This tutorial introduces the basics of writing a RESTful web service API with Go and the Gin Web Framework. In this tutorial, you will build a RESTful API server with two endpoints.
+ url: https://shell.cloud.google.com/?walkthrough_tutorial_url=https%3A%2F%2Fraw.githubusercontent.com%2Fgolang%2Ftour%2Fmaster%2Ftutorial%2Fweb-service-gin.md&pli=1&show=ide&environment_deployment=ide
+ thumbnail:
+ cta: Interactive Tutorial
+- title: Accessing a relational database
+ content: This tutorial introduces the basics of accessing a relational database with Go and the database/sql package in its standard library. In this tutorial, you’ll create a database, then write code to access the database.
+ url: /doc/tutorial/database-access
+ thumbnail:
+ cta: Tutorial