Files
funky/_layouts/default.html
Michael Lynch 060bc4149a Adding default title tag
Currently, if page.collectionpage and page.title are both unset, the page title is set to " - Whatever Blog Title". This is undesirable, so if neither variable is set, the title tag should just be "Whatever Blog Title".
2019-03-03 16:20:09 -05:00

30 lines
885 B
HTML
Executable File

<!DOCTYPE html>
<html lang="{{ site.lang | default: "en-US" }}">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
{% if page.collectionpage %}
{% assign collectiondata = site.collections | where: "label", page.collectionpage | first %}
<title>{{ collectiondata.title }} - {{ site.title }}</title>
{% elsif page.title %}
<title>{{ page.title }} - {{ site.title }}</title>
{% else %}
<title>{{ site.title }}</title>
{% endif %}
<link rel="stylesheet" href="{{ "/assets/styles.css" | relative_url }}">
{% if site.favicon %}
<link rel="shortcut icon" href="{{ site.favicon }}">
{% else %}
<link rel="shortcut icon" href="{{ site.logo }}">
{% endif %}
</head>
<body>
{{ content }}
<link href="https://fonts.googleapis.com/css?family=Alegreya+Sans:400,400i,700|Neuton:400,700" rel="stylesheet">
</body>
</html>