Skip to content

Commit

Permalink
Append site name to page title meta
Browse files Browse the repository at this point in the history
  • Loading branch information
zarino committed Jan 24, 2025
1 parent 8a14e03 commit 526ab6b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: nature-emergency
title: Nature Emergency
baseurl: "/nature-emergency" # the subpath of your site, e.g. /blog
url: "https://mysociety.github.io" # the base hostname & protocol for your site, e.g. http://example.com
host: 0.0.0.0
Expand Down
2 changes: 1 addition & 1 deletion _config_dev.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: nature-emergency (local development)
title: Nature Emergency (local development)
baseurl: ""
url: ""
host: 0.0.0.0
Expand Down
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="initial-scale=1, viewport-fit=cover">
<title>{{ page.title | default: site.title | escape }}</title>
<title>{% if page.title %}{{ page.title | escape }} | {% endif %}{{ site.title | escape }}</title>
<link rel="stylesheet" href="{{ '/static/css/all.css' | relative_url }}">
<link rel="icon" type="image/x-icon" href="{{ '/favicon.ico' | relative_url }}">
{% if site.gtag_id %}
Expand Down

0 comments on commit 526ab6b

Please sign in to comment.