From 11187d51e256ba218e7ab3ebb6ed9172c19f4fe8 Mon Sep 17 00:00:00 2001 From: Parker Lougheed Date: Wed, 15 Jan 2025 06:58:18 +0800 Subject: [PATCH] Only surface prev and next buttons at bottom of page (#6330) An alternative to https://github.com/dart-lang/site-www/pull/6316 that removes the previous and next page buttons at the top of each page, keeping the buttons at the bottom. This fits the primary purpose of the buttons and eases the transition to future site designs, which will overhaul this anyway. Closes https://github.com/dart-lang/site-www/pull/6316 Contribute to https://github.com/dart-lang/site-www/issues/5768 --- src/_layouts/default.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/_layouts/default.html b/src/_layouts/default.html index 0b619c7872..0f6dbe2205 100644 --- a/src/_layouts/default.html +++ b/src/_layouts/default.html @@ -19,7 +19,6 @@ {% endif -%}
- {% include 'navigation-sub.html' -%}
{% if underscore_breaker_titles -%}

{{title | underscoreBreaker}}

@@ -34,7 +33,7 @@

{{title }}

{% include 'navigation-toc-top.html', tocContents:tocContents -%} {% endif -%} {{ content }} - {% include 'navigation-sub.html' -%} + {% render 'navigation-sub.html', prevpage:prevpage, nextpage:nextpage %} {% include 'page-github-links.html' -%}