Improve the series navigation links

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
Danila Fedorin 2024-05-20 00:34:52 -07:00
parent e4dccd4f48
commit 00431109ac
2 changed files with 3 additions and 1 deletions

View File

@ -333,6 +333,7 @@ figure {
#SeriesNavigation {
margin-top: 1em;
display: flex;
flex-wrap: wrap;
.wrapper {
flex-grow: 1;
@ -354,6 +355,7 @@ figure {
font-size: 1.1em;
display: flex;
align-items: center;
margin-top: 1em;
.feather {
height: 1.25em;

View File

@ -4,7 +4,7 @@
<div class="title-subtitle">
{{ title .direction }} in Series
{{ $divider := .term.Params.divider }}
{{ if $divider }}
{{ if (and $divider (strings.Contains .page.Title $divider)) }}
{{ $rest := after 1 (split .page.Title $divider) }}
<div class="title">{{ delimit $rest $divider }}</div>
{{ else }}