This repository has been archived by the owner on Feb 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
reviews.html
43 lines (37 loc) · 1.7 KB
/
reviews.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
title: Reviews
permalink: "/reviews/"
layout: default
excerpt: Reviews on Brightly Colored.
---
<div class="page">
<header class="page__header page__header--full">
<h1 class="page-header__title" id="page-title">Reviews</h1>
<p class="page-header__description">They say opinions are like buttholes, <em>everyone has one</em>. This page collects my thoughts on movies, products, apps, books, and music.</p>
</header>
<ul class="groups-list groups-list--3-col">
{% assign reviewPosts = site.posts | where_exp: "item", "item.review.type" | group_by_exp: "post", "post.review.type" %}
{% for review in reviewPosts %}
<li>
<a href="#{{ review.name }}">
{{ review.name | capitalize }} Reviews
<span>{{ review.items | size }}</span>
</a>
</li>
{% endfor %}
</ul>
{% assign reviewPosts = site.posts | where_exp: "item", "item.review.type" | group_by_exp: "post", "post.review.type" %}
{% for review in reviewPosts %}
<section class="group-section" id="{{ review.name }}">
<h2 class="group__name">{{ review.name | capitalize }} Reviews<small class="group__count">{{ review.items | size }}</small></h2>
<ul class="group__post-list group__post-list--2-col">
{% for post in review.items %}
<li class="group-post__item group-post__item--bold">
<a href="{{ post.url }}">{{ post.title | caps | widont }} {% if post.review.type %}{% include star-rating.html rating=post.review.rating %}{% endif %}</a><span class="group-post__meta-info">{{ post.date | date: '%b %d'}}</span>
</li>
{% endfor %}
</ul>
<a href="#page-title" class="group__return-home">Back to Top ↑</a>
</section>
{% endfor %}
</div>