-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
76 lines (62 loc) · 2.84 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
layout: default
title: "Dug Falby's work blog. Good looks like this."
subtitle: >
Some of Dug's <em>slightly</em> more interesting design things…
bodyclass: blogIndex
---
<main>
<section class="wrapper">
<h1 id="headTitle">
{{ page.subtitle }}
</h1>
<!-- p id="siteSubtitle">{{ site.description }}</p -->
<ul class="article-list index-block">
{%- if site.posts.size > 0 -%}
{% for post in paginator.posts %}
<li>
<article>
<!-- if blogpost -->
{% if post.author %}
<p class="info-author"><span>Posted by <a href="#">{{ post.author }}</a></span></p>
{% endif %}
<!-- endif -->
<h2><a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a></h2>
{%- if site.blogIndexSubtitles == true -%}
{%- if post.subtitle -%}
<p class="excerptSubtitle">{{ post.subtitle | truncatewords: 32 }}</p>
{%- else -%}
<p class="excerptSubtitle">{{ post.content | markdownify | strip_html | truncatewords: 32 }}</p>
{%- endif -%}
{%- endif -%}
<!-- if blogpost -->
<p class="info-others">
<!-- span id="postPubDate">{{ post.date | date: "%d/%m/%Y" }}</span -->
<span id="postCategories">
{%- if post.categories -%}
{% if post %}
{% assign categories = post.categories %}
{% else %}
{% assign categories = page.categories %}
{% endif %}
{% for category in categories %}
<a href="{{site.baseurl}}/categories/#{{category|slugize}}">{{category}}</a>
{%- unless forloop.last -%}, {%- endunless -%}
{% endfor %}
{%- endif -%}
</span>
<span id="postComments"><i>(comments disabled)</i></span>
</p>
<!-- endif -->
<!-- if has images -->
<figure style="--bg-image: url({%- if post.index_image -%}'{{ post.index_image }}'{%- elsif post.hero_image -%}'{{ post.hero_image }}'{%- endif -%});" aria-label="{{ post.hero_image_alt }}"></figure>
<!-- endif -->
</article>
</li>
{%- endfor -%}
{%- endif -%}
</ul>
</section>
<!-- index pagination -->
{% include 2023/paginator-nextprev.html %}
</main>