generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add /videos #420
Merged
Merged
feat: add /videos #420
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
701cd30
base layout for videos
vishalvivekm 3ee7594
single layout for videos
vishalvivekm f22ae44
list layout for videos
vishalvivekm 3e81273
example video content
vishalvivekm 726e72e
partial to show video on section pages
vishalvivekm 0efa8f1
shortcode: for local videos
vishalvivekm c6794e4
init video content
vishalvivekm e2ff5af
cascase type
vishalvivekm 1ce5446
content: advanced category of videos
vishalvivekm 9b623ae
content: intermediate category of videos
vishalvivekm 6c6ec78
rm
vishalvivekm db35517
update
vishalvivekm 90b20d7
replace kind frontmatter with videoType
vishalvivekm 695451d
update title and description for Getting Started Videos to focus on d…
leecalcote 74a48af
replace YouTube link with shortcode in Getting Started Videos index
leecalcote 9fe5378
update
vishalvivekm 1277d2f
Delete content/en/videos/getting-started/logo directory
vishalvivekm c7bf599
Merge branch 'master' into video
vishalvivekm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Videos | ||
description: > | ||
Videos on Cloud and Kanvas | ||
linkTitle: Videos | ||
type: video | ||
cascade: | ||
type: video | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: Advanced Videos | ||
description: > | ||
Advanced Videos on Cloud and Kanvas | ||
linkTitle: Advanced Videos | ||
weight: 4 | ||
videoGrid: true | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
title: "Local video 1" | ||
description: "Birth of Kanvas logo from Meshery Birth of Kanvas logo from Meshery" | ||
src: "/videos/pattern-import.mp4" | ||
videoType: local | ||
muted: true # optional | ||
autoplay: true # optional | ||
loop: true #optional | ||
--- | ||
|
||
{{< local-video src="/videos/pattern-import.mp4" muted="true" autoplay="true" loop="true" >}} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: Getting Started Videos | ||
description: > | ||
Getting started Video on Cloud and Kanvas | ||
linkTitle: Getting Started | ||
weight: 2 | ||
videoGrid: true | ||
--- |
12 changes: 12 additions & 0 deletions
12
content/en/videos/getting-started/comments/adding-comments.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
title: Reviewing Designs | ||
description: > | ||
Getting Started with Kanvas and Design Reviews | ||
video_id: "bb6J--aApk8" | ||
videoType: youtube # or "local" | ||
muted: true # optional | ||
autoplay: true # optional | ||
loop: true #optional | ||
--- | ||
|
||
{{< youtube bb6J--aApk8 >}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: Intermediate Videos | ||
description: > | ||
Intermediate videos | ||
linkTitle: Intermediate vidoes | ||
weight: 3 | ||
videoGrid: true | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: "Layer5 kanvas Video" | ||
description: "Layer5 kanvas - figma for DevOps. Design, deploy and manage your cloudnative infrastructure." | ||
video_id: "Do7htKrRzDA" | ||
videoType: youtube # or "local" | ||
muted: true # optional | ||
autoplay: true # optional | ||
loop: true #optional | ||
--- | ||
{{< youtube Do7htKrRzDA >}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: "Meshery Playground Teaser Video" | ||
description: "Meshery Playground - Explore features and capabilities of Meshery." | ||
video_id: "Do7htKrRzDA" | ||
videoType: youtube # or "local" | ||
muted: true # optional | ||
autoplay: true # optional | ||
loop: true #optional | ||
--- | ||
{{< youtube Do7htKrRzDA >}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<div class="section-index"> | ||
{{ $page := .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" "!=" nil) -}} | ||
{{ if $page.File -}} | ||
{{ $pages = (where $pages "Parent.File.UniqueID" "==" $page.File.UniqueID) -}} | ||
{{ end -}} | ||
{{ if or $page.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 $page.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 if $page.Params.videoGrid -}} | ||
<div class="container"> | ||
<div class="row"> | ||
{{ range $pages -}} | ||
{{ $manualLink := cond (isset .Params "manuallink") .Params.manualLink ( cond (isset .Params "manuallinkrelref") (relref . .Params.manualLinkRelref) .RelPermalink) }} | ||
<a href="{{ $manualLink }}" | ||
{{ with .Params.manualLinkTitle }} title="{{ . }}"{{ end }} | ||
{{ with .Params.manualLinkTarget }} target="{{ . }}"{{ if eq . "_blank" }} rel="noopener"{{ end }}{{ end }} class="col-md-4 mb-4"> | ||
<!-- <div > --> | ||
<div class="card h-100 bg-dark text-white border border-secondary shadow-lg p-1"> | ||
<div class="video-container position-relative" style="height: max-content; overflow: hidden;"> | ||
{{ if .Params.videoType }} | ||
{{ if eq .Params.videoType "local" }} | ||
<video | ||
src="{{ .Params.src }}" | ||
class="card-img-top w-100 h-100 object-fit-cover" | ||
{{ if .Params.muted }}muted{{ end }} | ||
{{ if .Params.autoplay }}autoplay{{ end }} | ||
{{ if .Params.loop }}loop{{ end }} | ||
controls | ||
></video> | ||
{{ else if eq .Params.videoType "youtube" }} | ||
<div class="ratio ratio-16x9 h-100"> | ||
<img src="https://i.ytimg.com/vi/{{ .Params.video_id }}/maxresdefault.jpg" alt="{{ .Title }}" /> | ||
<!-- <iframe | ||
src="https://www.youtube.com/embed/{{ .Params.video_id }}" | ||
title="{{ .Title }}" | ||
frameborder="0" | ||
class="w-100 h-100" | ||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" | ||
allowfullscreen | ||
></iframe> --> | ||
</div> | ||
{{ end }} | ||
<div class="position-absolute top-0 start-0 w-100 h-100 bg-gradient-overlay"></div> | ||
{{ end }} | ||
</div> | ||
|
||
<div class="card-body"> | ||
<h5 class="card-title">{{ .Title }}</h5> | ||
<p class="card-text" style="margin-top: .5rem;">{{ .Description }}</p> | ||
</div> | ||
</div> | ||
<!-- </div> --> | ||
</a> | ||
{{ end -}} | ||
</div> | ||
</div> | ||
{{ 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"> | ||
<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> | ||
{{ end -}} | ||
{{ end -}} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<video | ||
src="{{ .Get "src" }}" | ||
class="card-img-top w-100 h-100 object-fit-cover" | ||
{{ if .Get "muted" }}muted{{ end }} | ||
{{ if .Get "autoplay" }}autoplay{{ end }} | ||
{{ if .Get "loop" }}loop{{ end }} | ||
controls> | ||
</video> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!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 ps-md-5" role="main"> | ||
{{ partial "version-banner.html" . }} {{ if not | ||
.Site.Params.ui.breadcrumb_disable }}{{ partial "breadcrumb.html" . | ||
}}{{ end }} {{ block "main" . }}{{ end }} | ||
</main> | ||
</div> | ||
</div> | ||
{{ partial "footer.html" . }} | ||
</div> | ||
{{ partial "scripts.html" . }} {{ partial "image-modal.html" . }} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{{ define "main" }} | ||
<div class="td-content"> | ||
<h1>{{ .Title }}</h1> | ||
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }} | ||
<header class="article-meta{{ if or .Params.categories .Params.tags }} article-meta-bg{{ end }}"> | ||
{{ partial "taxonomy_terms_article_wrapper.html" . -}} | ||
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) -}} | ||
{{ partial "reading-time.html" . -}} | ||
{{ end -}} | ||
</header> | ||
{{ with .Params.plan }} | ||
{{ partial "plan-info.html" (dict "plan" .) }} | ||
{{ end }} | ||
{{- partial "feature-info.html" . -}} | ||
{{ .Content }} | ||
{{ partial "video-section-index.html" . -}} | ||
|
||
{{ if (.Site.Config.Services.Disqus.Shortname) -}} | ||
<br /> | ||
{{- partial "disqus-comment.html" . -}} | ||
{{ end -}}{{ partial "pager.html" . }} | ||
{{ partial "page-meta-lastmod.html" . -}} | ||
{{ partial "recent-discussions.html" . -}} | ||
</div> | ||
{{ end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{ define "main" }} | ||
{{ partial "feature-info.html" . }} | ||
{{ .Render "content" }} | ||
<div style="margin-top:2rem;"> | ||
{{ partial "recent-discussions.html" . }} | ||
</div> | ||
{{ end }} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about youtube hosted?