mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 13:51:09 +08:00
DEV: allow themes to render their own custom homepage (#26291)
This PR adds a theme modifier and route so that custom themes can opt to show their own homepage. See PR description for example usage.
This commit is contained in:
7
app/controllers/custom_homepage_controller.rb
Normal file
7
app/controllers/custom_homepage_controller.rb
Normal file
@ -0,0 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CustomHomepageController < ApplicationController
|
||||
def index
|
||||
render "default/custom"
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user