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

View File

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