- {{with .Eidt}}你正在编辑的是草稿, 你也可以 删除它{{end}} + {{if .Edit.IsDraft}}你正在编辑的是草稿, 你也可以 删除它{{end}}

@@ -654,23 +653,7 @@ $(document).ready(function() { return false; }); } - - if (isMarkdown) { - initMarkdown(); - } else { - var notice = $('

这篇文章不是由Markdown语法创建的, 继续使用Markdown编辑它吗? ' + ' ' + '
') - .hide().insertBefore(textarea).slideDown(); - - $('.yes', notice).click(function() { - notice.remove(); - $('').appendTo('.submit'); - initMarkdown(); - }); - - $('.no', notice).click(function() { - notice.remove(); - }); - } + initMarkdown(); }); @@ -780,9 +763,9 @@ $(document).ready(function() { $('#tab-files').bind('init', function() { var uploader = new plupload.Uploader({ browse_button: $('.upload-file').get(0), - url: 'http://localhost/index.php/action/upload?_=53e23a1bd0daab03b05d9c23190904a4', + url: '/admin/api/file-upload', runtimes: 'html5,flash,html4', - flash_swf_url: 'http://localhost/admin/js/Moxie.swf', + flash_swf_url: '/static/admin/js/Moxie.swf', drop_element: $('.upload-area').get(0), filters: { max_file_size: '2mb', diff --git a/views/homeLayout.html b/views/homeLayout.html index e77033e..17ef146 100644 --- a/views/homeLayout.html +++ b/views/homeLayout.html @@ -1 +1 @@ -{{.Title}}{{if .Version}}{{end}}{{if .Version}}{{else}}{{end}}
{{if .HomePage}} {{template "home" .}} {{else if .ArticlePage}} {{template "article" .}}{{else if .SeriesPage}}{{template "series" .}}{{else if .ArchivesPage}}{{template "archives" .}} {{else if .BlogrollPage}}{{template "blogroll" .}}{{else if .AboutPage}}{{template "about" .}}{{else if .SearchPage}} {{template "search" .}}{{else if .NotFoundPage}}{{template "notfound"}} {{end}}
{{if .Version}}{{else}}{{end}}{{if .Version}}{{else}}{{end}}{{if .Version}}{{else}}{{end}}{{if .Version}}{{else}}{{end}} +{{.Title}}{{if .Version}}{{end}}{{if .Version}}{{else}}{{end}}
{{if .HomePage}} {{template "home" .}} {{else if .ArticlePage}} {{template "article" .}}{{else if .SeriesPage}}{{template "series" .}}{{else if .ArchivesPage}}{{template "archives" .}} {{else if .BlogrollPage}}{{template "blogroll" .}}{{else if .AboutPage}}{{template "about" .}}{{else if .SearchPage}} {{template "search" .}}{{else if .NotFoundPage}}{{template "notfound"}} {{end}}
{{if .Version}}{{else}}{{end}}{{if .Version}}{{else}}{{end}}{{if .Version}}{{else}}{{end}}{{if .Version}}{{else}}{{end}}