Skip to content

Commit 5791e2b

Browse files
committed
chore: turn name in banner into an hcard
https://microformats.org/wiki/h-card
1 parent acbbf09 commit 5791e2b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

pages/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
<body>
1313
<header class="site-wide">
1414
<div class="banner">
15-
<h1 class="logo">Chris Newton</h1>
15+
<a class="h-card" href="https://chrisnewtn.com">
16+
<h1 class="p-name logo">Chris Newton</h1>
17+
</a>
1618
<a href="https://github.com/chrisnewtn" rel="me">
1719
<picture class="social">
1820
<source srcset="assets/github-mark-white.svg" media="(prefers-color-scheme: dark)">

pages/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ a:visited {
3232
.banner .logo {
3333
margin: 0 0 .2rem 0; /* attempt at visually aligning it vertically */
3434
}
35+
.h-card,
36+
.h-card:visited {
37+
color: var(--primary-text);
38+
text-decoration: none;
39+
}
40+
.h-card:hover {
41+
text-decoration: underline;
42+
}
3543
nav {
3644
position: sticky;
3745
top: 0;

0 commit comments

Comments
 (0)