From 743dbe2fcc5258b355e4be63c2b9952ba121d3a9 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 23 Dec 2015 10:08:03 +0800 Subject: [PATCH] Fix #261 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @Vanessa219 根据运行模式来决定是否启用压缩的静态资源 --- views/index.html | 90 +++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 85 insertions(+), 5 deletions(-) diff --git a/views/index.html b/views/index.html index 06459ec..878c338 100644 --- a/views/index.html +++ b/views/index.html @@ -7,11 +7,29 @@ - - + {{if eq $.conf.RuntimeMode "dev"}} + + + + + + + {{range $index, $theme := .editorThemes}} + {{end}} + + + + + + + {{else}} + - + {{end}} + + + @@ -604,10 +622,72 @@ } + {{if eq $.conf.RuntimeMode "dev"}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{else}} + + {{end}} - -