From fde432a75a4f49e3ea089157dfcd2f7097c36e3f Mon Sep 17 00:00:00 2001 From: Sbragul26 Date: Thu, 21 May 2026 08:43:15 +0530 Subject: [PATCH 1/5] fix(videos): fix active tab on direct navigation Signed-off-by: Sbragul26 --- .../partials/video-category-navigation.html | 47 +++++++++++++++++++ layouts/video/baseof.html | 1 + 2 files changed, 48 insertions(+) create mode 100644 layouts/partials/video-category-navigation.html diff --git a/layouts/partials/video-category-navigation.html b/layouts/partials/video-category-navigation.html new file mode 100644 index 00000000000..ab88642968f --- /dev/null +++ b/layouts/partials/video-category-navigation.html @@ -0,0 +1,47 @@ +{{ $pathToHashMap := dict }} +{{ $videos := .Site.GetPage "section" "videos" }} +{{ if $videos }} + {{ range $mainIndex, $mainSection := $videos.Sections }} + {{ $mainPath := $mainSection.RelPermalink }} + {{ if not (hasPrefix $mainPath "/") }} + {{ $mainPath = "/" | add $mainPath }} + {{ end }} + {{ $pathToHashMap = merge $pathToHashMap (dict $mainPath (printf "category-%d-subcategory-0" $mainIndex)) }} + {{ range $subIndex, $subSection := $mainSection.Sections }} + {{ $subPath := $subSection.RelPermalink }} + {{ if not (hasPrefix $subPath "/") }} + {{ $subPath = "/" | add $subPath }} + {{ end }} + {{ $pathToHashMap = merge $pathToHashMap (dict $subPath (printf "category-%d-subcategory-%d" $mainIndex $subIndex)) }} + {{ end }} + {{ end }} +{{ end }} + + + + + diff --git a/layouts/video/baseof.html b/layouts/video/baseof.html index 395dec3e888..7f988f54859 100644 --- a/layouts/video/baseof.html +++ b/layouts/video/baseof.html @@ -32,6 +32,7 @@ {{ partial "footer.html" . }} + {{partial "video-category-navigation.html" .}} {{ partial "scripts.html" . }} {{ partial "image-modal.html" . }} From d995b17184c832f3db9e08dc43e42802f4e6c9a4 Mon Sep 17 00:00:00 2001 From: Sbragul26 Date: Thu, 21 May 2026 13:13:27 +0530 Subject: [PATCH 2/5] fix: navigation URL and footer flicker issue Signed-off-by: Sbragul26 --- assets/scss/_video-landing_project.scss | 14 +++++++ layouts/partials/video-landing-page.html | 53 ++++++++++-------------- 2 files changed, 36 insertions(+), 31 deletions(-) diff --git a/assets/scss/_video-landing_project.scss b/assets/scss/_video-landing_project.scss index 5123f6c4751..d61c214af3e 100644 --- a/assets/scss/_video-landing_project.scss +++ b/assets/scss/_video-landing_project.scss @@ -241,6 +241,20 @@ a#videoPageLink:focus { margin-bottom: 2rem; } +.video-grid-container { + position: relative; + min-height: 500px; + transition: min-height 0.15s ease; +} + +.video-group { + position: absolute; + width: 100%; + opacity: 0; + pointer-events: none; + transition: opacity 0.15s ease; +} + .video-card { background-color: rgba(18,18,18,1); border-radius: 12px; diff --git a/layouts/partials/video-landing-page.html b/layouts/partials/video-landing-page.html index 650b8749331..ce32da09315 100644 --- a/layouts/partials/video-landing-page.html +++ b/layouts/partials/video-landing-page.html @@ -7,7 +7,7 @@
{{ $currentPage := . }} {{ range $index, $section := $videoContentDir.Sections }} - +
{{ if .Params.icon }} {{ if hasPrefix .Params.icon "bi" }} @@ -32,14 +32,14 @@ {{ if gt (len .Sections) 0 }} {{ range $subIndex, $subSection := .Sections }} - {{ .Title }} {{ end }} {{ else }} - All @@ -55,7 +55,7 @@ {{ range $mainIndex, $mainSection := $videoContentDir.Sections }} {{ range $subIndex, $subSection := .Sections }} -