diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-24 14:04:01 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-24 14:04:01 +0200 |
| commit | 98803eeaea204c2c9205af6edd4933b58d01562f (patch) | |
| tree | 9218572aa354b47abf56e2932944c5c0c2b36463 | |
| parent | a06423f7356a9b6dbb3934f596799dd164adb6f0 (diff) | |
| download | gohugo-theme-ed-98803eeaea204c2c9205af6edd4933b58d01562f.tar.gz | |
Remove no longer needed 'Return to Top' sidebar menu item
| -rw-r--r-- | i18n/en.toml | 3 | ||||
| -rw-r--r-- | i18n/ru.toml | 3 | ||||
| -rw-r--r-- | layouts/partials/sidebar-toc.html | 1 |
3 files changed, 0 insertions, 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 `<a class="sidebar-nav-item" href="%s">%s</a>` site.Home.RelPermalink (i18n "home") | safeHTML }} - {{ $top := printf `<a class="sidebar-nav-item" href="#" data-proofer-ignore>%s</a>` (i18n "top") | safeHTML }} {{ $toc = $toc | replaceRE `id="TableOfContents"` `class="sidebar-nav"` | safeHTML }} {{ $toc = $toc | replaceRE "(<[/]?ul>|<[/]?ol>|<[/]?li>)" "" | safeHTML }} |
