mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-21 18:42:29 +01:00
Add sitemap
This commit is contained in:
parent
200d10122a
commit
63b898571d
1
Gemfile
1
Gemfile
@ -17,6 +17,7 @@ gem 'unicorn'
|
||||
|
||||
group :development do
|
||||
gem 'shotgun'
|
||||
gem 'sitemap_generator'
|
||||
end
|
||||
|
||||
group :development, :test do
|
||||
|
@ -4,6 +4,7 @@ GEM
|
||||
addressable (2.5.2)
|
||||
public_suffix (>= 2.0.2, < 4.0)
|
||||
ast (2.4.0)
|
||||
builder (3.2.3)
|
||||
coderay (1.1.2)
|
||||
crack (0.4.3)
|
||||
safe_yaml (~> 1.0.0)
|
||||
@ -74,6 +75,8 @@ GEM
|
||||
rack (~> 2.0)
|
||||
rack-protection (= 2.0.4)
|
||||
tilt (~> 2.0)
|
||||
sitemap_generator (6.0.1)
|
||||
builder (~> 3.0)
|
||||
thread_safe (0.3.6)
|
||||
tilt (2.0.8)
|
||||
tzinfo (1.2.5)
|
||||
@ -107,6 +110,7 @@ DEPENDENCIES
|
||||
sequel_pg
|
||||
shotgun
|
||||
sinatra
|
||||
sitemap_generator
|
||||
unicorn
|
||||
vcr
|
||||
webmock
|
||||
|
5
config/sitemap.rb
Normal file
5
config/sitemap.rb
Normal file
@ -0,0 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
SitemapGenerator::Sitemap.default_host = 'https://frankfurter.app'
|
||||
SitemapGenerator::Sitemap.public_path = 'lib/web/public'
|
||||
SitemapGenerator::Sitemap.create
|
7
lib/tasks/sitemap.rake
Normal file
7
lib/tasks/sitemap.rake
Normal file
@ -0,0 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
begin
|
||||
require 'sitemap_generator/tasks'
|
||||
rescue LoadError
|
||||
return
|
||||
end
|
4
lib/web/public/robots.txt
Normal file
4
lib/web/public/robots.txt
Normal file
@ -0,0 +1,4 @@
|
||||
User-agent: *
|
||||
Disallow:
|
||||
|
||||
Sitemap: https://frankfurter.app/sitemap.xml.gz
|
BIN
lib/web/public/sitemap.xml.gz
Normal file
BIN
lib/web/public/sitemap.xml.gz
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user