Fix site title attribute logic (#121)

The site title attribute had some logic that would change the site title if a project modal was open, but it caused the title to permanently be set to the title of the last entry in the _posts directory. I removed the if/else logic to keep the site title to be what is specified in _config.yml in the "title" field.
main
nete-madi 4 years ago committed by GitHub
parent 1c765c107d
commit 62b362b21e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,7 +1,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<title>{{ site.title }}</title>
<meta name="viewport" content="width=device-width">
<meta name="description" content="{{ site.description }}">
<meta name="keywords" content="{{ site.keywords }}" />

Loading…
Cancel
Save