Merge pull request #22 from mtlynch/default-title

Adding default title tag
This commit is contained in:
David Darnes 2019-03-03 23:59:27 +00:00 committed by GitHub
commit 565906028a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,8 +5,10 @@
{% if page.collectionpage %}
{% assign collectiondata = site.collections | where: "label", page.collectionpage | first %}
<title>{{ collectiondata.title }} - {{ site.title }}</title>
{% else %}
{% elsif page.title %}
<title>{{ page.title }} - {{ site.title }}</title>
{% else %}
<title>{{ site.title }}</title>
{% endif %}
<link rel="stylesheet" href="{{ "/assets/styles.css" | relative_url }}">