diff --git a/Gemfile b/Gemfile index cb6f72f..662c658 100644 --- a/Gemfile +++ b/Gemfile @@ -24,6 +24,8 @@ gem 'omniauth_openid_connect' gem "wicked_pdf", "~> 2.1" gem "dalli", "~> 3.2" +gem 'decidim-sitemaps' + group :development, :test do gem "byebug", "~> 11.0", platform: :mri diff --git a/config/initializers/sitemap.rb b/config/initializers/sitemap.rb new file mode 100644 index 0000000..694e094 --- /dev/null +++ b/config/initializers/sitemap.rb @@ -0,0 +1,4 @@ +Decidim::Sitemaps.configure do |config| + config.users = { enabled: false, changefreq: "daily", priority: 0.5 } + config.proposals = { enabled: true, changefreq: "daily", priority: 0.5, scopes: [:published] } + end \ No newline at end of file