Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
webdev51 committed Aug 2, 2023
1 parent c07bc89 commit ec333c3
Show file tree
Hide file tree
Showing 7 changed files with 272 additions and 0 deletions.
12 changes: 12 additions & 0 deletions content/en/academy/_index.md
Original file line number Diff line number Diff line change
@@ -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
---
8 changes: 8 additions & 0 deletions content/en/academy/course-1/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: "Course 1"
linkTitle: "Course 1"
weight: 6
description: >
Course short description here
type: academy
---
10 changes: 10 additions & 0 deletions content/en/academy/course-1/lesson-1/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: "Lesson 1"
linkTitle: "Lesson 1"
weight: 6
description: >
Lesson short description
type: lessons
---

Lesson content here
10 changes: 10 additions & 0 deletions content/en/academy/course-1/lesson-2/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: "Lesson 2"
linkTitle: "Lesson 2"
weight: 6
description: >
Lesson short description
type: lessons
---

Lesson content here
85 changes: 85 additions & 0 deletions layouts/academy/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<!doctype html>
<html itemscope itemtype="http://schema.org/WebPage" lang="{{ .Site.Language.Lang }}" class="no-js">
<head>
{{ partial "head.html" . }}
</head>
<body class="td-{{ .Kind }}{{ with .Page.Params.body_class }} {{ . }}{{ end }}">
<header>
{{ partial "navbar.html" . }}
</header>
<div class="container-fluid td-outer">
<div class="td-main">
<div class="row flex-xl-nowrap">
<aside class="col-12 col-md-3 col-xl-2 td-sidebar d-print-none">
{{ partial "sidebar.html" . }}
</aside>
<aside class="d-none d-xl-block col-xl-2 td-sidebar-toc d-print-none">
{{ partial "page-meta-links.html" . }}
{{ partial "toc.html" . }}
{{ partial "taxonomy_terms_clouds.html" . }}
</aside>
<main class="col-12 col-md-9 col-xl-8 pl-md-5" role="main">
{{ partial "version-banner.html" . }}
{{ if not .Site.Params.ui.breadcrumb_disable }}{{ partial "breadcrumb.html" . }}{{ end }}
<div class="td-content">
<h1>{{ .Title }}</h1>
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
{{ .Content }}

<div class="section-index">
{{ $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 */}}
<ul>
{{ range $pages }}
{{ $manualLink := cond (isset .Params "manuallink") .Params.manualLink ( cond (isset .Params "manuallinkrelref") (relref . .Params.manualLinkRelref) .RelPermalink) }}
<li><a href="{{ $manualLink }}"{{ with .Params.manualLinkTitle }} title="{{ . }}"{{ end }}{{ with .Params.manualLinkTarget }} target="{{ . }}"{{ if eq . "_blank" }} rel="noopener"{{ end }}{{ end }}>{{- .Title -}}</a></li>
{{ end }}
</ul>
{{ else }}
{{/* Otherwise we show a nice formatted list of subpages with page descriptions */}}
<hr class="panel-line">
{{ range $pages }}
{{ $manualLink := cond (isset .Params "manuallink") .Params.manualLink ( cond (isset .Params "manuallinkrelref") (relref . .Params.manualLinkRelref) .RelPermalink) }}
<div class="entry">
<div class="row">
<div class="col">
<h5>
<a href="{{ $manualLink }}"{{ with .Params.manualLinkTitle }} title="{{ . }}"{{ end }}{{ with .Params.manualLinkTarget }} target="{{ . }}"{{ if eq . "_blank" }} rel="noopener"{{ end }}{{ end }}>{{- .Title -}}</a>
</h5>
<p>{{ .Description | markdownify }}</p>
</div>
</div>
</div>
{{ end }}
{{ end }}
</div>

{{ if (.Site.DisqusShortname) }}
<br />
{{ partial "disqus-comment.html" . }}
{{ end }}
{{ partial "page-meta-lastmod.html" . }}
</div>
</main>
</div>
</div>
{{ partial "footer.html" . }}
</div>
{{ partial "scripts.html" . }}
</body>
<style>
.social-share > .reading-time {
display: flex;
align-items: center;
margin: 0;
}
</style>
</html>
77 changes: 77 additions & 0 deletions layouts/academy/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<!doctype html>
<html itemscope itemtype="http://schema.org/WebPage" lang="{{ .Site.Language.Lang }}" class="no-js">
<head>
{{ partial "head.html" . }}
</head>
<body class="td-{{ .Kind }}{{ with .Page.Params.body_class }} {{ . }}{{ end }}">
<header>
{{ partial "navbar.html" . }}
</header>
<div class="container-fluid td-outer">
<div class="td-main">
<div class="row flex-xl-nowrap">
<aside class="col-12 col-md-3 col-xl-2 td-sidebar d-print-none">
{{ partial "sidebar.html" . }}
</aside>
<aside class="d-none d-xl-block col-xl-2 td-sidebar-toc d-print-none">
{{ partial "page-meta-links.html" . }}
{{ partial "toc.html" . }}
{{ partial "taxonomy_terms_clouds.html" . }}
</aside>
<main class="col-12 col-md-9 col-xl-8 pl-md-5" role="main">
{{ partial "version-banner.html" . }}
{{ if not .Site.Params.ui.breadcrumb_disable }}{{ partial "breadcrumb.html" . }}{{ end }}
<div class="td-content">
<h1>{{ .Title }}</h1>
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
{{ if and (.GitInfo) (.Site.Params.github_repo) -}}
<div class="text-muted d-flex align-items-center social-share" style="gap: 0.75rem;">
{{ T "post_last_mod" }} {{ .Lastmod.Format .Site.Params.time_format_default -}}
<div></div>
{{ partial "taxonomy_terms_article_wrapper.html" . }}
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) }}
{{ partial "reading-time.html" . }}
{{ end }}
<div></div>
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-share-alt"></i>
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="https://twitter.com/intent/tweet?url=https%3A%2F%2Fdocs.localstack.cloud{{.RelPermalink}}"><i style="width: 20px" class="fab fa-twitter"></i> Share on Twitter</a>
<!-- <a class="dropdown-item" href="https://www.facebook.com/sharer.php?u=https%3A%2F%2Flocalstack.cloud{{.Permalink}}"><i style="width: 20px" class="fab fa-facebook"></i> Share on Facebook</a> -->
<a class="dropdown-item" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fdocs.localstack.cloud{{.RelPermalink}}"><i style="width: 20px" class="fab fa-linkedin"></i> Share on LinkedIn</a>
</div>
</div>
</div>{{ end -}}
<hr class="mb-5"/>
<ul>
{{ range .Data.Pages }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
<br />
{{ end }}
{{ if (.Site.Params.DisqusShortname) }}
<br />
{{ partial "disqus-comment.html" . }}
{{ end }}
{{ partial "page-meta-lastmod.html" . }}
</div>
</main>
</div>
</div>
{{ partial "footer.html" . }}
</div>
{{ partial "scripts.html" . }}
</body>
<style>
.social-share > .reading-time {
display: flex;
align-items: center;
margin: 0;
}
</style>
</html>
70 changes: 70 additions & 0 deletions layouts/lessons/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<!doctype html>
<html itemscope itemtype="http://schema.org/WebPage" lang="{{ .Site.Language.Lang }}" class="no-js">
<head>
{{ partial "head.html" . }}
</head>
<body class="td-{{ .Kind }}{{ with .Page.Params.body_class }} {{ . }}{{ end }} lesson">
<div class="container-fluid td-outer">
<div class="td-main">
<div class="row flex-xl-nowrap">
<aside class="col-12 col-md-3 col-xl-2 td-sidebar d-print-none">
{{ partial "sidebar.html" . }}
</aside>
<aside class="d-none d-xl-block col-xl-2 td-sidebar-toc d-print-none">
{{ partial "page-meta-links.html" . }}
{{ partial "toc.html" . }}
{{ partial "taxonomy_terms_clouds.html" . }}
</aside>
<main class="col-12 col-md-9 col-xl-8 pl-md-5" role="main">
{{ partial "version-banner.html" . }}
{{ if not .Site.Params.ui.breadcrumb_disable }}{{ partial "breadcrumb.html" . }}{{ end }}
<div class="td-content">
<h1>{{ .Title }}</h1>
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
{{ if and (.GitInfo) (.Site.Params.github_repo) -}}
<div class="text-muted d-flex align-items-center social-share" style="gap: 0.75rem;">
{{ T "post_last_mod" }} {{ .Lastmod.Format .Site.Params.time_format_default -}}
<div></div>
{{ partial "taxonomy_terms_article_wrapper.html" . }}
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) }}
{{ partial "reading-time.html" . }}
{{ end }}
<div></div>
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-share-alt"></i>
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="https://twitter.com/intent/tweet?url=https%3A%2F%2Fdocs.localstack.cloud{{.RelPermalink}}"><i style="width: 20px" class="fab fa-twitter"></i> Share on Twitter</a>
<!-- <a class="dropdown-item" href="https://www.facebook.com/sharer.php?u=https%3A%2F%2Flocalstack.cloud{{.Permalink}}"><i style="width: 20px" class="fab fa-facebook"></i> Share on Facebook</a> -->
<a class="dropdown-item" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fdocs.localstack.cloud{{.RelPermalink}}"><i style="width: 20px" class="fab fa-linkedin"></i> Share on LinkedIn</a>
</div>
</div>
</div>{{ end -}}
<hr class="mb-5"/>
{{.Content}}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
<br />
{{ end }}
{{ if (.Site.Params.DisqusShortname) }}
<br />
{{ partial "disqus-comment.html" . }}
{{ end }}
{{ partial "page-meta-lastmod.html" . }}
</div>
</main>
</div>
</div>
{{ partial "footer.html" . }}
</div>
{{ partial "scripts.html" . }}
</body>
<style>
.social-share > .reading-time {
display: flex;
align-items: center;
margin: 0;
}
</style>
</html>

0 comments on commit ec333c3

Please sign in to comment.