Skip to content

Commit e826f3b

Browse files
Master improve seo (#18)
* [ADD] Adding jekyll image and javascript compressing tool. * [ADD] Adding plugin to generate sitemap.xml file which will help to improve the ranking of the page. * [ADD] Adding jekyll seo plugin which will add required SEO tags to the website. Adding required information for this plugin. * [IMPROVE] The Google analytics and other unknown services were not included in page because the environment variable was not set to value . Such variable creates a production build of the website. This variable was bydefault unable when site was hosted to Github but after shifting site to custom server, the environment variable was not set. Adding permanent step to expose this environment variable to production value. * [ADD] Adding 404 custom page for website. * [ADD] Adding various apple touch icons. Adding favicon icon for the website. * [ADD] Adding theme color as meta tag to support web support reference: https://github.com/whatwg/meta-theme-color * [ADD] Adding forgotten excerpt tag to last PyConf Delhi blog post.
1 parent 1a0c5ec commit e826f3b

19 files changed

+75
-13
lines changed

404.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
layout: default
3+
permalink: /404.html
4+
---
5+
6+
Page not found :(

Gemfile

+3
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,7 @@ gem "html-proofer"
2222
# If you have any plugins, put them here!
2323
group :jekyll_plugins do
2424
gem "jekyll-feed", "~> 0.6"
25+
gem "jekyll-minifier"
26+
gem "jekyll-sitemap"
27+
gem "jekyll-seo-tag"
2528
end

Gemfile.lock

+19
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ GEM
1111
colorator (1.1.0)
1212
colored (1.2)
1313
concurrent-ruby (1.0.5)
14+
cssminify2 (2.0.1)
1415
ethon (0.10.1)
1516
ffi (>= 1.3.0)
17+
execjs (2.7.0)
1618
ffi (1.9.14)
1719
forwardable-extended (2.6.0)
1820
html-proofer (3.6.0)
@@ -24,6 +26,7 @@ GEM
2426
parallel (~> 1.3)
2527
typhoeus (~> 0.7)
2628
yell (~> 2.0)
29+
htmlcompressor (0.3.1)
2730
i18n (0.8.1)
2831
jekyll (3.3.1)
2932
addressable (~> 2.4)
@@ -38,10 +41,20 @@ GEM
3841
safe_yaml (~> 1.0)
3942
jekyll-feed (0.8.0)
4043
jekyll (~> 3.3)
44+
jekyll-minifier (0.1.2)
45+
cssminify2 (~> 2.0)
46+
htmlcompressor (~> 0.3)
47+
jekyll (~> 3.0)
48+
uglifier (~> 2.7)
4149
jekyll-sass-converter (1.5.0)
4250
sass (~> 3.4)
51+
jekyll-seo-tag (2.2.3)
52+
jekyll (~> 3.3)
53+
jekyll-sitemap (1.1.1)
54+
jekyll (~> 3.3)
4355
jekyll-watch (1.5.0)
4456
listen (~> 3.0, < 3.1)
57+
json (2.1.0)
4558
kramdown (1.13.1)
4659
liquid (3.0.6)
4760
listen (3.0.8)
@@ -69,6 +82,9 @@ GEM
6982
ethon (>= 0.8.0)
7083
tzinfo (1.2.3)
7184
thread_safe (~> 0.1)
85+
uglifier (2.7.2)
86+
execjs (>= 0.3.0)
87+
json (>= 1.8.0)
7288
yell (2.0.7)
7389

7490
PLATFORMS
@@ -78,6 +94,9 @@ DEPENDENCIES
7894
html-proofer
7995
jekyll (= 3.3.1)
8096
jekyll-feed (~> 0.6)
97+
jekyll-minifier
98+
jekyll-seo-tag
99+
jekyll-sitemap
81100
minima (~> 2.0)
82101

83102
RUBY VERSION

_config.yml

+13
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ markdown: kramdown
2929
theme: minima
3030
gems:
3131
- jekyll-feed
32+
- jekyll-minifier
33+
- jekyll-sitemap
34+
- jekyll-seo-tag
3235
exclude:
3336
- Gemfile
3437
- Gemfile.lock
@@ -41,3 +44,13 @@ defaults:
4144
path: ""
4245
values:
4346
author: "Jaysinh Shukla"
47+
social:
48+
name: Jaysinh Shukla
49+
links:
50+
- https://twitter.com/jaysinhp
51+
- https://www.facebook.com/jaysinhp
52+
- https://github.com/ultimatecoder
53+
- https://www.goodreads.com/user/show/54554593-jaysinh-shukla
54+
- https://www.slideshare.net/jaysinhp/
55+
- https://plus.google.com/u/0/+Jaysinhshukla
56+
google_site_verification: jdvcEp-mfuzvoTr5Z2hwwAYK96cx6zvFocYI1FJ2Gto

_includes/head.html

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
6+
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
7+
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
8+
<meta name="theme-color" content="#424242" >
9+
10+
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
11+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
12+
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
13+
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
14+
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
15+
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png" />
16+
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png" />
17+
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png" />
18+
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png" />
19+
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png" />
20+
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png" />
21+
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png" />
22+
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png" />
23+
24+
{% if jekyll.environment == 'production' and site.google_analytics %}
25+
{% include google-analytics.html %}
26+
{% endif %}
27+
28+
{% seo %}
29+
</head>

_posts/2017-07-21-pydelhi-conf-2017-a-beautiful-conference-happend-at-new-delhi-india.md

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ tag:
77
- conference
88
- django
99
- talks
10+
excerpts: >
11+
PyDelhi conf 2017 was a two-day conference which featured workshops, dev
12+
sprints, both full-length and lightning talks on Python programming language.
1013
---
1114

1215
![PyDelhi Conf

apple-touch-icon-114x114.png

11.2 KB
Loading

apple-touch-icon-120x120.png

12 KB
Loading

apple-touch-icon-144x144.png

15.3 KB
Loading

apple-touch-icon-152x152.png

16.9 KB
Loading

apple-touch-icon-180x180.png

21.2 KB
Loading

apple-touch-icon-57x57.png

4.62 KB
Loading

apple-touch-icon-72x72.png

6.35 KB
Loading

apple-touch-icon-76x76.png

6.74 KB
Loading

apple-touch-icon.png

4.62 KB
Loading

assets/css/nv.d3.min.css

-2
This file was deleted.

assets/js/nv.d3.min.js

-11
This file was deleted.

favicon.ico

33.7 KB
Binary file not shown.

scripts/deploy

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
export JEKYLL_ENV=production
4+
35
bundle exec jekyll build --config _config_production.yml,_config.yml
46

57
chmod 600 ./keypair.pem || exit

0 commit comments

Comments
 (0)