Skip to content

A platform for community discussion. Free, open, simple.

Add theme stylesheet(s) to the crawler layout

Angus McLeod0997eb64868f
diff --git a/app/views/layouts/crawler.html.erb b/app/views/layouts/crawler.html.erb
index ab98695c277..84195992f50 100644
--- a/app/views/layouts/crawler.html.erb
+++ b/app/views/layouts/crawler.html.erb
@@ -6,9 +6,12 @@
<meta name="description" content="<%= @description_meta || SiteSetting.site_description %>">
<%= render partial: "layouts/head" %>
<%- if rtl? %>
- <%= discourse_stylesheet_link_tag(mobile_view? ? :mobile_rtl : :desktop_rtl) %>
+ <%= discourse_stylesheet_link_tag(mobile_view? ? :mobile_rtl : :desktop_rtl) %>
<%- else %>
- <%= discourse_stylesheet_link_tag(mobile_view? ? :mobile : :desktop) %>
+ <%= discourse_stylesheet_link_tag(mobile_view? ? :mobile : :desktop) %>
+ <%- end %>
+ <%- if theme_key %>
+ <%= discourse_stylesheet_link_tag(mobile_view? ? :mobile_theme : :desktop_theme) %>
<%- end %>
<%= theme_lookup("head_tag") %>
<%= render_google_universal_analytics_code %>