Skip to content

Commit 22179bf

Browse files
committed
Add site header w/ banner; update home page
1 parent d1551af commit 22179bf

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

src/_includes/layouts/base.njk

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{% set siteName = 'Kyle Gach' %}
22
{% set pageTitle = title + '' + siteName if title else siteName %}
33

4+
{% set isHome = page.url === '/' %}
5+
46
<!DOCTYPE html>
57
<html lang="en">
68
<head>
@@ -11,7 +13,21 @@
1113
<link href="/styles/site.css" rel="stylesheet">
1214
</head>
1315
<body>
14-
{{content | safe}}
16+
{% if not isHome %}
17+
<p style="background:lightyellow; font-size:smaller; margin-top:0; padding:0.5rem">I’m rebuilding and redesigning this website in the open. <a href="/writing">Follow along, if you wish.</a></p>
18+
{% endif %}
19+
20+
<header>
21+
<nav>
22+
<a href="/"><strong>Kyle Gach</strong></a>
23+
</nav>
24+
{% if isHome %}
25+
<p>Rhymes with scratch</p>
26+
{% endif %}
27+
<br />
28+
</header>
29+
30+
{{ content | safe }}
1531

1632
<hr />
1733
<footer>

src/index.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22
layout: layouts/base
33
---
44

5-
# Kyle Gach
6-
7-
Rhymes with scratch.
8-
9-
_I'm rebuilding and redesigning this website in the open. [Follow along if you wish](https://github.com/kylegach/kylegach.com)._
10-
11-
Here are the related posts to that effort:
5+
<p style="background:lightyellow; font-size:smaller; margin:0; padding:0.5rem">I’m rebuilding and redesigning this website in the open. Follow along, if you wish.</p>
126

137
{% if collections.v2.length %}
148
{% assign items = collections.v2 | reverse %}

0 commit comments

Comments
 (0)