From 98803eeaea204c2c9205af6edd4933b58d01562f Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 24 Jul 2022 14:04:01 +0200 Subject: Remove no longer needed 'Return to Top' sidebar menu item --- i18n/en.toml | 3 --- i18n/ru.toml | 3 --- layouts/partials/sidebar-toc.html | 1 - 3 files changed, 7 deletions(-) diff --git a/i18n/en.toml b/i18n/en.toml index bbdff71..eb86647 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -1,9 +1,6 @@ [home] other = 'Home' -[top] - other = 'Return to Top' - [more] other = 'Read more...' diff --git a/i18n/ru.toml b/i18n/ru.toml index abddef4..1920721 100644 --- a/i18n/ru.toml +++ b/i18n/ru.toml @@ -1,9 +1,6 @@ [home] other = 'На главную' -[top] - other = 'Вернуться наверх' - [more] other = 'Читать далее...' diff --git a/layouts/partials/sidebar-toc.html b/layouts/partials/sidebar-toc.html index 6306ec4..892eadf 100644 --- a/layouts/partials/sidebar-toc.html +++ b/layouts/partials/sidebar-toc.html @@ -9,7 +9,6 @@ {{ $toc := .Page.TableOfContents }} {{ $home := printf `%s` site.Home.RelPermalink (i18n "home") | safeHTML }} - {{ $top := printf `%s` (i18n "top") | safeHTML }} {{ $toc = $toc | replaceRE `id="TableOfContents"` `class="sidebar-nav"` | safeHTML }} {{ $toc = $toc | replaceRE "(<[/]?ul>|<[/]?ol>|<[/]?li>)" "" | safeHTML }} -- cgit v1.2.3