forked from bofh/fetsite
sitemap add themen
This commit is contained in:
@@ -52,11 +52,18 @@ SitemapGenerator::Sitemap.create do
|
|||||||
Themengruppe.public.with_translations(:en).find_each do |thema|
|
Themengruppe.public.with_translations(:en).find_each do |thema|
|
||||||
add themengruppe_path(thema, :locale=>:en, :theme=>nil),:lastmod=>thema.updated_at
|
add themengruppe_path(thema, :locale=>:en, :theme=>nil),:lastmod=>thema.updated_at
|
||||||
end
|
end
|
||||||
|
Thema.public.with_translations(:en).find_each do |thema|
|
||||||
|
add thema_path(thema, :locale=>:en, :theme=>nil),:lastmod=>thema.updated_at
|
||||||
|
end
|
||||||
end
|
end
|
||||||
Globalize.with_locale(:de) do
|
Globalize.with_locale(:de) do
|
||||||
Themengruppe.public.with_translations(:de).find_each do |thema|
|
Themengruppe.public.with_translations(:de).find_each do |thema|
|
||||||
add themengruppe_path(thema, :locale=>:de, :theme=>nil),:lastmod=>thema.updated_at
|
add themengruppe_path(thema, :locale=>:de, :theme=>nil),:lastmod=>thema.updated_at
|
||||||
end
|
end
|
||||||
|
Thema.public.with_translations(:de).find_each do |thema|
|
||||||
|
add thema_path(thema, :locale=>:de, :theme=>nil),:lastmod=>thema.updated_at
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
# Put links creation logic here.
|
# Put links creation logic here.
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user