Add quick look section to reviews
This commit is contained in:
parent
94bee36cfe
commit
8e789d68ab
10 changed files with 167 additions and 60 deletions
25
layouts/reviews/single.html
Normal file
25
layouts/reviews/single.html
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{{ define "main" }}
|
||||
<article class="review">
|
||||
<header>
|
||||
<h1>{{- .Title -}}</h1>
|
||||
{{ if .Params.image }}
|
||||
<img src={{.Params.image}} alt="Poster">
|
||||
{{ end }}
|
||||
{{ partial "quicklook.html" . }}
|
||||
{{ 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 -}}
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue