feat: add single page template with responsive image layout and back navigation
This commit is contained in:
parent
f42782baf2
commit
2383967e15
@ -13,8 +13,8 @@
|
||||
<img src="{{ .Params.image }}" alt="{{ .Title }}" class="detail-image">
|
||||
</div>
|
||||
{{ else }}
|
||||
<div class="detail-image-placeholder" style="background-color:{{ if eq .Params.category "Books" }}#004d40{{ else if eq .Params.category "Movies" }}#01579b{{ else if eq .Params.category "TV Series" }}#4a148c{{ else if eq .Params.category "Recipes" }}#b71c1c{{ else if eq .Params.category "YouTube" }}#f44336{{ else }}#546e7a{{ end }}">
|
||||
<div class="placeholder-initial">{{ substr .Title 0 1 }}</div>
|
||||
<div class="detail-image-container"> <!-- Using the same container as the main image -->
|
||||
<img src="/images/no-cover-available-yet.png" alt="{{ .Title }} - No cover available" class="detail-image"> <!-- Reusing detail-image class -->
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
|
||||
BIN
static/img/no-cover-available-yet.png
Normal file
BIN
static/img/no-cover-available-yet.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 MiB |
Loading…
x
Reference in New Issue
Block a user