Added loading message
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user