diff options
Diffstat (limited to 'themes/flog/layouts/_default/single.html')
| -rw-r--r-- | themes/flog/layouts/_default/single.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/themes/flog/layouts/_default/single.html b/themes/flog/layouts/_default/single.html index e6be8ee..44bdae9 100644 --- a/themes/flog/layouts/_default/single.html +++ b/themes/flog/layouts/_default/single.html @@ -8,6 +8,18 @@ {{ end }} <h1 itemprop="headline" class="header">{{ .Title }}</h1> <span><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "02.01.2006" }}</time></span> + {{ if .Params.rating }} + <div class="center right"> + <i class="material-icons"> + {{ range seq .Params.rating }} + star + {{ end }} + {{ range seq (sub 5 (int .Params.rating)) }} + star_border + {{ end }} + </i> + </div> + {{ end }} <section itemprop="articleBody" class="flow-text"> {{ .Content }} </section> |
