From 69d41816e0116aaaacb208dd2ab9463ffd5d6267 Mon Sep 17 00:00:00 2001 From: mtail Date: Sat, 16 Jun 2018 17:25:36 -0700 Subject: [PATCH] Improve the gear menu. Simplify the menu. We don't/can't list all old releases, it takes too much room and overflows the screen on mobile. We now have a more useful set, --- i18n/en.toml | 12 ++++++++++++ layouts/partials/header.html | 28 +++++++++++++++++++--------- 2 files changed, 31 insertions(+), 9 deletions(-) diff --git a/i18n/en.toml b/i18n/en.toml index 16804fd0d5..2d0e842a4b 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -43,6 +43,18 @@ other = "Light Theme" [dark_theme] other = "Dark Theme" +[other_versions_of_site] +other = "Other versions of this site" + +[current_release] +other = "Current Release (%s)" + +[next_release] +other = "Next Release (Preliminary %s)" + +[archived_releases] +other = "Older Releases" + [options_menu] other = "Options and Settings" diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 5b46edd146..43525d5f62 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,8 +1,5 @@ {{ $posts := (where .Site.Pages "Section" "blog").ByPublishDate.Reverse }} {{ $latest_post := index $posts 0 }} -{{ $version := .Site.Data.args.version }} - -{{/* TODO: Need to set the specialized targets for the dropdown menu versions */}}