Skip to content

Commit 79f754f

Browse files
committed
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 - Created `maskable icon` - Created `Safari pinned tab icon` - Add all the Android icon sizes - Set `favicon.ico` to 48px square - Strip blank line from HTML - Fix missing HTTPS on link https://webhint.io/docs/user-guide/hints/hint-apple-touch-icons/ https://github.com/jekyll/jekyll-seo-tag
1 parent 574f7af commit 79f754f

37 files changed

+90
-17
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ gem 'github-pages', group: :jekyll_plugins
44

55
group :jekyll_plugins do
66
gem 'jekyll-feed'
7+
gem 'jekyll-seo-tag'
78
gem 'jekyll-sitemap'
89
end
910

Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ DEPENDENCIES
276276
git
277277
github-pages
278278
jekyll-feed
279+
jekyll-seo-tag
279280
jekyll-sitemap
280281
mgem
281282
yard-coderay

_config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ include: _index.html
1414
plugins:
1515
- jekyll-feed
1616
- jekyll-sitemap
17+
- jekyll-seo-tag
18+
include: ['_index.html']
19+
defaults:
20+
- scope:
21+
path: ''
22+
values:
23+
image:
24+
path: '/assets/images/mruby_logo_red_icon.png'
25+
height: 300
26+
width: 300
1727
exclude:
1828
- CODEOWNERS
1929
- Gemfile

_includes/header.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<meta charset="utf-8">
2-
2+
<meta name="viewport" content="width=device-width,initial-scale=1">
33
<title>{{ page.title }}</title>
44

5-
{% include icons.html %}
6-
75
<!-- Bootstrap CSS -->
86
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
97

@@ -16,3 +14,6 @@
1614

1715
<!-- Custom CSS -->
1816
<link rel="stylesheet" href="/assets/css/main.css">
17+
18+
{% include icons.html %}
19+
{% seo title=false %}

_includes/icons.html

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
1+
<!-- Favicon -->
2+
<link rel="apple-touch-icon" sizes="57x57" href="/assets/images/icons/apple-touch-icon-57x57.png?v=1">
3+
<link rel="apple-touch-icon" sizes="60x60" href="/assets/images/icons/apple-touch-icon-60x60.png?v=1">
4+
<link rel="apple-touch-icon" sizes="72x72" href="/assets/images/icons/apple-touch-icon-72x72.png?v=1">
5+
<link rel="apple-touch-icon" sizes="76x76" href="/assets/images/icons/apple-touch-icon-76x76.png?v=1">
6+
<link rel="apple-touch-icon" sizes="114x114" href="/assets/images/icons/apple-touch-icon-114x114.png?v=1">
7+
<link rel="apple-touch-icon" sizes="120x120" href="/assets/images/icons/apple-touch-icon-120x120.png?v=1">
8+
<link rel="apple-touch-icon" sizes="144x144" href="/assets/images/icons/apple-touch-icon-144x144.png?v=1">
9+
<link rel="apple-touch-icon" sizes="152x152" href="/assets/images/icons/apple-touch-icon-152x152.png?v=1">
10+
<link rel="apple-touch-icon" sizes="180x180" href="/assets/images/icons/apple-touch-icon-180x180.png?v=1">
11+
<link rel="icon" type="image/png" sizes="16x16" href="/assets/images/icons/favicon-16x16.png?v=1">
12+
<link rel="icon" type="image/png" sizes="32x32" href="/assets/images/icons/favicon-32x32.png?v=1">
13+
<link rel="icon" type="image/png" sizes="192x192" href="/assets/images/icons/android-chrome-192x192.png?v=1">
14+
<link rel="manifest" href="/assets/images/icons/site.webmanifest?v=1">
15+
<link rel="mask-icon" href="/assets/images/icons/safari-pinned-tab.svg?v=1" color="#e0115f">
16+
<link rel="shortcut icon" href="/favicon.ico?v=1">
17+
<meta name="msapplication-TileColor" content="#da532c">
18+
<meta name="msapplication-TileImage" content="/assets/images/icons/mstile-144x144.png?v=1">
19+
<meta name="msapplication-config" content="/browserconfig.xml?v=1">
120
<meta name="theme-color" content="#e0115f">
2-
3-
<!-- Favicon -->
4-
<link rel="icon" type="image/x-icon" href="/favicon.ico">
5-
<link rel="apple-touch-icon" sizes="180x180" href="/assets/images/icons/apple-touch-icon.png">
6-
<link rel="icon" type="image/png" sizes="32x32" href="/assets/images/icons/favicon-32x32.png">
7-
<link rel="icon" type="image/png" sizes="16x16" href="/assets/images/icons/favicon-16x16.png">
8-
<link rel="manifest" href="/assets/images/icons/site.webmanifest">

_includes/navigation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<nav class="navbar navbar-expand-md navbar-header navbar-mruby
22
justify-content-between pt-0" role="navigation">
33
<a href="/">
4-
<img src="/assets/images/mruby_header.png" alt="mruby" title="mruby">
4+
<img src="/assets/images/mruby_header.png" alt="mruby" title="mruby" width="214" height="90">
55
</a>
66
<div>
77
<ul class="nav navbar-nav">

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en">
33
<head>
44
{% include header.html %}
55
</head>

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en">
33
<head>
44
{% include header.html %}
55
</head>
2.33 KB
Loading
4.12 KB
Loading

0 commit comments

Comments
 (0)