From 0997eb64868fa9dec18254870c0015c6ac4543b8 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Mon, 19 Mar 2018 09:15:58 +0800 Subject: [PATCH] Add theme stylesheet(s) to the crawler layout --- app/views/layouts/crawler.html.erb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 @@ <%= 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 %>