From 2831267db1908d8d721b0791c1e963a994802172 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 25 Jan 2017 23:15:25 +0800 Subject: [PATCH] refactor: move js to bottom and move css to top. (#689) --- templates/base/footer.tmpl | 30 ++++++++++++++------ templates/base/head.tmpl | 56 ++++++++++++++++++-------------------- 2 files changed, 48 insertions(+), 38 deletions(-) diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index a1f085a0a..08a079ebb 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -27,26 +27,40 @@ - + + +{{if .RequireSimpleMDE}} + + + + +{{end}} +{{if .RequireGitGraph}} + + + +{{end}} + + + + {{if .RequireHighlightJS}} - {{end}} {{if .RequireMinicolors}} - {{end}} {{if .RequireDatetimepicker}} - {{end}} {{if .RequireDropzone}} - {{end}} - - - + + + diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 176dd51cc..300df5e64 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -1,54 +1,50 @@ - - + + + {{if .Title}}{{.Title}} - {{end}}{{AppName}} + - {{if .GoGetImport}} - - - {{end}} +{{if .GoGetImport}} + + +{{end}} - - - - {{if .RequireSimpleMDE}} - - - - - - {{end}} - - {{if .RequireGitGraph}} +{{if .RequireSimpleMDE}} + +{{end}} + +{{if .RequireGitGraph}} - - - {{end}} +{{end}} - - - - - {{if .Title}}{{.Title}} - {{end}}{{AppName}} - - +{{if .RequireHighlightJS}} + +{{end}} +{{if .RequireMinicolors}} + +{{end}} +{{if .RequireDatetimepicker}} + +{{end}} +{{if .RequireDropzone}} + +{{end}}