-
Notifications
You must be signed in to change notification settings - Fork 0
/
portfolio.html
41 lines (39 loc) · 1.2 KB
/
portfolio.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
---
title: Portfolio
layout: base
pagination:
data: collections.portfolio
size: 5
alias: portfolio
reverse: true
permalink: "portfolio/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber | plus: 1 }}{% endif %}/"
bodyClass: portfolio
---
{% for project in portfolio %}
<article class="article | flow">
<header>
<h2>
<a href="{{ project.url }}" class="brand">{{ project.data.title }}</a>
</h2>
Posted
<time datetime="{{ project.date | toISOString }}">
{{ project.date | toUTCString }}
</time>
</header>
<a href="{{ project.url }}" class="brand">
{% image project.data.image project.data.imageAlt %}
</a>
<p>{{ project.data.overview }}</p>
</article>
{% endfor %} {% if pagination.pages.length > 1 %}
<!-- Pagination links -->
<nav class="pagination">
<a href="{{ pagination.href.first }}">First</a> ▪ {% if
pagination.href.previous %}
<a href="{{ pagination.href.previous }}">Previous</a> ▪ {% endif %} Page: {{
pagination.pageNumber | plus: 1 }} of {{ pagination.pages.length }} {% if
pagination.href.next %} ▪ <a href="{{ pagination.href.next }}">Next</a> {%
endif %} ▪
<a href="{{ pagination.href.last }}">Last</a>
</nav>
{% endif %}