-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.html
40 lines (35 loc) · 1.29 KB
/
blog.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
---
layout: layouts/default
title: Posts - Mark's Blog
subtitle: A few of my thoughts.
pagination:
data: collections.blogPages
size: 1
alias: tag
permalink: /blog/{% if tag.pageNumber!=0 %}{{ tag.pageNumber }}/{% endif %}
---
<h1 class="mdc-typography mdc-typography--headline2">My Thoughts</h1>
{% comment %}
In order for the pagination list to work, we need to set up two things:
- currentCollection: the collection we want to iterate over (e.g. blog pages or tag pages)
- linkHead: the head of the pagination link (e.g. `/blog/` or `/blog/tags/tech/`)
{% endcomment %}
{% assign currentCollection = collections.blogPages %}
{% capture linkHead %}/blog/{% endcapture %}
{% include 'snippets/post-pagination.html' %}
<div class="mdc-layout-grid__inner">
{% for post in tag.pageData %}
{% include 'snippets/post-card.html' %}
{% endfor %}
</div>
<footer>
<div class="fabs">
<button class="mdc-fab mdc-fab--extended fab" aria-label="Favorite" onclick="window.location.href='/blog/tags/'">
<div class="mdc-fab__ripple"></div>
<span class="mdc-fab__icon material-icons">label</span>
<span class="mdc-fab__label">All Tags</span>
</button>
</div>
</footer>
{% capture title %}Page {{ tag.pageNumber }} - Mark's Blog{% endcapture %}
{% pageMetadata, title, "A few of my thoughts." %}