diff --git a/partials/_accordion_nav.html.erb b/partials/_accordion_nav.html.erb index 627f83a1ff..9cac1c978d 100644 --- a/partials/_accordion_nav.html.erb +++ b/partials/_accordion_nav.html.erb @@ -72,6 +72,13 @@ + <% elsif page[:cookie_prefs] %> + <%# Reopens the PostHog consent banner (posthog-consent.js wires + #footer-cookie-prefs). Rendered only when PostHog is built in; + hidden until the JS un-hides it for in-scope visitors. %> + <% if ENV["POSTHOG_API_KEY"].to_s.strip != "" %> +
  • + <% end %> <% else %>
  • <% if page[:type] == "flyctl" %> diff --git a/partials/_firecracker_nav.html.erb b/partials/_firecracker_nav.html.erb index 42fadff232..1e146282e7 100644 --- a/partials/_firecracker_nav.html.erb +++ b/partials/_firecracker_nav.html.erb @@ -222,7 +222,8 @@ { text: "Open Source", path: "/docs/about/open-source/" }, { text: "Using Our Brand", path: "/docs/about/brand/" }, { text: "Privacy Policy", path: "/legal/privacy-policy/" }, - { text: "Terms of Service", path: "/legal/terms-of-service/" } + { text: "Terms of Service", path: "/legal/terms-of-service/" }, + { text: "Cookie preferences", cookie_prefs: true } ] } ]