From d04b3a8771386c9988be00adda53f0bf542cf269 Mon Sep 17 00:00:00 2001 From: MikDal002 Date: Sat, 16 Oct 2021 10:56:55 +0200 Subject: [PATCH] fix: appropriate back button and menu links for multi-language site (#386) --- layouts/_default/single.html | 2 +- layouts/partials/sidebar/left.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 902fa98..8b21c52 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -29,7 +29,7 @@ {{ define "left-sidebar" }} {{ if (.Scratch.Get "hasTOC") }}
- + {{ (resources.Get "icons/back.svg").Content | safeHTML }} {{ T "article.back" }} diff --git a/layouts/partials/sidebar/left.html b/layouts/partials/sidebar/left.html index c14092f..53a6655 100644 --- a/layouts/partials/sidebar/left.html +++ b/layouts/partials/sidebar/left.html @@ -29,7 +29,7 @@ {{ end }} {{ end }} -

{{ .Site.Title }}

+

{{ .Site.Title }}

{{ .Site.Params.sidebar.subtitle }}

@@ -39,7 +39,7 @@ {{ $active := or (eq $currentPage.Title .Name) (or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .)) }}
  • - + {{ if .Pre }} {{ partial "helper/icon" .Pre }} {{ end }}