Skip to content

Commit 4dfc77a

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 `robots.txt` - 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 - refs #85 - refs #89 https://webhint.io/docs/user-guide/hints/hint-apple-touch-icons/ https://github.com/jekyll/jekyll-seo-tag
1 parent f64a4cc commit 4dfc77a

38 files changed

+90
-19
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
source 'https://rubygems.org'
22

33
gem 'github-pages'
4+
gem 'jekyll-seo-tag'
45

56
group :scripts do
67
gem 'mgem'

Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ PLATFORMS
266266
DEPENDENCIES
267267
git
268268
github-pages
269+
jekyll-seo-tag
269270
mgem
270271
yard-coderay
271272
yard-mruby

_config.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ markdown: kramdown
1010
highlighter: rouge
1111
url: https://mruby.org
1212
repository: https://github.com/mruby/mruby.github.io
13-
include: _index.html
13+
include: ['_index.html']
14+
image:
15+
path: /images/mruby_logo_red_icon.png
16+
height: 300
17+
width: 300
18+
plugins:
19+
- jekyll-seo-tag
1420
exclude:
1521
- Gemfile
1622
- Gemfile.lock

_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="/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="/images/icons/apple-touch-icon-57x57.png?v=1">
3+
<link rel="apple-touch-icon" sizes="60x60" href="/images/icons/apple-touch-icon-60x60.png?v=1">
4+
<link rel="apple-touch-icon" sizes="72x72" href="/images/icons/apple-touch-icon-72x72.png?v=1">
5+
<link rel="apple-touch-icon" sizes="76x76" href="/images/icons/apple-touch-icon-76x76.png?v=1">
6+
<link rel="apple-touch-icon" sizes="114x114" href="/images/icons/apple-touch-icon-114x114.png?v=1">
7+
<link rel="apple-touch-icon" sizes="120x120" href="/images/icons/apple-touch-icon-120x120.png?v=1">
8+
<link rel="apple-touch-icon" sizes="144x144" href="/images/icons/apple-touch-icon-144x144.png?v=1">
9+
<link rel="apple-touch-icon" sizes="152x152" href="/images/icons/apple-touch-icon-152x152.png?v=1">
10+
<link rel="apple-touch-icon" sizes="180x180" href="/images/icons/apple-touch-icon-180x180.png?v=1">
11+
<link rel="icon" type="image/png" sizes="32x32" href="/images/icons/favicon-32x32.png?v=1">
12+
<link rel="icon" type="image/png" sizes="192x192" href="/images/icons/android-chrome-192x192.png?v=1">
13+
<link rel="icon" type="image/png" sizes="16x16" href="/images/icons/favicon-16x16.png?v=1">
14+
<link rel="manifest" href="/images/icons/site.webmanifest?v=1">
15+
<link rel="mask-icon" href="/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="/images/icons/mstile-144x144.png?v=1">
19+
<meta name="msapplication-config" content="/images/icons/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="/images/icons/apple-touch-icon.png">
6-
<link rel="icon" type="image/png" sizes="32x32" href="/images/icons/favicon-32x32.png">
7-
<link rel="icon" type="image/png" sizes="16x16" href="/images/icons/favicon-16x16.png">
8-
<link rel="manifest" href="/images/icons/site.webmanifest">

_includes/navigation.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<nav class="navbar navbar-mruby" role="navigation">
22
<div class="navbar-header">
3-
<a href="/"><img src="/images/mruby_header.png" alt="mruby" title="mruby"></a>
3+
<a href="/">
4+
<img src="/images/mruby_header.png" alt="mruby" title="mruby" width="214" height="90">
5+
</a>
46
</div>
57

68
<div>
@@ -30,5 +32,4 @@
3032
</form>
3133
-->
3234
</div>
33-
3435
</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>

browserconfig.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<browserconfig><msapplication><tile><square70x70logo src="/images/icons/ms-icon-70x70.png"/><square150x150logo src="/images/icons/ms-icon-150x150.png"/><square310x310logo src="/images/icons/ms-icon-310x310.png"/><TileColor>#e0115f</TileColor></tile></msapplication></browserconfig>

favicon.ico

14.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)