From a3ed9ef17c9a8718d3e7698d3cf91189ecabac2f Mon Sep 17 00:00:00 2001 From: John Bampton Date: Wed, 23 Dec 2020 22:18:09 +1000 Subject: [PATCH] Add Jekyll SEO plugin - Add all the Apple touch and Microsoft icons - Fix Jekyll config error - add a `browserconfig.xml` file - Add `alt`, `title`, `width` and `height` attributes to images - Add `lang="en"` to the start `html` tag - Add `meta viewport` tag - refs #85 https://webhint.io/docs/user-guide/hints/hint-apple-touch-icons/ https://github.com/jekyll/jekyll-seo-tag --- Gemfile | 1 + Gemfile.lock | 1 + _config.yml | 8 +++++++- _includes/header.html | 7 ++++--- _includes/icons.html | 14 +++++++++++++- _includes/navigation.html | 4 +++- _layouts/default.html | 2 +- _layouts/post.html | 2 +- browserconfig.xml | 2 ++ images/icons/apple-touch-icon-114x114.png | Bin 0 -> 10821 bytes images/icons/apple-touch-icon-120x120.png | Bin 0 -> 6873 bytes images/icons/apple-touch-icon-144x144.png | Bin 0 -> 13762 bytes images/icons/apple-touch-icon-152x152.png | Bin 0 -> 17328 bytes images/icons/apple-touch-icon-180x180.png | Bin 0 -> 13811 bytes images/icons/apple-touch-icon-57x57.png | Bin 0 -> 3868 bytes images/icons/apple-touch-icon-72x72.png | Bin 0 -> 5184 bytes images/icons/apple-touch-icon-76x76.png | Bin 0 -> 5871 bytes images/icons/apple-touch-icon.png | Bin 13215 -> 3868 bytes images/icons/favicon-96x96.png | Bin 0 -> 7719 bytes images/icons/ms-icon-144x144.png | Bin 0 -> 12327 bytes images/icons/ms-icon-150x150.png | Bin 0 -> 12849 bytes images/icons/ms-icon-310x310.png | Bin 0 -> 35075 bytes images/icons/ms-icon-70x70.png | Bin 0 -> 5517 bytes index.html | 2 +- 24 files changed, 34 insertions(+), 9 deletions(-) create mode 100644 browserconfig.xml create mode 100644 images/icons/apple-touch-icon-114x114.png create mode 100644 images/icons/apple-touch-icon-120x120.png create mode 100644 images/icons/apple-touch-icon-144x144.png create mode 100644 images/icons/apple-touch-icon-152x152.png create mode 100644 images/icons/apple-touch-icon-180x180.png create mode 100644 images/icons/apple-touch-icon-57x57.png create mode 100644 images/icons/apple-touch-icon-72x72.png create mode 100644 images/icons/apple-touch-icon-76x76.png create mode 100644 images/icons/favicon-96x96.png create mode 100644 images/icons/ms-icon-144x144.png create mode 100644 images/icons/ms-icon-150x150.png create mode 100644 images/icons/ms-icon-310x310.png create mode 100644 images/icons/ms-icon-70x70.png diff --git a/Gemfile b/Gemfile index 08108e8..ec48180 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,7 @@ source 'https://rubygems.org' gem 'github-pages' +gem 'jekyll-seo-tag' group :scripts do gem 'mgem' diff --git a/Gemfile.lock b/Gemfile.lock index 3fc6b66..ce9db40 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -266,6 +266,7 @@ PLATFORMS DEPENDENCIES git github-pages + jekyll-seo-tag mgem yard-coderay yard-mruby diff --git a/_config.yml b/_config.yml index 8210404..739cd95 100644 --- a/_config.yml +++ b/_config.yml @@ -10,7 +10,13 @@ markdown: kramdown highlighter: rouge url: https://mruby.org repository: https://github.com/mruby/mruby.github.io -include: _index.html +include: ['_index.html'] +image: + path: /images/mruby_logo_red_icon.png + height: 300 + width: 300 +plugins: + - jekyll-seo-tag exclude: - Gemfile - Gemfile.lock diff --git a/_includes/header.html b/_includes/header.html index 99526ce..e36a716 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -1,9 +1,7 @@ - + {{ page.title }} - {% include icons.html %} - @@ -16,3 +14,6 @@ + + {% include icons.html %} + {% seo title=false %} diff --git a/_includes/icons.html b/_includes/icons.html index a3ac776..53a0f27 100644 --- a/_includes/icons.html +++ b/_includes/icons.html @@ -2,7 +2,19 @@ - + + + + + + + + + + + + + diff --git a/_includes/navigation.html b/_includes/navigation.html index 2258e71..a421591 100644 --- a/_includes/navigation.html +++ b/_includes/navigation.html @@ -1,6 +1,8 @@