aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-05-24 22:34:14 -0400
committertdro <tdro@noreply.example.com>2022-05-24 22:34:14 -0400
commitc22be9bf36fae787683e0fe85b62ee551082ad64 (patch)
tree6faf52ef80ec8b86a235118008d597afd90c7f32
parent572526bca198fa8e1a5054537299056f0b0a7579 (diff)
downloadcanory-c22be9bf36fae787683e0fe85b62ee551082ad64.tar.gz
canory-c22be9bf36fae787683e0fe85b62ee551082ad64.tar.bz2
canory-c22be9bf36fae787683e0fe85b62ee551082ad64.zip
themes/default/layouts/_default/section: Use current section link
Style tabs based on nested section route.
-rw-r--r--themes/default/layouts/_default/section.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/themes/default/layouts/_default/section.html b/themes/default/layouts/_default/section.html
index 656b36d..cc99684 100644
--- a/themes/default/layouts/_default/section.html
+++ b/themes/default/layouts/_default/section.html
@@ -2,7 +2,8 @@
<style>
{{ partial "styles-navigator.html" (dict "Link" "/") | safeCSS }}
- tab-list a[href="{{ .Site.BaseURL }}/{{ partial "author-user.html" . }}"] {
+ tab-list a[href="{{ .CurrentSection.Permalink }}"],
+ tab-list a[href="{{ strings.TrimRight "/" .CurrentSection.Permalink }}"] {
color: #111;
color: var(--foreground);
display: inherit;