Skip to content

Commit aec2b86

Browse files
authored
Add SEO (#83)
Update Twitter handle
1 parent df87818 commit aec2b86

File tree

8 files changed

+27
-19
lines changed

8 files changed

+27
-19
lines changed

Gemfile

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

3-
gem "html-proofer", "<4"
3+
gem "html-proofer"
44
gem "jekyll", "~> 4.0"
55
gem "jekyll-sass-converter" #, "~>2.0
66

_config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ plugins:
1111
- jekyll-paginate
1212
- jekyll-last-modified-at
1313
- jekyll-redirect-from
14+
- jekyll-seo-tag
1415
permalink: "/articles/:categories/:title"
1516
paginate: 5
1617
paginate_path: "/news/page:num/"
@@ -29,3 +30,6 @@ exclude:
2930
- build.sh
3031
- deploy.key
3132
- deploy.key.enc
33+
twitter:
34+
card: summary
35+
username: pybuilder_

_data/authors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ arcivanov:
33
email: arcadiy@ivanov.biz
44
github: arcivanov
55
website: https://www.ivanov.biz/
6-
twitter: arcivanov
6+
twitter: iamarcivanov
77
openhub: arcivanov
88
linkedin: arcivanov
99
mriehl:

_includes/layout/footer.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
</div>
1212
</footer>
1313

14-
<script src="//code.jquery.com/jquery-3.4.1.min.js"
14+
<script src="https://code.jquery.com/jquery-3.4.1.min.js"
1515
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
1616
crossorigin="anonymous"></script>
1717
<script src="/js/jquery-ui-1.10.3.custom.min.js"></script>
18-
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
18+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
1919
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
2020
crossorigin="anonymous"></script>
21-
<script src="//cdn.rawgit.com/afeld/bootstrap-toc/v0.4.1/dist/bootstrap-toc.min.js"></script>
21+
<script src="https://cdn.rawgit.com/afeld/bootstrap-toc/v0.4.1/dist/bootstrap-toc.min.js"></script>
2222
<script src="/js/tabcontent.js"></script>
2323
<script src="/js/highlight.pack.js"></script>
2424

_includes/layout/metaAndStyles.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script async src="//www.googletagmanager.com/gtag/js?id=UA-2839506-6"></script>
1+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-2839506-6"></script>
22
<script>
33
window.dataLayer = window.dataLayer || [];
44
function gtag(){dataLayer.push(arguments);}
@@ -20,12 +20,14 @@
2020
<link rel="icon" href="/img/logo.svg"/>
2121
<link rel="apple-touch-icon" href="/img/logo-apple-touch-icon.png">
2222

23-
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Oleo+Script:700"/>
24-
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
23+
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Oleo+Script:700"/>
24+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
2525
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
2626
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css"
2727
integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
2828
<link rel="stylesheet" href="https://cdn.rawgit.com/afeld/bootstrap-toc/v0.4.1/dist/bootstrap-toc.min.css">
2929
<link rel="stylesheet" type="text/css" href="/css/highlightjs.css"/>
3030
<link rel="stylesheet" type="text/css" href="/css/tabcontent.css"/>
3131
<link rel="stylesheet" type="text/css" href="/css/styles.css"/>
32+
33+
{% seo %}

_layouts/post.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@ <h1>{{ page.title }}</h1>
3030
{% endif %}
3131
{% if author.github %}
3232
<a rel="author" href="https://github.com/{{ author.github }}" title="{{ author.name }}'s GitHub">
33-
<img src="//external-content.duckduckgo.com/ip/github.com.ico" alt="GitHub Logo"></a>
33+
<img src="https://external-content.duckduckgo.com/ip/github.com.ico" alt="GitHub Logo"></a>
3434
{% endif %}
3535
{% if author.openhub %}
3636
<a rel="author" href="https://www.openhub.net/accounts/{{ author.openhub }}"
3737
title="{{ author.name }}'s OpenHub">
38-
<img src="//external-content.duckduckgo.com/ip/openhub.net.ico" alt="OpenHub Logo"></a>
38+
<img src="https://external-content.duckduckgo.com/ip/openhub.net.ico" alt="OpenHub Logo"></a>
3939
{% endif %}
4040
{% if author.twitter %}
4141
<a rel="author" href="https://twitter.com/{{ author.twitter }}" title="{{ author.name }}'s Twitter">
42-
<img src="//external-content.duckduckgo.com/ip/twitter.com.ico" alt="Twitter Logo"></a>
42+
<img src="https://external-content.duckduckgo.com/ip/twitter.com.ico" alt="Twitter Logo"></a>
4343
{% endif %}
4444
{% if author.linkedin %}
4545
<a rel="author" href="https://www.linkedin.com/in/{{ author.linkedin }}/"
4646
title="{{ author.name }}'s LinkedIn">
47-
<img src="//external-content.duckduckgo.com/ip/linkedin.com.ico" alt="LinkedIn Logo">
47+
<img src="https://external-content.duckduckgo.com/ip/linkedin.com.ico" alt="LinkedIn Logo">
4848
</a>
4949
{% endif %}
5050
{% endif %}

build.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
bundle exec jekyll build
44

55
bundle exec htmlproofer --allow-hash-href \
6-
--http-status-ignore=429,999 \
7-
--check-html \
8-
--check-opengraph \
9-
--check-favicon \
10-
--assume-extension \
11-
./_site
6+
--ignore-status-codes=429,999,302 \
7+
--no-check-internal-hash \
8+
--no-check-external-hash \
9+
--no-enforce-https \
10+
--checks Links,Scripts,Images,OpenGraph,Favicon \
11+
--typhoeus='{"followlocation": true, "connecttimeout": 20, "timeout": 60}' \
12+
--hydra='{"max_concurrency": 3}' \
13+
_site
1214

1315
bundle exec jekyll build -c _config.yml,_config-prod.yml

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
3-
title: an easy-to-use build automation tool for Python
3+
title: An easy-to-use build automation tool for Python
44
---
55

66
<div class="row">

0 commit comments

Comments
 (0)