Added loading message

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
2025-05-06 14:45:01 +01:00
parent a7c18eea37
commit c29e828d23

View File

@@ -55,6 +55,7 @@
<h1>Next Book</h1> <h1>Next Book</h1>
<p>Suggestions for the next book to read from your Storygraph to-read pile</p> <p>Suggestions for the next book to read from your Storygraph to-read pile</p>
</header> </header>
{{ if index . "Fiction" }}
<main> <main>
{{ $cat := "Fiction" }} {{ $cat := "Fiction" }}
{{ $book := index . $cat }} {{ $book := index . $cat }}
@@ -101,5 +102,10 @@
</div> </div>
{{ end }} {{ end }}
</main> </main>
{{ else }}
<div class="container" style="text-align: center;padding: 4rem;">
<h2>Still loading book recommendations...</h2>
</div>
{{ end }}
</body> </body>
</html> </html>