diff --git a/layouts/partials/card.html b/layouts/partials/card.html index 062cc07..4e18e0f 100644 --- a/layouts/partials/card.html +++ b/layouts/partials/card.html @@ -3,18 +3,7 @@ {{ with .Params.image }} {{ $.Title }} cover {{ else }} - {{ $bgColor := "#546e7a" }} - {{ if eq .Params.category "Books" }}{{ $bgColor = "#004d40" }}{{ end }} - {{ if eq .Params.category "Movies" }}{{ $bgColor = "#01579b" }}{{ end }} - {{ if eq .Params.category "TV Series" }}{{ $bgColor = "#4a148c" }}{{ end }} - {{ if eq .Params.category "Recipes" }}{{ $bgColor = "#b71c1c" }}{{ end }} - {{ if eq .Params.category "YouTube" }}{{ $bgColor = "#f44336" }}{{ end }} -
-
-
{{ substr .Title 0 1 }}
-
{{ .Title }}
-
-
+ {{ $.Title }} - No cover available {{ end }}
{{ .Title }}
{{ with .Params.rating }}
{{ partial "stars.html" (dict "rating" .) }} {{ . }}
{{ end }}