diff --git a/scripts/generate-site.csx b/scripts/generate-site.csx index e98ea10..efd0b66 100755 --- a/scripts/generate-site.csx +++ b/scripts/generate-site.csx @@ -53,6 +53,10 @@ private class Series { return sb.ToString(); } } + + public string TitleFilter { + get => Title.ToLowerInvariant(); + } } private class Episode { @@ -194,7 +198,10 @@ private void GenerateSeriesListFragment( using var outStream = File.Open(path, FileMode.Create); using var sw = new StreamWriter(outStream); sw.Write( - @$"

{WebUtility.HtmlEncode(title)}

+ @$"
+

{WebUtility.HtmlEncode(title)}

+ +
"); foreach (var series in seriesList) { @@ -204,6 +211,7 @@ private void GenerateSeriesListFragment( hx-target='main' hx-push-url='/series/{series.SlugEncoded}' hx-swap='innerHTML show:top' + data-filter='{series.TitleFilter}' title='{series.TitleEncoded}'> cover image diff --git a/site/index.html b/site/index.html index e606cfe..b65dde4 100644 --- a/site/index.html +++ b/site/index.html @@ -89,7 +89,7 @@ -
+