From 3023da9c1e60b75b0b599bb21818cc98e2f5cd7b Mon Sep 17 00:00:00 2001 From: Marc Duiker Date: Tue, 11 Feb 2025 22:14:37 +0100 Subject: [PATCH] New learn page (#137) * New learn page Signed-off-by: Marc Duiker * Update announcement Signed-off-by: Marc Duiker * Update Uni summary Signed-off-by: Marc Duiker * Update footer Signed-off-by: Marc Duiker --------- Signed-off-by: Marc Duiker --- config.toml | 36 ++++++------ content/learn/_index.md | 37 ++++++++++++ data/homepage.yml | 2 +- themes/bigspring/layouts/learn/list.html | 71 ++++++++++++++++++++++++ 4 files changed, 125 insertions(+), 21 deletions(-) create mode 100644 content/learn/_index.md create mode 100644 themes/bigspring/layouts/learn/list.html diff --git a/config.toml b/config.toml index f18a42a..1420368 100644 --- a/config.toml +++ b/config.toml @@ -39,27 +39,9 @@ weight = 1 [[menu.main]] name = "Learn" -identifier = "learn" +URL = "/learn/" weight = 2 -[[menu.main]] -name = "Concepts" -URL = "https://docs.dapr.io/concepts/" -parent = "learn" -weight = 1 - -[[menu.main]] -name = "Getting Started" -URL = "https://docs.dapr.io/getting-started/" -parent = "learn" -weight = 2 - -[[menu.main]] -name = "Quickstarts" -URL = "https://docs.dapr.io/getting-started/quickstarts/" -parent = "learn" -weight = 3 - [[menu.main]] name = "Community" URL = "/community/" @@ -67,7 +49,6 @@ weight = 3 [[menu.main]] name = "Enterprise" - weight = 5 [[menu.main]] @@ -119,6 +100,11 @@ name = "Quickstarts" URL = "https://docs.dapr.io/getting-started/quickstarts/" weight = 3 +[[menu.footer_column1]] +name = "Dapr University" +URL = "https://www.diagrid.io/dapr-university" +weight = 4 + [[menu.footer_column2]] name = "GitHub" URL = "https://github.com/dapr/community" @@ -129,6 +115,16 @@ name = "Discord" URL = "https://bit.ly/dapr-discord" weight = 2 +[[menu.footer_column2]] +name = "YouTube" +URL = "https://www.youtube.com/@daprdev" +weight = 3 + +[[menu.footer_column2]] +name = "LinkedIn" +URL = "https://www.linkedin.com/company/daprdev/" +weight = 4 + [[menu.footer_column3]] name = "Blog" URL = "https://blog.dapr.io/posts" diff --git a/content/learn/_index.md b/content/learn/_index.md new file mode 100644 index 0000000..a26db33 --- /dev/null +++ b/content/learn/_index.md @@ -0,0 +1,37 @@ +--- +title: "Learn Dapr" +description: "Learn to build and run distributed applications with Dapr." +draft: false + +learn: + + - title: "Concepts" + summary: "Learn the core concepts of Dapr through the Dapr docs. Learn about the Dapr runtime, the building block APIs, components, and cross-cutting concerns that Dapr provides out of the box." + cta : + enable : true + label : "Learn the Dapr Concepts" + link : "https://docs.dapr.io/concepts/" + + - title: "Getting Started" + summary: "Use the _Getting Started_ guide in the docs to install Dapr locally and interact with the Dapr sidecar using the State Management API." + cta : + enable : true + label : "Get started with Dapr" + link : "https://docs.dapr.io/getting-started/" + + - title: "Quickstarts" + summary: "Try the different building block APIs by running Dapr applications locally. The Quickstarts are available in multiple languages including .NET, Java, Python, JavaScript, and Go." + cta : + enable : true + label : "Try the Dapr Quickstarts" + link : "https://docs.dapr.io/getting-started/quickstarts/" + + - title: "Dapr University" + summary: "Learn Dapr through Dapr University, a free, self-paced learning program that provides hands-on courses to learn Dapr. It uses a cloud-based sandbox environment, so it requires no local setup, you only need a browser. Dapr University is community sponsored by Diagrid." + cta : + enable : true + label : "Try the Dapr University courses" + link : "https://www.diagrid.io/dapr-university" + + +--- \ No newline at end of file diff --git a/data/homepage.yml b/data/homepage.yml index 87cfefb..7102ad8 100644 --- a/data/homepage.yml +++ b/data/homepage.yml @@ -66,7 +66,7 @@ caseStudy: news: enable : true prefix : "Announcement " - text: "Learn Dapr with Dapr University!" + text: "Learn Dapr with Dapr University, a free and self-paced learning program!" link: "https://www.diagrid.io/dapr-university" #text : "Read about our Dapr Meteors community program!" #link : "https://dapr.io/community/program/" diff --git a/themes/bigspring/layouts/learn/list.html b/themes/bigspring/layouts/learn/list.html new file mode 100644 index 0000000..f60d05c --- /dev/null +++ b/themes/bigspring/layouts/learn/list.html @@ -0,0 +1,71 @@ +{{ define "main" }} + +{{ partial "page-header.html" . }} + +{{ with .Params }} +{{ if .learn }} +
+
+
+ {{ range .learn }} +
+

{{ .title }}

+
+

{{ .summary | markdownify }}

+
+ +
+ {{ end }} +
+
+
+{{ end }} +{{ end }} + + + + +{{ with .Params.panel }} +
+
+

{{ .title | title }}

+ {{with .video}} +
+ +
+ {{end}} +
+
+{{ end }} + + + +{{ with .Params.cta }} +
+
+
+
+ +
+
+

{{ .title | markdownify }}

+ {{with .content }}

{{ . | markdownify }}

{{ end }} + {{ if .button.enable }} + {{ with .button }} + + {{ end }} + {{ end }} +
+
+
+
+{{ end }} + + +{{ end }} \ No newline at end of file