-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (53 loc) · 2.08 KB
/
index.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
44
45
46
47
48
49
50
51
52
53
54
55
---
layout: default
body_class: front-page
image:
feature: post-image-hello.jpg
thumb: thumbnail-image.jpg
---
<div class="container">
<header>
<h1>Michèle <span>van den Aardweg</span></h1>
<h2 class="typing">Cat loving front-end developer<span aria-hidden="true"> </span></h2>
</header>
<main>
<nav class="categories">
<ul class="category-list" aria-label=">Kies een categorie">
{% for category in site.categories %}
<li>
<a role="button" href="/categories/#{{ category | first }}">{{ category | first }} </a>
</li>
{% endfor %}
</ul>
</nav>
{% for post in paginator.posts %}
<article>
{% if post.image.thumbnail %}
<a class="header-thumbnail" style="background-image: url('/assets/images/{{ post.image.thumbnail }}')" aria-hidden="true" href="{{ post.url }}">
<span class="screenreader">Link naar het artikel genaamd: {{ post.title }}</span>
</a>
{% endif %}
<header>
<p class="categories">
<span class="screenreader">Dit is een artikel in de categorie</span>
{{ post.categories | join: ', ' }}
</p>
<h2><a href="{{ post.url }}">{{ post.title }} <span aria-hidden="true">(ongelezen)</span></a></h2>
</header>
<a class="read-more" role="button" href="{{ post.url }}">
<span class="screenreader">Lees het hele artikel</span>
<span aria-hidden="true">Lees verder</span>
</a>
</article>
{% endfor %}
</main>
</div>
{% if paginator.total_pages > 1 %}
<nav class="page-navigation">
<div class="container">{% for page in (1..paginator.total_pages) %}{% if page == paginator.page %}
<span class="page-count current"><span class="screenreader">Je bevind je nu op pagina</span>{{ page }}</span>{% elsif page == 1 %}
<a class="page-count" href="/"><span class="screenreader">Ga naar pagina</span>{{ page }}</a>{% else %}
<a class="page-count" href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}"><span class="screenreader">Ga naar pagina</span> {{ page }}</a>{% endif %}{% endfor %}
</div>
</nav>
{% endif %}