From b6b4937d032480cd05abdfbec17da90c105a3083 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Fri, 25 Jun 2021 15:01:44 +0200 Subject: [PATCH] Add layout w/o js for lyrics display --- Pages/Index.cshtml | 1 + Pages/Shared/_LayoutNojs.cshtml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 Pages/Shared/_LayoutNojs.cshtml diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml index 4acf63a..84f047c 100644 --- a/Pages/Index.cshtml +++ b/Pages/Index.cshtml @@ -8,6 +8,7 @@ return; } @if (Model.Path.EndsWith(".lrc")) { + Layout = "Shared/_LayoutNojs";

@Model.Path

@Html.Raw((await System.IO.File.ReadAllTextAsync("music" + Model.Path)).Replace("\n", "
"))

} diff --git a/Pages/Shared/_LayoutNojs.cshtml b/Pages/Shared/_LayoutNojs.cshtml new file mode 100644 index 0000000..43b576e --- /dev/null +++ b/Pages/Shared/_LayoutNojs.cshtml @@ -0,0 +1,33 @@ + + + + + + + + @ViewData["Title"] + + + + + + + + + + + + + + + + + + + + +
+ @RenderBody() +
+ + \ No newline at end of file