diff --git a/scripts/generate-site.csx b/scripts/generate-site.csx index 6c246c7..e98ea10 100755 --- a/scripts/generate-site.csx +++ b/scripts/generate-site.csx @@ -37,6 +37,22 @@ private class Series { public string TitleEncoded { get => WebUtility.HtmlEncode(Title); } + + public string HtmlDescription { + get { + var sb = new StringBuilder(); + if (!string.IsNullOrEmpty(Description)) { + sb.AppendLine("

"); + sb.AppendLine(string.Join("

", + Description.Split("\n") + .Where(l => !string.IsNullOrWhiteSpace(l)) + .Select(l => WebUtility.HtmlEncode(l)))); + sb.AppendLine("

"); + } + + return sb.ToString(); + } + } } private class Episode { @@ -229,7 +245,8 @@ private void GenerateSeriesDetailsFragment(Series series) { -
    "); +
    +
      "); foreach (var episode in GetEpisodes(series.Slug)) { sw.Write( @@ -245,7 +262,11 @@ private void GenerateSeriesDetailsFragment(Series series) { "); } - sw.Write("
    "); + sw.Write( + @$"
+ {series.HtmlDescription} + + "); } private void InjectGenreList(IEnumerable genres) { diff --git a/site/partial/home.html b/site/partial/home.html index f142ad5..c5258f7 100644 --- a/site/partial/home.html +++ b/site/partial/home.html @@ -87,6 +87,8 @@

Radiostasis is an open source passion project by Rudis Muiznieks, a software engineer who happens to love Old Time Radio. Radiostasis is a constant work in progress, with many improvements planned for the future. Currently the site is completely free to use—Rudis foots all the bills to host this site on his own—but premium features may be introduced in future updates to help offset some of the costs.

If you have any questions, suggestions, or just want to say hello, feel free to email Rudis at support@radiostasis.com.

Change Log

+

2023-04-05

+

Added series descriptions to the details pages. Descriptions were generated by ChatGPT as summaries of available information on Wikipedia, OTRR write ups on archive.org, the Old Time Radio Catalog, and other websites.

2023-03-26

Initial release with bare-bones series and episodes lists, plus the ability to stream individual episodes.