mirror of
https://github.com/discourse/discourse.git
synced 2025-06-23 02:11:31 +08:00

Fixes the custom homepage crawler output to include links to the site's top menu.  This also provides a way to override that content via a plugin. Example usage in a `plugin.rb` file: ``` register_html_builder("server:custom-homepage-crawler-view") do |c| "<div>override</div>" end ```
10 lines
215 B
Ruby
10 lines
215 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CustomHomepageController < ApplicationController
|
|
skip_before_action :check_xhr, only: [:index]
|
|
|
|
def index
|
|
respond_to { |format| format.html { render :index } }
|
|
end
|
|
end
|