Skip to content

Commit 21efbdf

Browse files
authored
Fix title display for all pages (#776)
- Fix Index page to show just `Black Python Devs` instead of `Index | Black Python Devs` - Fix other pages to show proper `<page-title> | Black Python Devs` format
1 parent 6841c66 commit 21efbdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1" />
66
<meta name="description" content="{% if description%}{{ description | escape }}{% else %}{{ site.description }}{% endif %}" />
7-
<title>{% if title %}{{ site.title }} | {{ title }}{% else %}{{ site.title }}{% endif %}</title>
7+
<title>{% if title == 'Index' %}Black Python Devs{% elif title %}{{ title }} | Black Python Devs{% else %}Black Python Devs{% endif %}</title>
88
<link rel="stylesheet" href="{{ '/assets/css/pico.min.css' }}" />
99
<link rel="stylesheet" href="{{ '/assets/css/pico.colors.min.css' }}" />
1010
<link rel="stylesheet" href="{{ '/assets/css/bpd.css' }}" />

0 commit comments

Comments
 (0)