Skip to content

Commit e1038bf

Browse files
committed
add conditional logic for overtitle
1 parent 1b899da commit e1038bf

3 files changed

Lines changed: 22 additions & 14 deletions

File tree

_includes/page-lead.html

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
1-
<header class="grid md:grid-cols-2">
1+
<header>
22

3-
<!-- main -->
4-
<div class="pt-4 px-6">
5-
<span class="block font-mono text-xs uppercase tracking-wider text-red-600">
6-
{{ page.kicker }}
7-
</span>
3+
<div class="mx-auto px-4 md:px-6 pt-4">
4+
5+
{% if page.overtitle %}
6+
<span class="block font-mono text-xs uppercase tracking-wider text-red-600">
7+
{{ page.overtitle }}
8+
</span>
9+
{% endif %}
10+
11+
{% if page.title %}
12+
<h1 class="font-sans text-5xl font-black uppercase leading-tight">
13+
{{ page.title }}
14+
</h1>
15+
{% endif %}
816

9-
<h1 class="font-sans text-5xl font-black uppercase leading-tight">
10-
{{ page.title }}
11-
</h1>
1217
</div>
1318

1419
<!-- meta -->
15-
<div class="bg-stone-100 px-4 py-6 font-mono text-sm leading-relaxed text-gray-500 md:px-6">
16-
{{ page.meta }}
17-
</div>
20+
21+
{% if page.meta %}
22+
<div class="bg-stone-100 px-4 py-6 font-mono text-sm leading-relaxed text-gray-500 md:px-6">
23+
{{ page.meta }}
24+
</div>
25+
{% endif %}
1826

1927
</header>

_pages/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: about
3-
kicker: "information"
3+
overtitle: "information"
44
title: About
55
permalink: /about/
66
---

_pages/notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: notes
33
title: Notes
44
permalink: /notes/
5-
kicker: "archive"
5+
overtitle: "archive"
66
meta: "Chronological journal entries. Newest first."
77
---
88

0 commit comments

Comments
 (0)