This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 95d71fcb08 Fix navbar active state for survey 2024 (#1399)
95d71fcb08 is described below

commit 95d71fcb084ccbb11632473817b9465b3788676a
Author: Shashiranjan singh <[email protected]>
AuthorDate: Tue Feb 3 23:34:00 2026 +0530

    Fix navbar active state for survey 2024 (#1399)
    
    * Fix active nav survey block
    
    * Fix active nav-survey block
---
 landing-pages/site/layouts/_partials/navbar.html |  3 +++
 landing-pages/site/layouts/partials/navbar.html  | 11 +++++++----
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/landing-pages/site/layouts/_partials/navbar.html 
b/landing-pages/site/layouts/_partials/navbar.html
index 89d54c74a6..fa904245f9 100644
--- a/landing-pages/site/layouts/_partials/navbar.html
+++ b/landing-pages/site/layouts/_partials/navbar.html
@@ -63,6 +63,9 @@
                 {{ if and (eq $el.Name "Blog") (strings.HasPrefix 
$p.RelPermalink "/blog/") }}
                     {{ $active = true }}
                 {{ end }}
+                {{ if and (eq $el.Name "Blog") (strings.HasPrefix 
$.RelPermalink "/blog/airflow-survey-2025/") }}
+                    {{ $active = false }}
+                {{ end }}
                 {{ $url := urls.Parse $el.URL }}
                 {{ $baseurl := urls.Parse $.Site.Params.Baseurl }}
                 <a class="navbar__text-link {{if $active }}active{{end}}"
diff --git a/landing-pages/site/layouts/partials/navbar.html 
b/landing-pages/site/layouts/partials/navbar.html
index 849fb33124..3043c67bb9 100644
--- a/landing-pages/site/layouts/partials/navbar.html
+++ b/landing-pages/site/layouts/partials/navbar.html
@@ -58,10 +58,13 @@
             {{ range $index, $el := .Site.Menus.main }}
                 {{ $active := or ($p.IsMenuCurrent "main" $el) 
($p.HasMenuCurrent "main" $el) }}
                 {{ with $el.Page }}
-                    {{ $active = or $active ( $.IsDescendant .) }}
-                    {{ if and (eq $el.Name "Blog") (strings.HasPrefix 
$.RelPermalink "/blog/") }}
-                        {{ $active = true }}
-                    {{ end }}
+                    {{ $active = or $active ( $.IsDescendant .)  }}
+                {{ end }}
+                {{ if and (eq $el.Name "Blog") (strings.HasPrefix 
$.RelPermalink "/blog/") }}
+                    {{ $active = true }}
+                {{ end }}
+                {{ if and (eq $el.Name "Blog") (strings.HasPrefix 
$.RelPermalink "/blog/airflow-survey-2025/") }}
+                    {{ $active = false }}
                 {{ end }}
                 {{ $url := urls.Parse $el.URL }}
                 {{ $baseurl := urls.Parse $.Site.Params.Baseurl }}

Reply via email to