use Jekyll SEO Tag to generate page titles

This commit is contained in:
Ben Balter
2017-08-14 10:54:16 -04:00
parent 448b3afc1e
commit effc50a6f0
3 changed files with 5 additions and 3 deletions

View File

@@ -2,4 +2,4 @@ title: Midnight theme
description: Midnight is a theme for GitHub Pages. description: Midnight is a theme for GitHub Pages.
show_downloads: true show_downloads: true
google_analytics: google_analytics:
theme: theme: jekyll-theme-midnight

View File

@@ -3,7 +3,8 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1"> <meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>{{ site.title | default: site.github.repository_name }} by {{ site.github.owner_name }}</title>
{% seo %}
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}"> <link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="{{ '/assets/js/respond.js' | relative_url }}"></script> <script src="{{ '/assets/js/respond.js' | relative_url }}"></script>

View File

@@ -14,5 +14,6 @@ Gem::Specification.new do |s|
end end
s.platform = Gem::Platform::RUBY s.platform = Gem::Platform::RUBY
s.add_runtime_dependency "jekyll", "~> 3.3" s.add_runtime_dependency "jekyll", "~> 3.5"
s.add_runtime_dependency "jekyll-seo-tag", "~> 2.0"
end end