diff --git a/Gemfile b/Gemfile index d94f79e..9383588 100644 --- a/Gemfile +++ b/Gemfile @@ -2,6 +2,7 @@ source "https://rubygems.org" ruby File.read(".ruby-version").strip gem "github-pages" +gem "jekyll-seo-tag" group :test do gem "html-proofer" diff --git a/_config.yml b/_config.yml index 4ecdc5f..9bf10f7 100644 --- a/_config.yml +++ b/_config.yml @@ -40,7 +40,8 @@ exclude: gems: - jekyll-sitemap - jekyll-redirect-from - + - jekyll-seo-tag + sass: sass_dir: _sass style: :compressed diff --git a/_includes/header.html b/_includes/header.html index 7737e9e..0d68595 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -13,7 +13,7 @@ - {% include seo.html %} + {% seo %}
diff --git a/_includes/seo.html b/_includes/seo.html deleted file mode 100644 index 4c592e5..0000000 --- a/_includes/seo.html +++ /dev/null @@ -1,30 +0,0 @@ - {% if page.title %} - {% capture seo_title %}{{ page.title | markdownify | strip_html | strip_newlines }} - {{ site.title }}{% endcapture %} - {% else %} - {% assign seo_title = site.title %} - {% endif %} - - {% if page.description %} - {% assign seo_description = page.description | strip_html | strip_newlines %} - {% else %} - {% assign seo_description = site.description | strip_html | strip_newlines %} - {% endif %} - - - {{ seo_title }} - - - {{ site.title }} - - - - - - - - - - - - -