-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwriting.html
More file actions
55 lines (48 loc) · 1.71 KB
/
Copy pathwriting.html
File metadata and controls
55 lines (48 loc) · 1.71 KB
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
pageClass: '-no-padding-top'
stylesheets:
- writing.css
title: "Writing"
---
{% include shapesHero.html heading="Writing" %}
<ul class="post-list content-limiter -thin">
{% for post in site.posts %}
{% if post.categories contains "Archive" or post.categories contains "WIP" %}
{% continue %}
{% endif %}
<li class="post-listing{% if post.thumbnail %} -with-image{% endif %}">
<div class="post-heading">
{% comment %}
thumbnail is a separate field from metadata.image: that one is the
social card, which has the title baked into it and would just repeat
the heading. thumbnailPosition lets a post steer its own crop when the
default centre would cut off the subject.
The image is decorative - the title link stretched over it (see
.title::after) makes the whole banner clickable, so a second link
here would just duplicate it for keyboard and screen reader users.
{% endcomment %}
{% if post.thumbnail %}
<img class="thumbnail" src="{{ post.thumbnail }}" alt="" loading="lazy"
{% if post.thumbnailPosition %}
style="object-position: {{ post.thumbnailPosition }}"
{% endif %}>
{% endif %}
<h2>
<a href="{{ post.url }}" class="title">
{{ post.title }}
</a>
{% if post.draft %}
<span class="category -draft">Draft</span>
{% endif %}
</h2>
{% for category in post.categories %}
<span class="category">{{ category }}</span>
{% endfor %}
</div>
<div class="excerpt">
{{ post.excerpt }}
</div>
</li>
{% endfor %}
</ul>