PUBLISH: Add favorite star

This commit is contained in:
Campbell Alden 2022-09-02 18:16:54 +09:00
parent 6488acfb56
commit aba362a6d2
12 changed files with 70 additions and 24 deletions

View file

@ -1,6 +1,11 @@
<div class="card">
<div class="card-image">
<img loading="lazy" class="card-image" src={{ .Params.image }} alt="{{- .Title -}}" />
{{ if .Params.favorite }}
<div class="card-favorite-star">
{{ partial "star.html" }}
</div>
{{ end }}
</div>
<section class="card-content">
<header>
@ -14,7 +19,7 @@
<div class="cluster spacing:between">
<div class="cluster s1 align:center">
<img src="{{site.BaseURL}}imdb-logo-small.png" class="icon" alt="imbd logo">
<span class="numbers">{{- .Params.imdb -}}</span>
<span class="numbers">{{- lang.NumFmt 1 .Params.imdb -}}</span>
</div>
<div>
<a class="button" href="{{ .RelPermalink }}">

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="yellow" stroke="gold" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon></svg>

After

Width:  |  Height:  |  Size: 334 B