Skip to content

Commit 745a23d

Browse files
committed
fix: use data for home page <title>
we don't need to update the title frontmatter if we do it this way with a condition and the year from data
1 parent 7b8e79c commit 745a23d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

_includes/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<head>
77
<meta charset="utf-8">
88
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
9-
<title>{{ page.title }}</title>
9+
<title>{% if page.title %}{{ page.title }}{% else %}Code4Lib {{ site.data.conf.year }}{% endif %}</title>
1010
<meta name="description" content="">
1111
<meta name="viewport" content="width=device-width, initial-scale=1">
1212
<link rel="apple-touch-icon" href="/apple-touch-icon.png">

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
layout: default
3-
title: code4lib 2025
43
---
54

65
{% include homepage/jumbotron.html %}

0 commit comments

Comments
 (0)