From 34891f09bf6397c52f99da47b4e7730bab44058b Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Mon, 8 Dec 2014 16:09:00 +0100 Subject: [PATCH] themengruppen statt themen ind der sitmap --- config/sitemap.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/sitemap.rb b/config/sitemap.rb index 7d03e22..bd2dbe5 100644 --- a/config/sitemap.rb +++ b/config/sitemap.rb @@ -49,13 +49,13 @@ SitemapGenerator::Sitemap.create do end end Globalize.with_locale(:en) do - Thema.public.with_translations(:en).find_each do |thema| - add thema_path(thema, :locale=>:en, :theme=>"default"),:lastmod=>thema.updated_at + Themengruppe.public.with_translations(:en).find_each do |thema| + add themengruppe_path(thema, :locale=>:en, :theme=>nil),:lastmod=>thema.updated_at end end Globalize.with_locale(:de) do - Thema.public.with_translations(:de).find_each do |thema| - add thema_path(thema, :locale=>:de, :theme=>"default"),:lastmod=>thema.updated_at, :alternate=>{:href=>thema_path(thema, :locale=>:de, :theme=>"blue1"), :lang=>"de"} + Themengruppe.public.with_translations(:de).find_each do |thema| + add themengruppe_path(thema, :locale=>:de, :theme=>nil),:lastmod=>thema.updated_at, :lang=>"de"} end end # Put links creation logic here.