From ec333c37ba94d581be5c86155f2c2844871a8d28 Mon Sep 17 00:00:00 2001 From: Osama M Date: Wed, 2 Aug 2023 11:32:57 +0500 Subject: [PATCH] Initial commit --- content/en/academy/_index.md | 12 +++ content/en/academy/course-1/_index.md | 8 ++ content/en/academy/course-1/lesson-1/index.md | 10 +++ content/en/academy/course-1/lesson-2/index.md | 10 +++ layouts/academy/list.html | 85 +++++++++++++++++++ layouts/academy/single.html | 77 +++++++++++++++++ layouts/lessons/single.html | 70 +++++++++++++++ 7 files changed, 272 insertions(+) create mode 100644 content/en/academy/_index.md create mode 100644 content/en/academy/course-1/_index.md create mode 100644 content/en/academy/course-1/lesson-1/index.md create mode 100644 content/en/academy/course-1/lesson-2/index.md create mode 100644 layouts/academy/list.html create mode 100644 layouts/academy/single.html create mode 100644 layouts/lessons/single.html diff --git a/content/en/academy/_index.md b/content/en/academy/_index.md new file mode 100644 index 0000000000..744d5460fe --- /dev/null +++ b/content/en/academy/_index.md @@ -0,0 +1,12 @@ +--- +title: "LocalStack Academy" +linkTitle: "LocalStack Academy" +weight: 30 +description: > + Get started with LocalStack! Needs more text +cascade: + type: docs +slug: academy +dev_hub: true +type: academy +--- \ No newline at end of file diff --git a/content/en/academy/course-1/_index.md b/content/en/academy/course-1/_index.md new file mode 100644 index 0000000000..e4f6f438b1 --- /dev/null +++ b/content/en/academy/course-1/_index.md @@ -0,0 +1,8 @@ +--- +title: "Course 1" +linkTitle: "Course 1" +weight: 6 +description: > + Course short description here +type: academy +--- \ No newline at end of file diff --git a/content/en/academy/course-1/lesson-1/index.md b/content/en/academy/course-1/lesson-1/index.md new file mode 100644 index 0000000000..62b39a5b05 --- /dev/null +++ b/content/en/academy/course-1/lesson-1/index.md @@ -0,0 +1,10 @@ +--- +title: "Lesson 1" +linkTitle: "Lesson 1" +weight: 6 +description: > + Lesson short description +type: lessons +--- + +Lesson content here diff --git a/content/en/academy/course-1/lesson-2/index.md b/content/en/academy/course-1/lesson-2/index.md new file mode 100644 index 0000000000..c6af843b37 --- /dev/null +++ b/content/en/academy/course-1/lesson-2/index.md @@ -0,0 +1,10 @@ +--- +title: "Lesson 2" +linkTitle: "Lesson 2" +weight: 6 +description: > + Lesson short description +type: lessons +--- + +Lesson content here diff --git a/layouts/academy/list.html b/layouts/academy/list.html new file mode 100644 index 0000000000..995942ccb9 --- /dev/null +++ b/layouts/academy/list.html @@ -0,0 +1,85 @@ + + + + {{ partial "head.html" . }} + + +
+ {{ partial "navbar.html" . }} +
+
+
+
+ + +
+ {{ partial "version-banner.html" . }} + {{ if not .Site.Params.ui.breadcrumb_disable }}{{ partial "breadcrumb.html" . }}{{ end }} +
+

{{ .Title }}

+ {{ with .Params.description }}
{{ . | markdownify }}
{{ end }} + {{ .Content }} + +
+ {{ $parent := .Page }} + {{ $pages := (where .Site.Pages "Section" .Section).ByWeight }} + {{ $pages = (where $pages "Type" "!=" "search") }} + {{ $pages = (where $pages ".Params.hide_summary" "!=" true) }} + {{ $pages = (where $pages ".Parent" "!=" nil) }} + {{ $pages = (where $pages "Parent.File.UniqueID" "==" $parent.File.UniqueID) }} + {{ if or $parent.Params.no_list (eq (len $pages) 0) }} + {{/* If no_list is true or we don't have subpages we don't show a list of subpages */}} + {{ else if $parent.Params.simple_list }} + {{/* If simple_list is true we show a bulleted list of subpages */}} +
    + {{ range $pages }} + {{ $manualLink := cond (isset .Params "manuallink") .Params.manualLink ( cond (isset .Params "manuallinkrelref") (relref . .Params.manualLinkRelref) .RelPermalink) }} +
  • {{- .Title -}}
  • + {{ end }} +
+ {{ else }} + {{/* Otherwise we show a nice formatted list of subpages with page descriptions */}} +
+ {{ range $pages }} + {{ $manualLink := cond (isset .Params "manuallink") .Params.manualLink ( cond (isset .Params "manuallinkrelref") (relref . .Params.manualLinkRelref) .RelPermalink) }} +
+
+
+
+ {{- .Title -}} +
+

{{ .Description | markdownify }}

+
+
+
+ {{ end }} + {{ end }} +
+ + {{ if (.Site.DisqusShortname) }} +
+ {{ partial "disqus-comment.html" . }} + {{ end }} + {{ partial "page-meta-lastmod.html" . }} +
+
+
+
+ {{ partial "footer.html" . }} +
+ {{ partial "scripts.html" . }} + + + diff --git a/layouts/academy/single.html b/layouts/academy/single.html new file mode 100644 index 0000000000..0ba54c18ec --- /dev/null +++ b/layouts/academy/single.html @@ -0,0 +1,77 @@ + + + + {{ partial "head.html" . }} + + +
+ {{ partial "navbar.html" . }} +
+
+
+
+ + +
+ {{ partial "version-banner.html" . }} + {{ if not .Site.Params.ui.breadcrumb_disable }}{{ partial "breadcrumb.html" . }}{{ end }} +
+

{{ .Title }}

+ {{ with .Params.description }}
{{ . | markdownify }}
{{ end }} + {{ if and (.GitInfo) (.Site.Params.github_repo) -}} + {{ end -}} +
+ + {{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }} + {{ partial "feedback.html" .Site.Params.ui.feedback }} +
+ {{ end }} + {{ if (.Site.Params.DisqusShortname) }} +
+ {{ partial "disqus-comment.html" . }} + {{ end }} + {{ partial "page-meta-lastmod.html" . }} +
+
+
+
+ {{ partial "footer.html" . }} +
+ {{ partial "scripts.html" . }} + + + diff --git a/layouts/lessons/single.html b/layouts/lessons/single.html new file mode 100644 index 0000000000..39c049ea7a --- /dev/null +++ b/layouts/lessons/single.html @@ -0,0 +1,70 @@ + + + + {{ partial "head.html" . }} + + +
+
+
+ + +
+ {{ partial "version-banner.html" . }} + {{ if not .Site.Params.ui.breadcrumb_disable }}{{ partial "breadcrumb.html" . }}{{ end }} +
+

{{ .Title }}

+ {{ with .Params.description }}
{{ . | markdownify }}
{{ end }} + {{ if and (.GitInfo) (.Site.Params.github_repo) -}} + {{ end -}} +
+ {{.Content}} + {{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }} + {{ partial "feedback.html" .Site.Params.ui.feedback }} +
+ {{ end }} + {{ if (.Site.Params.DisqusShortname) }} +
+ {{ partial "disqus-comment.html" . }} + {{ end }} + {{ partial "page-meta-lastmod.html" . }} +
+
+
+
+ {{ partial "footer.html" . }} +
+ {{ partial "scripts.html" . }} + + +