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 e66f68652e Keep Blog nav active on blog taxonomy pages (#1377)
e66f68652e is described below

commit e66f68652eed336f3a2dc812df50f7a5b865db87
Author: Shashiranjan singh <[email protected]>
AuthorDate: Thu Jan 8 01:21:59 2026 +0530

    Keep Blog nav active on blog taxonomy pages (#1377)
---
 landing-pages/site/layouts/partials/navbar.html | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/landing-pages/site/layouts/partials/navbar.html 
b/landing-pages/site/layouts/partials/navbar.html
index 84e037a310..244a45bf7d 100644
--- a/landing-pages/site/layouts/partials/navbar.html
+++ b/landing-pages/site/layouts/partials/navbar.html
@@ -63,7 +63,10 @@
             {{ range $index, $el := .Site.Menus.main }}
                 {{ $active := or ($p.IsMenuCurrent "main" $el) 
($p.HasMenuCurrent "main" $el) }}
                 {{ with $el.Page }}
-                    {{ $active = or $active ( $.IsDescendant .)  }}
+                    {{ $active = or $active ( $.IsDescendant .) }}
+                    {{ if and (eq $el.Name "Blog") (strings.HasPrefix 
$.RelPermalink "/blog/") }}
+                        {{ $active = true }}
+                    {{ end }}
                 {{ end }}
                 {{ $url := urls.Parse $el.URL }}
                 {{ $baseurl := urls.Parse $.Site.Params.Baseurl }}

Reply via email to