瀏覽代碼

allow theming default.tx

George S. Baugh 5 年之前
父節點
當前提交
58f317cd4a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/Trog/Routes/HTML.pm

+ 1 - 1
lib/Trog/Routes/HTML.pm

@@ -222,7 +222,7 @@ sub index ($query,$render_cb, $content = '', $i_styles = []) {
         path =>  "www/$theme_dir/templates",
     ) if $theme_dir;
 
-    $content ||= _pick_processor($rightbar,$processor,$t_processor)->render($landing_page,$query);
+    $content ||= _pick_processor("templates/$landing_page",$processor,$t_processor)->render($landing_page,$query);
 
     my @styles = ('/styles/avatars.css');
     if ($theme_dir) {