Skip to content

Commit

Permalink
Add Jekyll SEO plugin
Browse files Browse the repository at this point in the history
- 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 mruby#85

https://webhint.io/docs/user-guide/hints/hint-apple-touch-icons/
https://github.com/jekyll/jekyll-seo-tag
  • Loading branch information
jbampton committed Dec 23, 2020
1 parent f64a4cc commit a3ed9ef
Show file tree
Hide file tree
Showing 24 changed files with 34 additions and 9 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
source 'https://rubygems.org'

gem 'github-pages'
gem 'jekyll-seo-tag'

group :scripts do
gem 'mgem'
Expand Down
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ PLATFORMS
DEPENDENCIES
git
github-pages
jekyll-seo-tag
mgem
yard-coderay
yard-mruby
Expand Down
8 changes: 7 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<meta charset="utf-8">

<meta name="viewport" content="width=device-width,initial-scale=1">
<title>{{ page.title }}</title>

{% include icons.html %}

<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">

Expand All @@ -16,3 +14,6 @@

<!-- Custom CSS -->
<link rel="stylesheet" href="/css/main.css">

{% include icons.html %}
{% seo title=false %}
14 changes: 13 additions & 1 deletion _includes/icons.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,19 @@

<!-- Favicon -->
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="/images/icons/apple-touch-icon.png">
<link rel="apple-touch-icon" href="/images/icons/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="57x57" href="/images/icons/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="72x72" href="/images/icons/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/images/icons/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/images/icons/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/images/icons/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/images/icons/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/images/icons/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/images/icons/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/images/icons/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="96x96" href="/images/icons/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/icons/favicon-16x16.png">
<meta name="msapplication-TileColor" content="#e0115f">
<meta name="msapplication-TileImage" content="/images/icons/ms-icon-144x144.png">
<link rel="manifest" href="/images/icons/site.webmanifest">
4 changes: 3 additions & 1 deletion _includes/navigation.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<nav class="navbar navbar-mruby" role="navigation">
<div class="navbar-header">
<a href="/"><img src="/images/mruby_header.png" alt="mruby" title="mruby"></a>
<a href="/">
<img src="/images/mruby_header.png" alt="mruby" title="mruby" width="214" height="90">
</a>
</div>

<div>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
{% include header.html %}
</head>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
{% include header.html %}
</head>
Expand Down
2 changes: 2 additions & 0 deletions browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<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>
Binary file added images/icons/apple-touch-icon-114x114.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icons/apple-touch-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icons/apple-touch-icon-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icons/apple-touch-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icons/apple-touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icons/apple-touch-icon-57x57.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icons/apple-touch-icon-72x72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icons/apple-touch-icon-76x76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/icons/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icons/favicon-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icons/ms-icon-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icons/ms-icon-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icons/ms-icon-310x310.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icons/ms-icon-70x70.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<div class="row clearfix">
<div class="col-md-12 column mruby-is">
<img src="/images/mruby_logo_red_icon.png"/>
<img src="/images/mruby_logo_red_icon.png" alt="mruby" title="mruby" width="300" height="300">
<p>
mruby is the lightweight implementation of the <a href="https://www.ruby-lang.org">Ruby language</a> complying with part of the <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=59579">ISO standard</a>. mruby can be linked and embedded within your application.
</p>
Expand Down

0 comments on commit a3ed9ef

Please sign in to comment.