Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemoralespou committed Oct 15, 2024
1 parent ccae33f commit 67c3e7d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
7 changes: 4 additions & 3 deletions data/en/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ logo:
favicon: "/images/site/favicon.png"

projectInfo:
github: https://github.com/educates
github: https://github.com/vmware-tanzu-labs/educates-training-platform
github-org: https://github.com/educates
slack: slack.educates.dev
docs: https://docs.educates.dev

Expand All @@ -22,12 +23,12 @@ maintainers:
email: "[email protected]"
github: grahamdumpletong
image: "/images/author/graham.jpeg"
position: "Project Lead"
position: "Project Lead Engineer"
- name: "Jorge Morales"
email: "[email protected]"
github: jorgemoralespou
image: "/images/author/jorge.jpeg"
position: "Product Manager and Developer"
position: "Project Manager and Engineer"

# some summary about the project. These will show as carrousel in the landing page
summary:
Expand Down
4 changes: 4 additions & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ <h5>{{ i18n "useful_links" }}</h5>
<li><a href={{ printf "%s" $value }} target="_blank" rel="noopener">
<span><i class="fab fa-slack"></i></span> <span>{{ $value }}</span>
</a></li>
{{ else if (eq $key "github-org") }}
<li><a href={{ printf "%s" $value }} target="_blank" rel="noopener">
<span><i class="fab fa-github"></i></span> <span>{{ $value }}</span>
</a></li>
{{ else if (eq $key "github") }}
<li><a href={{ printf "%s" $value }} target="_blank" rel="noopener">
<span><i class="fab fa-github"></i></span> <span>{{ $value }}</span>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/sections/intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
</span>
</div>
<div class="col-md-6 right-half d-flex justify-content-center align-items-center">
<video controls class="video" autoplay >
<video controls class="video" autoplay loop>
<source src="videos/screencast.webm" type="video/webm">
Your browser does not support the video tag.
</video>
Expand Down
5 changes: 3 additions & 2 deletions layouts/shortcodes/video.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{ $src := .Get "src" }}
{{ $type := .Get "type" }}
{{ $autoplay := .Get "autoplay" | default "false" }}
{{ $autoplay := .Get "autoplay" | default "true" }}
{{ $loop := .Get "loop" | default "true" }}
{{/*
A page can have multiple videos. We need to generate unique id for them.
Here, we are generating a sequence from 1 to 200 and taking the first element after a shuffle.
Expand All @@ -9,6 +10,6 @@
*/}}
{{ $randNumber := index (seq 200 | shuffle) 0 }}

<video class="video-player" id="video-{{ $randNumber }}" playsinline controls {{ if eq $autoplay "true" }}autoplay{{ end }}>
<video class="video-player" id="video-{{ $randNumber }}" playsinline controls {{ if eq $autoplay "true" }}autoplay{{ end }} {{ if eq $loop "true" }}loop{{ end }}>
<source src="{{ $src }}" type="{{ $type | default "video/mp4" }}" />
</video>

0 comments on commit 67c3e7d

Please sign in to comment.