Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

Commit

Permalink
Remove the sitemap generator config
Browse files Browse the repository at this point in the history
  • Loading branch information
cleicar committed Apr 5, 2019
1 parent c10720e commit 2b4677c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 42 deletions.
12 changes: 4 additions & 8 deletions Gemfile.lock
Expand Up @@ -13,7 +13,6 @@ PATH
rake (~> 12.3)
redcarpet
rspec
sitemap_generator

GEM
remote: https://rubygems.org/
Expand All @@ -25,14 +24,13 @@ GEM
tzinfo (~> 1.1)
addressable (2.6.0)
public_suffix (>= 2.0.2, < 4.0)
builder (3.2.3)
byebug (10.0.2)
coderay (1.1.2)
colorator (1.1.0)
colorize (0.8.1)
concurrent-ruby (1.1.4)
diff-lcs (1.3)
dotenv (2.6.0)
dotenv (2.7.2)
ethon (0.11.0)
ffi (>= 1.3.0)
ffi (1.10.0)
Expand Down Expand Up @@ -75,7 +73,7 @@ GEM
jekyll-watch (1.5.1)
listen (~> 3.0)
kramdown (1.17.0)
liquid (4.0.1)
liquid (4.0.3)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
Expand Down Expand Up @@ -125,14 +123,12 @@ GEM
rspec-support (~> 3.8.0)
rspec-support (3.8.0)
ruby_dep (1.5.0)
safe_yaml (1.0.4)
sass (3.7.3)
safe_yaml (1.0.5)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sitemap_generator (6.0.2)
builder (~> 3.0)
slop (3.6.0)
thor (0.19.4)
thread_safe (0.3.6)
Expand Down
27 changes: 0 additions & 27 deletions _plugins/sitemap.rb

This file was deleted.

1 change: 0 additions & 1 deletion blog.gemspec
Expand Up @@ -15,7 +15,6 @@ Gem::Specification.new do |s|
s.add_dependency('jekyll-titleize')
s.add_dependency('jekyll-paginate')
s.add_dependency('jekyll-feed')
s.add_dependency('sitemap_generator')
s.add_dependency('dotenv')
s.add_dependency('rspec')

Expand Down
2 changes: 2 additions & 0 deletions robots.txt
@@ -0,0 +1,2 @@
# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
Sitemap: http://bundler-audit-production.s3.amazonaws.com/blog_sitemap.xml
6 changes: 0 additions & 6 deletions spec/blog_spec.rb
Expand Up @@ -30,12 +30,6 @@
expect(data['twitter:image:src']).to eq 'https://fastruby.io/blog/assets/images/profile.png'
end

it 'generates the sitemap with correct domain name' do
doc = Nokogiri::XML(IO.read('_site/sitemap.xml'))
url = doc.xpath('/aws:urlset/aws:url/aws:loc', 'aws' => 'http://www.sitemaps.org/schemas/sitemap/0.9')[0]
expect(url.text).to eq 'https://fastruby.io/blog'
end

it 'generates share button for twitter' do
doc = Nokogiri::HTML(IO.read(file_path))
href = doc.search('.icon-twitter').first['href']
Expand Down

0 comments on commit 2b4677c

Please sign in to comment.