Add quick look section to reviews
This commit is contained in:
parent
94bee36cfe
commit
8e789d68ab
10 changed files with 167 additions and 60 deletions
|
|
@ -2,20 +2,6 @@
|
|||
<article>
|
||||
<header>
|
||||
<h1>{{- .Title -}}</h1>
|
||||
{{ if .Params.image }}
|
||||
<img src={{.Params.image}} alt="Poster">
|
||||
{{ end }}
|
||||
{{ if .Params.rating }}
|
||||
<strong>Rating</strong>
|
||||
{{ range seq $.Params.rating }}
|
||||
⭐
|
||||
{{ end }}
|
||||
{{ if lt .Params.rating 5 }}
|
||||
{{ range seq $.Params.rating 4 }}
|
||||
<span style="filter: grayscale(1)">⭐</span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</header>
|
||||
<div>
|
||||
{{- .Content -}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue