From 7c3245fce03107045cbcc2fc91472d64cb229e97 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Mon, 16 May 2022 20:32:47 +0200 Subject: [PATCH] Add Airflow Summit CTA. (#594) --- .../site/layouts/partials/navbar.html | 18 +++++++++++++++-- .../sphinx_airflow_theme/header.html | 20 ++++++++++++++++--- 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/landing-pages/site/layouts/partials/navbar.html b/landing-pages/site/layouts/partials/navbar.html index 65be4dd208..180cf1911e 100644 --- a/landing-pages/site/layouts/partials/navbar.html +++ b/landing-pages/site/layouts/partials/navbar.html @@ -65,7 +65,20 @@ {{ end }} {{ end }} - {{ with index .Site.Menus.main (sub $menusLen 1) }} +
+ + + + + + + + + + + + + {{ with index .Site.Menus.main (sub $menusLen 1) }} {{ $url := urls.Parse .URL }} {{ $baseurl := urls.Parse $.Site.Params.Baseurl }} @@ -81,6 +94,7 @@ {{ if ne $url.Host $baseurl.Host }}target="_blank" {{ end }}> {{ partial "buttons/button-filled" (dict "text" .Name) }} - {{ end }} + {{ end }} +
{{ end }} diff --git a/sphinx_airflow_theme/sphinx_airflow_theme/header.html b/sphinx_airflow_theme/sphinx_airflow_theme/header.html index f8f1d64554..6c353a6bfb 100644 --- a/sphinx_airflow_theme/sphinx_airflow_theme/header.html +++ b/sphinx_airflow_theme/sphinx_airflow_theme/header.html @@ -62,9 +62,23 @@ {% if not theme_hide_website_buttons %} - - - +
+ + + + + + + + + + + + + + + +
{% endif %}