Sha256: 62e49ef7981abe1ac9acd4869cffcf55c3b5df05f07cccbb6be4f10416dfe06b

Contents?: true

Size: 470 Bytes

Versions: 24

Compression:

Stored size: 470 Bytes

Contents

# frozen_string_literal: true

class XmlController < BaseController
  def sitemap
    @items = []
    @blog = this_blog

    @feed_title = this_blog.blog_name
    @link = this_blog.base_url
    @self_url = request.url

    @items += Article.find_already_published(1000)
    @items += Page.find_already_published(1000)
    @items += Tag.find_all_with_content_counters unless this_blog.unindex_tags

    respond_to do |format|
      format.googlesitemap
    end
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
publify_core-10.0.2 app/controllers/xml_controller.rb
HornsAndHooves-publify_core-10.5.0 app/controllers/xml_controller.rb
HornsAndHooves-publify_core-10.4.0 app/controllers/xml_controller.rb
HornsAndHooves-publify_core-10.3.0 app/controllers/xml_controller.rb
HornsAndHooves-publify_core-10.2.0 app/controllers/xml_controller.rb
publify_core-10.0.1 app/controllers/xml_controller.rb
publify_core-10.0.0 app/controllers/xml_controller.rb
publify_core-9.2.10 app/controllers/xml_controller.rb
HornsAndHooves-publify_core-10.1.1 app/controllers/xml_controller.rb
HornsAndHooves-publify_core-10.1.0 app/controllers/xml_controller.rb
HornsAndHooves-publify_core-10.0.3 app/controllers/xml_controller.rb
HornsAndHooves-publify_core-10.0.2 app/controllers/xml_controller.rb
HornsAndHooves-publify_core-10.0.1 app/controllers/xml_controller.rb
HornsAndHooves-publify_core-10.0.0 app/controllers/xml_controller.rb
publify_core-9.2.9 app/controllers/xml_controller.rb
publify_core-9.2.8 app/controllers/xml_controller.rb
publify_core-9.2.7 app/controllers/xml_controller.rb
publify_core-9.2.6 app/controllers/xml_controller.rb
publify_core-9.2.5 app/controllers/xml_controller.rb
publify_core-9.2.4 app/controllers/xml_controller.rb