Skip to content

Commit 9fb9f6d

Browse files
committed
fix separators when author or tag is missing
1 parent 5f56604 commit 9fb9f6d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/_includes/css/post.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,18 @@
2323
margin: 0;
2424
}
2525

26-
& p:nth-child(-n+2)::after {
26+
& p::after {
2727
content: "•";
2828
padding-left: 0.5em;
2929
align-self: stretch;
3030
}
3131

3232
& p:last-of-type {
3333
margin-right: 0.5em;
34+
35+
&::after {
36+
display: none;
37+
}
3438
}
3539

3640
& a {

src/_includes/templates/post-details.vto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
<p>{{ it.readingInfo.minutes }} {{ i18n.post.reading_time}}</p>
1818

19+
{{ if tags?.length }}
1920
<div class="post-tags">
2021
{{ for tag of tags }}
2122
{{ set page = search.page(`type=tag tag="${tag}"`) }}
@@ -25,4 +26,5 @@
2526
{{ /if }}
2627
{{ /for }}
2728
</div>
29+
{{ /if }}
2830
</div>

0 commit comments

Comments
 (0)