init commit
This commit is contained in:
58
views/admin/aboutmanage.jade
Normal file
58
views/admin/aboutmanage.jade
Normal file
@@ -0,0 +1,58 @@
|
||||
extends ../shared/layoutAdmin
|
||||
block content
|
||||
link(href='/libs/sweetalert/dist/sweetalert.css', rel='stylesheet')
|
||||
link(href='/libs/blueimp-file-upload/css/jquery.fileupload.css', rel='stylesheet')
|
||||
.row.wrapper.border-bottom.white-bg.page-heading
|
||||
.col-lg-8
|
||||
h2 关于管理
|
||||
.wrapper.wrapper-content.animated.fadeIn
|
||||
.row
|
||||
.col-lg-12
|
||||
.ibox
|
||||
.ibox-content
|
||||
.row
|
||||
.col-lg-4.col-lg-offset-4
|
||||
.about-block
|
||||
form#formAbout(action='/admin/saveAbout', method='Post')
|
||||
.widget-head-color-box.navy-bg.p-lg.text-center
|
||||
.m-b-md
|
||||
input#FirstLine.form-group.form-control.text-center(type='text', name='FirstLine', placeholder='第一行文本', value=about.FirstLine)
|
||||
input#SecondLine.form-control.text-center(type='text', name='SecondLine', placeholder='第一行文本', value=about.SecondLine)
|
||||
span.fileinput-button
|
||||
img.img-circle.profile-img.m-b-md(alt='profile', src=about.PhotoPath)
|
||||
input.fileupload(type='file', name='file')
|
||||
input#PhotoPath(type='hidden', name='PhotoPath', value=about.PhotoPath)
|
||||
span.fileinput-button
|
||||
img.wechat-img.m-b-md(alt='wechat', src=about.QrcodePath, style='width:100px;height:100px;')
|
||||
input.fileupload(type='file', name='file')
|
||||
input#QrcodePath(type='hidden', name='QrcodePath',value=about.QrcodePath)
|
||||
h4
|
||||
span#job-title
|
||||
textarea#ThirdLine.form-control(name='ThirdLine', placeholder='第三行文本,支持用 | 分割切换显示')
|
||||
!=about.ThirdLine
|
||||
.widget-text-box
|
||||
p
|
||||
textarea#Profile.form-control(name='Profile', cols='3', placeholder='个人简介')
|
||||
!=about.Profile
|
||||
.row.form-inline
|
||||
.col-md-6
|
||||
i.fa.fa-wechat
|
||||
=' '
|
||||
input#Wechat.form-control(type='text', name='Wechat', placeholder='微信号', value=about.Wechat)
|
||||
=' '
|
||||
.col-md-6
|
||||
i.fa.fa-envelope
|
||||
=' '
|
||||
input#Email.form-control(type='text', name='Email', placeholder='Email地址', value=about.Email)
|
||||
button#btnSave.btn.btn-primary.pull-right.m-t-sm(type='button')
|
||||
i.fa.fa-cloud-upload
|
||||
| 保存修改
|
||||
script(type='text/javascript', src='/libs/jquery/dist/jquery.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/bootstrap/dist/js/bootstrap.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/metisMenu/dist/metisMenu.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/admin.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/blueimp-file-upload/js/vendor/jquery.ui.widget.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/blueimp-file-upload/js/jquery.fileupload.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/sweetalert/dist/sweetalert.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/aboutmanage.js', charset='utf-8')
|
||||
|
||||
32
views/admin/articlemanage.jade
Normal file
32
views/admin/articlemanage.jade
Normal file
@@ -0,0 +1,32 @@
|
||||
extends ../shared/layoutAdmin
|
||||
block content
|
||||
link(href='/libs/bootstrap-table/dist/bootstrap-table.min.css', rel='stylesheet')
|
||||
link(href='/libs/sweetalert/dist/sweetalert.css', rel='stylesheet')
|
||||
.row.wrapper.border-bottom.white-bg.page-heading
|
||||
.col-lg-8
|
||||
h2 文章管理
|
||||
.wrapper.wrapper-content.animated.fadeIn
|
||||
.row
|
||||
.col-lg-12
|
||||
.ibox
|
||||
.ibox-content
|
||||
#toolbar
|
||||
button#remove.btn.btn-white(disabled='')
|
||||
i.fa.fa-trash-o
|
||||
=' '
|
||||
span.badge
|
||||
=' '
|
||||
a.btn.btn-white(href='/admin/newarticle')
|
||||
i.fa.fa-plus
|
||||
| 新的文章
|
||||
table#articles
|
||||
script(type='text/javascript', src='/libs/jquery/dist/jquery.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/bootstrap/dist/js/bootstrap.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/metisMenu/dist/metisMenu.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/admin.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/bootstrap-table/dist/bootstrap-table.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/bootstrap-table/dist/extensions/filter-control/bootstrap-table-filter-control.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/bootstrap-table/dist/locale/bootstrap-table-zh-CN.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/lodash/dist/lodash.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/sweetalert/dist/sweetalert.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/articlemanage.js', charset='utf-8')
|
||||
50
views/admin/cachemanage.jade
Normal file
50
views/admin/cachemanage.jade
Normal file
@@ -0,0 +1,50 @@
|
||||
extends ../shared/layoutAdmin
|
||||
block content
|
||||
link(href='/libs/fuelux/dist/css/fuelux.min.css', rel='stylesheet')
|
||||
link(href='/libs/sweetalert/dist/sweetalert.css', rel='stylesheet')
|
||||
.row.wrapper.border-bottom.white-bg.page-heading
|
||||
.col-lg-8
|
||||
h2 缓存管理
|
||||
.wrapper.wrapper-content.animated.fadeIn
|
||||
.row
|
||||
.col-md-6.col-md-offset-3
|
||||
.ibox.m-t-xl
|
||||
.row
|
||||
.col-md-10
|
||||
#keyinput.input-group.input-append.dropdown.combobox(data-initialize='combobox')
|
||||
input#cacheKey.form-control(type='text', placeholder='缓存key')
|
||||
.input-group-btn
|
||||
button.btn.btn-white.dropdown-toggle(type='button', data-toggle='dropdown')
|
||||
span.caret
|
||||
ul.dropdown-menu.dropdown-menu-right(style='left:auto;')
|
||||
li(data-value='categories')
|
||||
a(href='#') 【文章分类】categories
|
||||
li(data-value='categories_all')
|
||||
a(href='#') 【文章分类(含全部分类和未分类)】categories_all
|
||||
li(data-value='category_分类alias')
|
||||
a(href='#') 【由alias获取分类】category_分类alias
|
||||
li(data-value='posts_cateid_分类id_pageindex_页码_pagesize_每页条数_sortby_排序类型_keyword_关键字_filtertype_查询类型')
|
||||
a(href='#') 【文章列表数据】posts_cateid_分类id_pageindex_页码_pagesize_每页条数_sortby_排序类型_keyword_关键字_filtertype_查询类型
|
||||
li(data-value='posts_count_cateid_分类id_pageindex_页码_pagesize_每页条数_sortby_排序类型_keyword_关键字_filtertype_查询类型')
|
||||
a(href='#') 【文章列表条数】posts_count_cateid_分类id_pageindex_页码_pagesize_每页条数_sortby_排序类型_keyword_关键字_filtertype_查询类型
|
||||
li(data-value='article_文章alias')
|
||||
a(href='#') 【由alias获取文章】article_文章alias
|
||||
.col-md-2.text-right
|
||||
button#btnQuery.btn.btn-white(type='button')
|
||||
i.fa.fa-search
|
||||
| 检索缓存
|
||||
.row
|
||||
.col-md-12
|
||||
textarea#cacheContent.form-control.m-t-sm(rows='20', style='max-width:100%;min-width:100%;')
|
||||
.row
|
||||
.col-md-12.text-right
|
||||
button#btnClear.btn.btn-primary.m-t-sm(type='button')
|
||||
i.fa.fa-times
|
||||
| 清除缓存
|
||||
script(type='text/javascript', src='/libs/jquery/dist/jquery.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/bootstrap/dist/js/bootstrap.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/metisMenu/dist/metisMenu.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/admin.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/fuelux/dist/js/fuelux.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/sweetalert/dist/sweetalert.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/cachemanage.js', charset='utf-8')
|
||||
30
views/admin/categorymanage.jade
Normal file
30
views/admin/categorymanage.jade
Normal file
@@ -0,0 +1,30 @@
|
||||
extends ../shared/layoutAdmin
|
||||
block content
|
||||
link(href='/libs/fuelux/dist/css/fuelux.min.css', rel='stylesheet')
|
||||
link(href='/libs/sweetalert/dist/sweetalert.css', rel='stylesheet')
|
||||
link(href='/libs/blueimp-file-upload/css/jquery.fileupload.css', rel='stylesheet')
|
||||
.row.wrapper.border-bottom.white-bg.page-heading
|
||||
.col-lg-8
|
||||
h2 分类管理
|
||||
.wrapper.wrapper-content.animated.fadeIn
|
||||
.row
|
||||
.col-md-10.col-md-offset-1
|
||||
.ibox
|
||||
div
|
||||
ul#cate-list.list-group.list-unstyled
|
||||
button#btnNew.btn.btn-white
|
||||
i.fa.fa-plus
|
||||
| 新的分类
|
||||
button#btnSave.btn.btn-primary.pull-right
|
||||
i.fa.fa-cloud-upload
|
||||
| 保存修改
|
||||
script(type='text/javascript', src='/libs/jquery/dist/jquery.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/bootstrap/dist/js/bootstrap.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/metisMenu/dist/metisMenu.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/admin.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/fuelux/dist/js/fuelux.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/jquery-sortable/source/js/jquery-sortable-min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/blueimp-file-upload/js/vendor/jquery.ui.widget.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/blueimp-file-upload/js/jquery.fileupload.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/sweetalert/dist/sweetalert.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/categorymanage.js', charset='utf-8')
|
||||
15
views/admin/comments.jade
Normal file
15
views/admin/comments.jade
Normal file
@@ -0,0 +1,15 @@
|
||||
extends ../shared/layoutAdmin
|
||||
block content
|
||||
.row.wrapper.border-bottom.white-bg.page-heading
|
||||
.col-lg-8
|
||||
h2 评论管理
|
||||
.wrapper.wrapper-content.animated.fadeIn
|
||||
.row
|
||||
.col-lg-12
|
||||
.ibox
|
||||
.ibox-content
|
||||
iframe(src='http://changyan.kuaizhan.com/audit/comments/AUDITED/1', style='width: 100%; min-height: 4000px; border: none;')
|
||||
script(type='text/javascript', src='/libs/jquery/dist/jquery.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/bootstrap/dist/js/bootstrap.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/metisMenu/dist/metisMenu.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/admin.js', charset='utf-8')
|
||||
118
views/admin/editarticle.jade
Normal file
118
views/admin/editarticle.jade
Normal file
@@ -0,0 +1,118 @@
|
||||
extends ../shared/layoutAdmin
|
||||
block content
|
||||
link(href='/libs/fuelux/dist/css/fuelux.min.css', rel='stylesheet')
|
||||
link(href='/libs/sweetalert/dist/sweetalert.css', rel='stylesheet')
|
||||
link(href='/libs/form.validation/dist/css/formValidation.min.css', rel='stylesheet')
|
||||
.row.wrapper.border-bottom.white-bg.page-heading
|
||||
.col-lg-8
|
||||
h2 编辑文章
|
||||
.wrapper.wrapper-content.animated.fadeIn
|
||||
.row
|
||||
.col-lg-12
|
||||
.ibox
|
||||
.ibox-content
|
||||
form#postForm(action='/admin/saveArticle', method='post')
|
||||
.row
|
||||
.col-md-9
|
||||
.form-group
|
||||
label(for='Title') 标题
|
||||
input#Title.form-control(type='text', name='Title', placeholder='请输入标题',value=post.Title)
|
||||
.col-md-3
|
||||
.form-group
|
||||
label(for='CategoryId', style='display:block;') 分类
|
||||
#Categorylist.btn-group.selectlist(data-resize='auto', data-initialize='selectlist')
|
||||
button.btn.btn-white.dropdown-toggle(data-toggle='dropdown', type='button')
|
||||
span.selected-label
|
||||
span.caret
|
||||
span.sr-only Toggle Dropdown
|
||||
ul.dropdown-menu(role='menu')
|
||||
input#CategoryId.hidden.hidden-field(type='text', name='CategoryId', readonly='readonly', aria-hidden='true',value=post.CategoryId)
|
||||
.row
|
||||
.col-md-9
|
||||
.form-group
|
||||
label(for='Alias') Alias
|
||||
input#Alias.form-control(type='text', name='Alias', placeholder='请输入Alias',value=post.Alias)
|
||||
.col-md-3
|
||||
.form-group
|
||||
button.btn.btn-sm.btn-white.btn-alias(type='button')
|
||||
i.fa.fa-flash
|
||||
| 根据标题自动生成
|
||||
.form-group
|
||||
label(for='Summary') 摘要
|
||||
textarea#Summary.form-control(name='Summary', style='min-width: 100%;max-width: 100%;', placeholder='请输入摘要')
|
||||
!=post.Summary
|
||||
.form-group
|
||||
label(style='display:block;') 来源
|
||||
label#soruceLocal.radio-custom.radio-inline(data-initialize='radio')
|
||||
input.sr-only(data-toggle='#block-local', name='Source', type='radio', value='0', checked='checked')
|
||||
| 本地
|
||||
label#soruceLink.radio-custom.radio-inline(data-initialize='radio')
|
||||
input.sr-only(data-toggle='#block-link', name='Source', type='radio', value='1')
|
||||
| 外链
|
||||
#block-local
|
||||
.form-group
|
||||
label(for='pillbox-input') 标签
|
||||
#myPillbox.pillbox(data-initialize='pillbox')
|
||||
ul.clearfix.pill-group
|
||||
li.pillbox-input-wrap.btn-group
|
||||
a.pillbox-more
|
||||
| and
|
||||
span.pillbox-more-count
|
||||
| more...
|
||||
input#pillbox-input.form-control.dropdown-toggle.pillbox-add-item(type='text', placeholder='回车新增')
|
||||
button.dropdown-toggle.sr-only(type='button')
|
||||
span.caret
|
||||
span.sr-only Toggle Dropdown
|
||||
ul.suggest.dropdown-menu(role='menu', data-toggle='dropdown', data-flip='auto')
|
||||
input#Labels(type='hidden', name='Labels',value=post.Labels)
|
||||
.form-group
|
||||
label 正文
|
||||
script#editor(type='text/plain')
|
||||
!=post.Content
|
||||
#block-link
|
||||
.form-group
|
||||
label(for='Url') Url
|
||||
input#Url.form-control(type='text', name='Url', placeholder='请输入链接地址',value=post.Url)
|
||||
div
|
||||
if(!post.IsDraft)
|
||||
button#btnUpdate.btn.btn-primary(type='submit')
|
||||
i.fa.fa-cloud-upload
|
||||
| 更新
|
||||
=' '
|
||||
a.btn.btn-white(href='/admin/articlemanage')
|
||||
i.fa.fa-reply
|
||||
| 返回
|
||||
else
|
||||
button#btnPublish.btn.btn-danger(type='submit')
|
||||
i.fa.fa-send
|
||||
| 发布
|
||||
=' '
|
||||
button#btnSave.btn.btn-primary(type='button')
|
||||
i.fa.fa-save
|
||||
| 保存草稿
|
||||
=' '
|
||||
a.btn.btn-white(href='/admin/articlemanage')
|
||||
i.fa.fa-reply
|
||||
| 返回
|
||||
input#UniqueId(type='hidden',name='UniqueId',value=post._id)
|
||||
input#IsDraft(type='hidden',name='IsDraft',value='#{post.IsDraft ? "True" : "False"}')
|
||||
script(type='text/javascript', src='/libs/jquery/dist/jquery.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/bootstrap/dist/js/bootstrap.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/form.validation/dist/js/formValidation.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/form.validation/dist/js/framework/bootstrap.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/form.validation/dist/js/language/zh_CN.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/metisMenu/dist/metisMenu.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/admin.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/ueditor/ueditor.config.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/ueditor/ueditor.all.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/ueditor/dialogs/insertalert/insertalert.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/ueditor/dialogs/inserticon/inserticon.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/ueditor/dialogs/insertlabel/insertlabel.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/fuelux/dist/js/fuelux.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/sweetalert/dist/sweetalert.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/js-md5/js/md5.min.js', charset='utf-8')
|
||||
script.
|
||||
var categoryId = '#{post.CategoryId}';
|
||||
var source = '#{post.Source}';
|
||||
var translateKey = '#{settings.TranslateKey}';
|
||||
script(type='text/javascript', src='/javascripts/editarticle.js', charset='utf-8')
|
||||
20
views/admin/exception.jade
Normal file
20
views/admin/exception.jade
Normal file
@@ -0,0 +1,20 @@
|
||||
extends ../shared/layoutAdmin
|
||||
block content
|
||||
link(href='/libs/bootstrap-table/dist/bootstrap-table.min.css', rel='stylesheet')
|
||||
.row.wrapper.border-bottom.white-bg.page-heading
|
||||
.col-lg-8
|
||||
h2 异常管理
|
||||
.wrapper.wrapper-content.animated.fadeIn
|
||||
.row
|
||||
.col-lg-12
|
||||
.ibox
|
||||
.ibox-content
|
||||
table#exceptions
|
||||
script(type='text/javascript', src='/libs/jquery/dist/jquery.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/bootstrap/dist/js/bootstrap.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/metisMenu/dist/metisMenu.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/admin.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/bootstrap-table/dist/bootstrap-table.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/bootstrap-table/dist/locale/bootstrap-table-zh-CN.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/lodash/dist/lodash.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/exception.js', charset='utf-8')
|
||||
15
views/admin/guestbook.jade
Normal file
15
views/admin/guestbook.jade
Normal file
@@ -0,0 +1,15 @@
|
||||
extends ../shared/layoutAdmin
|
||||
block content
|
||||
.row.wrapper.border-bottom.white-bg.page-heading
|
||||
.col-lg-8
|
||||
h2 留言管理
|
||||
.wrapper.wrapper-content.animated.fadeIn
|
||||
.row
|
||||
.col-lg-12
|
||||
.ibox
|
||||
.ibox-content
|
||||
iframe(src='http://www.uyan.cc/comment/content/?domain=#{settings.SiteDomain}&ufrom=&stat=0', style='width: 100%; min-height: 2000px; border: none;')
|
||||
script(type='text/javascript', src='/libs/jquery/dist/jquery.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/bootstrap/dist/js/bootstrap.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/metisMenu/dist/metisMenu.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/admin.js', charset='utf-8')
|
||||
15
views/admin/index.jade
Normal file
15
views/admin/index.jade
Normal file
@@ -0,0 +1,15 @@
|
||||
extends ../shared/layoutAdmin
|
||||
block content
|
||||
.row.wrapper.border-bottom.white-bg.page-heading
|
||||
.col-lg-8
|
||||
h2 网站统计
|
||||
.wrapper.wrapper-content.animated.fadeIn
|
||||
.row
|
||||
.col-lg-12
|
||||
.ibox
|
||||
.ibox-content
|
||||
iframe(src='http://tongji.baidu.com', style='width: 100%; min-height: 2000px; border: none;')
|
||||
script(type='text/javascript', src='/libs/jquery/dist/jquery.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/bootstrap/dist/js/bootstrap.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/metisMenu/dist/metisMenu.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/admin.js', charset='utf-8')
|
||||
101
views/admin/newarticle.jade
Normal file
101
views/admin/newarticle.jade
Normal file
@@ -0,0 +1,101 @@
|
||||
extends ../shared/layoutAdmin
|
||||
block content
|
||||
link(href='/libs/fuelux/dist/css/fuelux.min.css', rel='stylesheet')
|
||||
link(href='/libs/sweetalert/dist/sweetalert.css', rel='stylesheet')
|
||||
link(href='/libs/form.validation/dist/css/formValidation.min.css', rel='stylesheet')
|
||||
.row.wrapper.border-bottom.white-bg.page-heading
|
||||
.col-lg-8
|
||||
h2 新的文章
|
||||
.wrapper.wrapper-content.animated.fadeIn
|
||||
.row
|
||||
.col-lg-12
|
||||
.ibox
|
||||
.ibox-content
|
||||
form#postForm(action='/admin/saveArticle', method='post')
|
||||
.row
|
||||
.col-md-9
|
||||
.form-group
|
||||
label(for='Title') 标题
|
||||
input#Title.form-control(type='text', name='Title', placeholder='请输入标题')
|
||||
.col-md-3
|
||||
.form-group
|
||||
label(for='CategoryId', style='display:block;') 分类
|
||||
#Categorylist.btn-group.selectlist(data-resize='auto', data-initialize='selectlist')
|
||||
button.btn.btn-white.dropdown-toggle(data-toggle='dropdown', type='button')
|
||||
span.selected-label
|
||||
span.caret
|
||||
span.sr-only Toggle Dropdown
|
||||
ul.dropdown-menu(role='menu')
|
||||
input#CategoryId.hidden.hidden-field(type='text', name='CategoryId', readonly='readonly', aria-hidden='true')
|
||||
.row
|
||||
.col-md-9
|
||||
.form-group
|
||||
label(for='Alias') Alias
|
||||
input#Alias.form-control(type='text', name='Alias', placeholder='请输入Alias')
|
||||
.col-md-3
|
||||
.form-group
|
||||
button.btn.btn-sm.btn-white.btn-alias(type='button')
|
||||
i.fa.fa-flash
|
||||
| 根据标题自动生成
|
||||
.form-group
|
||||
label(for='Summary') 摘要
|
||||
textarea#Summary.form-control(name='Summary', style='min-width: 100%;max-width: 100%;', placeholder='请输入摘要')
|
||||
.form-group
|
||||
label(style='display:block;') 来源
|
||||
label#soruceLocal.radio-custom.radio-inline(data-initialize='radio')
|
||||
input.sr-only(data-toggle='#block-local', name='Source', type='radio', value='0', checked='checked')
|
||||
| 本地
|
||||
label#soruceLink.radio-custom.radio-inline(data-initialize='radio')
|
||||
input.sr-only(data-toggle='#block-link', name='Source', type='radio', value='1')
|
||||
| 外链
|
||||
#block-local
|
||||
.form-group
|
||||
label(for='pillbox-input') 标签
|
||||
#myPillbox.pillbox(data-initialize='pillbox')
|
||||
ul.clearfix.pill-group
|
||||
li.pillbox-input-wrap.btn-group
|
||||
a.pillbox-more
|
||||
| and
|
||||
span.pillbox-more-count
|
||||
| more...
|
||||
input#pillbox-input.form-control.dropdown-toggle.pillbox-add-item(type='text', placeholder='回车新增')
|
||||
button.dropdown-toggle.sr-only(type='button')
|
||||
span.caret
|
||||
span.sr-only Toggle Dropdown
|
||||
ul.suggest.dropdown-menu(role='menu', data-toggle='dropdown', data-flip='auto')
|
||||
input#Labels(type='hidden', name='Labels')
|
||||
.form-group
|
||||
label 正文
|
||||
script#editor(type='text/plain')
|
||||
#block-link
|
||||
.form-group
|
||||
label(for='Url') Url
|
||||
input#Url.form-control(type='text', name='Url', placeholder='请输入链接地址')
|
||||
div
|
||||
button#btnPublish.btn.btn-danger(type='submit')
|
||||
i.fa.fa-send
|
||||
| 发布
|
||||
=' '
|
||||
button#btnSave.btn.btn-primary(type='button')
|
||||
i.fa.fa-save
|
||||
| 存为草稿
|
||||
input#UniqueId(type='hidden',name='UniqueId',value=uniqueId)
|
||||
input#IsDraft(type='hidden',name='IsDraft')
|
||||
script(type='text/javascript', src='/libs/jquery/dist/jquery.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/bootstrap/dist/js/bootstrap.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/form.validation/dist/js/formValidation.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/form.validation/dist/js/framework/bootstrap.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/form.validation/dist/js/language/zh_CN.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/metisMenu/dist/metisMenu.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/admin.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/ueditor/ueditor.config.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/ueditor/ueditor.all.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/ueditor/dialogs/insertalert/insertalert.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/ueditor/dialogs/inserticon/inserticon.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/ueditor/dialogs/insertlabel/insertlabel.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/fuelux/dist/js/fuelux.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/sweetalert/dist/sweetalert.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/js-md5/js/md5.min.js', charset='utf-8')
|
||||
script.
|
||||
var translateKey = '#{settings.TranslateKey}';
|
||||
script(type='text/javascript', src='/javascripts/newarticle.js', charset='utf-8')
|
||||
168
views/admin/settings.jade
Normal file
168
views/admin/settings.jade
Normal file
@@ -0,0 +1,168 @@
|
||||
extends ../shared/layoutAdmin
|
||||
block content
|
||||
link(href='/libs/fuelux/dist/css/fuelux.min.css', rel='stylesheet')
|
||||
link(href='/libs/blueimp-file-upload/css/jquery.fileupload.css', rel='stylesheet')
|
||||
link(href='/libs/switchery/dist/switchery.min.css', rel='stylesheet')
|
||||
link(href='/libs/sweetalert/dist/sweetalert.css', rel='stylesheet')
|
||||
.row.wrapper.border-bottom.white-bg.page-heading
|
||||
.col-lg-8
|
||||
h2 系统设置
|
||||
.wrapper.wrapper-content.animated.fadeIn
|
||||
.row
|
||||
.col-lg-12
|
||||
.ibox
|
||||
.ibox-content
|
||||
form#postForm(action='/admin/saveSettings', method='post')
|
||||
.panel-group(role='tablist', aria-multiselectable='false')
|
||||
.row
|
||||
.col-md-6(style='margin-bottom:10px;')
|
||||
.panel.panel-default
|
||||
#headingSite.panel-heading(role='tab')
|
||||
h4.panel-title
|
||||
a(role='button', data-toggle='collapse', href='#tabSite', aria-expanded='true', aria-controls='tabSite')
|
||||
| 站点设置
|
||||
#tabSite.panel-collapse.collapse.in(role='tabpanel', aria-labelledby='headingSite')
|
||||
ul.list-group
|
||||
li.list-group-item.clearfix
|
||||
.pull-left
|
||||
| 网站名称
|
||||
.pull-right
|
||||
input#SiteName.form-control(type='text', name='SiteName', placeholder='该网站的名称', value=settings.SiteName)
|
||||
li.list-group-item.clearfix
|
||||
.pull-left
|
||||
| 网站域名
|
||||
.pull-right
|
||||
input#SiteDomain.form-control(type='text', name='SiteDomain', placeholder='该网站的域名', value=settings.SiteDomain)
|
||||
li.list-group-item.clearfix
|
||||
.pull-left
|
||||
| 备案号(用于底部显示)
|
||||
.pull-right
|
||||
input#RecordNo.form-control(type='text', name='RecordNo', placeholder='网站域名的备案号', value=settings.RecordNo)
|
||||
li.list-group-item.clearfix
|
||||
.pull-left
|
||||
| 网站logo
|
||||
.pull-right
|
||||
span.fileinput-button
|
||||
img.img-circle.profile-img(alt='profile', src=settings.LogoPath, style='width:146px;height:146px;')
|
||||
input.fileupload(type='file', name='file')
|
||||
input#LogoPath(type='hidden', name='LogoPath',value=settings.LogoPath)
|
||||
li.list-group-item.clearfix
|
||||
.pull-left
|
||||
| 每页显示文章数
|
||||
.pull-right
|
||||
.spinbox(data-initialize='spinbox', data-step='5')
|
||||
input#PageSize.form-control.input-mini.spinbox-input(type='text', name='PageSize', placeholder='每页的条数', value=settings.PageSize)
|
||||
.spinbox-buttons.btn-group.btn-group-vertical
|
||||
button.btn.btn-white.spinbox-up.btn-xs(type='button')
|
||||
span.fa.fa-chevron-up
|
||||
span.sr-only Increase
|
||||
button.btn.btn-white.spinbox-down.btn-xs(type='button')
|
||||
span.fa.fa-chevron-down
|
||||
span.sr-only Decrease
|
||||
li.list-group-item.clearfix
|
||||
.pull-left
|
||||
| 默认展开文章目录
|
||||
.pull-right
|
||||
input#ExpandMenu(type='hidden', name='ExpandMenu', value=settings.ExpandMenu)
|
||||
input.js-switch(type='checkbox', checked=settings.ExpandMenu === 'true')
|
||||
li.list-group-item.clearfix
|
||||
.pull-left
|
||||
| 缓存过期时间(秒)
|
||||
.pull-right
|
||||
.spinbox(data-initialize='spinbox',data-max='9999999')
|
||||
input#CacheExpired.form-control.input-mini.spinbox-input(type='text', name='CacheExpired', placeholder='缓存过期时间', value=settings.CacheExpired)
|
||||
.spinbox-buttons.btn-group.btn-group-vertical
|
||||
button.btn.btn-white.spinbox-up.btn-xs(type='button')
|
||||
span.fa.fa-chevron-up
|
||||
span.sr-only Increase
|
||||
button.btn.btn-white.spinbox-down.btn-xs(type='button')
|
||||
span.fa.fa-chevron-down
|
||||
span.sr-only Decrease
|
||||
.col-md-6(style='margin-bottom:10px;')
|
||||
.panel.panel-default
|
||||
#headingComponent.panel-heading(role='tab')
|
||||
h4.panel-title
|
||||
a(role='button', data-toggle='collapse', href='#tabComponent', aria-expanded='true', aria-controls='tabComponent')
|
||||
| 组件设置
|
||||
#tabComponent.panel-collapse.collapse.in(role='tabpanel', aria-labelledby='headingComponent')
|
||||
ul.list-group
|
||||
li.list-group-item.clearfix
|
||||
.pull-left
|
||||
a(href='http://api.fanyi.baidu.com', target='_blank') 百度翻译
|
||||
| key(用于文章Url显示)
|
||||
.pull-right
|
||||
input#TranslateKey.form-control(type='text', name='TranslateKey', placeholder='申请的翻译key', value=settings.TranslateKey)
|
||||
li.list-group-item.clearfix
|
||||
.pull-left
|
||||
| 启用统计功能(
|
||||
a(href='http://tongji.baidu.com', target='_blank') 百度统计
|
||||
| )
|
||||
.pull-right
|
||||
input#EnableStatistics(type='hidden', name='EnableStatistics', value=settings.EnableStatistics)
|
||||
input.js-switch(type='checkbox', checked=settings.EnableStatistics === 'true')
|
||||
li.list-group-item.clearfix
|
||||
.pull-left
|
||||
| 百度统计id
|
||||
.pull-right
|
||||
input#StatisticsId.form-control(type='text', name='StatisticsId', placeholder='申请的统计id', value=settings.StatisticsId)
|
||||
li.list-group-item.clearfix
|
||||
.pull-left
|
||||
| 启用分享功能(
|
||||
a(href='http://www.jiathis.com/', target='_blank') JisThis
|
||||
| )
|
||||
.pull-right
|
||||
input#EnableShare(type='hidden', name='EnableShare', value=settings.EnableShare)
|
||||
input.js-switch(type='checkbox', checked=settings.EnableShare === 'true')
|
||||
li.list-group-item.clearfix
|
||||
.pull-left
|
||||
| JiaThis分享id
|
||||
.pull-right
|
||||
input#JiaThisId.form-control(type='text', name='JiaThisId', placeholder='申请的分享id', value=settings.JiaThisId)
|
||||
li.list-group-item.clearfix
|
||||
.pull-left
|
||||
| 显示文章评论(
|
||||
a(href='http://changyan.kuaizhan.com', target='_blank') 畅言
|
||||
| )
|
||||
.pull-right
|
||||
input#ShowComments(type='hidden', name='ShowComments', value=settings.ShowComments)
|
||||
input.js-switch(type='checkbox', checked=settings.ShowComments === 'true')
|
||||
li.list-group-item.clearfix
|
||||
.pull-left
|
||||
| 畅言appid
|
||||
.pull-right
|
||||
input#ChangyanId.form-control(type='text', name='ChangyanId', placeholder='申请的appid', value=settings.ChangyanId)
|
||||
li.list-group-item.clearfix
|
||||
.pull-left
|
||||
| 畅言conf
|
||||
.pull-right
|
||||
input#ChangyanConf.form-control(type='text', name='ChangyanConf', placeholder='申请的conf', value=settings.ChangyanConf)
|
||||
li.list-group-item.clearfix
|
||||
.pull-left
|
||||
| 显示留言(
|
||||
a(href='http://www.uyan.cc/', target='_blank') 友言
|
||||
| )
|
||||
.pull-right
|
||||
input#ShowGuestbook(type='hidden', name='ShowGuestbook', value=settings.ShowGuestbook)
|
||||
input.js-switch(type='checkbox', checked=settings.ShowGuestbook === 'true')
|
||||
li.list-group-item.clearfix
|
||||
.pull-left
|
||||
| 友言uid
|
||||
.pull-right
|
||||
input#YouyanId.form-control(type='text', name='YouyanId', placeholder='申请的uid', value=settings.YouyanId)
|
||||
|
||||
.row
|
||||
.col-lg-12
|
||||
button#btnSave(type='button', class='btn btn-primary', role='button')
|
||||
i.fa.fa-cloud-upload
|
||||
| 保存修改
|
||||
script(type='text/javascript', src='/libs/jquery/dist/jquery.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/bootstrap/dist/js/bootstrap.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/metisMenu/dist/metisMenu.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/admin.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/blueimp-file-upload/js/vendor/jquery.ui.widget.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/blueimp-file-upload/js/jquery.fileupload.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/fuelux/dist/js/fuelux.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/sweetalert/dist/sweetalert.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/switchery/dist/switchery.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/settings.js', charset='utf-8')
|
||||
|
||||
28
views/auth/login.jade
Normal file
28
views/auth/login.jade
Normal file
@@ -0,0 +1,28 @@
|
||||
extends ../shared/layout
|
||||
block content
|
||||
link(href='/libs/sweetalert/dist/sweetalert.css', rel='stylesheet')
|
||||
link(href='/libs/supersized/slideshow/css/supersized.css', rel='stylesheet')
|
||||
link(href='/libs/supersized/slideshow/theme/supersized.shutter.css', rel='stylesheet')
|
||||
link(href='/libs/animate.css/animate.min.css', rel='stylesheet')
|
||||
link(href='/stylesheets/account.css', rel='stylesheet')
|
||||
.container.animated.fadeInDownSmall
|
||||
.row.login-block
|
||||
h3.col-md-4.col-md-offset-4.login-title.text-center 后台登录
|
||||
.col-md-4.col-md-offset-4.login-wrap
|
||||
.form-group.form-group-lg
|
||||
input#txtUserName.form-control(type='text', placeholder='用户名')
|
||||
.form-group.form-group-lg
|
||||
input#txtPwd.form-control(type='password', placeholder='密码')
|
||||
button#btnLogin.btn.btn-green.btn-lg.btn-block(type='button', autocomplete='off')
|
||||
i.fa.fa-sign-in.fa-fw
|
||||
| 登 录
|
||||
// Time Bar
|
||||
#progress-back.load-item
|
||||
#progress-bar
|
||||
script(type='text/javascript', src='/libs/jquery/dist/jquery.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/bootstrap/dist/js/bootstrap.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/sweetalert/dist/sweetalert.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/supersized/slideshow/js/supersized.3.2.7.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/supersized/slideshow/theme/supersized.shutter.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/js-md5/js/md5.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/account.js', charset='utf-8')
|
||||
64
views/blog/article.jade
Normal file
64
views/blog/article.jade
Normal file
@@ -0,0 +1,64 @@
|
||||
extends ../shared/layout
|
||||
block content
|
||||
link(href='/stylesheets/animate-custom.css', rel='stylesheet')
|
||||
link(href='/stylesheets/railscasts.css', rel='stylesheet')
|
||||
link(href='/libs/lightbox2/dist/css/lightbox.min.css', rel='stylesheet')
|
||||
.detail-container
|
||||
.container
|
||||
.row
|
||||
article.col-sm-12.col-xs-12.detail-wrap.post-content.animated.fadeIn(class='#{settings.ExpandMenu === "true" ? "col-md-9" : "col-md-12"}')
|
||||
button.btn.btn-white.btn-menu(title='显示目录')
|
||||
i.fa.fa-align-justify
|
||||
.hidden-sm.hidden-xs
|
||||
.text-muted.pull-left
|
||||
span(title='文章分类')
|
||||
i.fa.fa-map-signs
|
||||
=' '
|
||||
a.black-link(href='/blog/' + post.CategoryAlias,target='_blank')=post.CateName
|
||||
.text-muted.pull-right
|
||||
each label in post.LabelList
|
||||
span.post-label(title=label)=label
|
||||
=' '
|
||||
.clearfix
|
||||
header.text-center.post-title
|
||||
span.text-muted(title='发布时间')
|
||||
i.fa.fa-clock-o
|
||||
=' ' + post.CreateTimeStr
|
||||
h1=post.Title
|
||||
#main-context
|
||||
blockquote
|
||||
h2 摘要
|
||||
span=':' + post.Summary
|
||||
!=post.Content
|
||||
if(settings.ShowComments === 'true')
|
||||
hr.hr-article
|
||||
#SOHUCS(sid=post.UniqueId)
|
||||
script(charset='utf-8', type='text/javascript', src='http://changyan.sohu.com/upload/changyan.js')
|
||||
script.
|
||||
window.changyan.api.config({
|
||||
appid: '#{settings.ChangyanId}',
|
||||
conf: '#{settings.ChangyanConf}'
|
||||
});
|
||||
#control-wrap.col-md-3.hidden-sm.hidden-xs(style='#{settings.ExpandMenu === "true" ? "display: block;" : "display: none;"}')
|
||||
a.close-menu(title='隐藏目录')
|
||||
i.fa.fa-times
|
||||
include ../shared/footer
|
||||
include ../shared/top
|
||||
script(type='text/javascript', src='/libs/jquery/dist/jquery.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/bootstrap/dist/js/bootstrap.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/lightbox2/dist/js/lightbox.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/scrollNav/dist/jquery.scrollNav.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/highlight.pack.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/article.js', charset='utf-8')
|
||||
script.
|
||||
var expandMenu = '#{settings.ExpandMenu}';
|
||||
var logoPath = "#{settings.LogoPath}";
|
||||
var jiathis_config = {
|
||||
data_track_clickback: true,
|
||||
url: window.location.href,
|
||||
summary: "#{post.Summary}",
|
||||
title: "#{post.Title}"
|
||||
};
|
||||
script(type = 'text/javascript', src = 'http://v3.jiathis.com/code/jia.js?uid=#{settings.JiaThisId}', charset = 'utf-8')
|
||||
script(type='text/javascript', src='/libs/jquery-qrcode/dist/jquery.qrcode.min.js', charset='utf-8')
|
||||
script(type = 'text/javascript', src = '/javascripts/top.js', charset = 'utf-8')
|
||||
114
views/blog/index.jade
Normal file
114
views/blog/index.jade
Normal file
@@ -0,0 +1,114 @@
|
||||
extends ../shared/layout
|
||||
block content
|
||||
link(href='/stylesheets/selectlist.css', rel='stylesheet')
|
||||
link(href='/libs/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.min.css', rel='stylesheet')
|
||||
link(href='/stylesheets/railscasts.css', rel='stylesheet')
|
||||
.container-fluid.render-body
|
||||
.row
|
||||
.col-md-2.category-block.hidden-sm.hidden-xs
|
||||
.category-top
|
||||
| 文章分类
|
||||
.category-split
|
||||
.category-list
|
||||
ul.nav.nav-pills.nav-stacked
|
||||
each cate in cateData
|
||||
li(class='#{currentCate === cate.Alias ? "active" : ""}')
|
||||
if(!cate.Link)
|
||||
a(href='/blog#{cate.Alias ? "/" + cate.Alias : ""}')
|
||||
img(src=cate.Img)
|
||||
span=cate.CateName
|
||||
else
|
||||
a(href=cate.Link, target='_blank')
|
||||
img(src=cate.Img)
|
||||
span=cate.CateName
|
||||
.col-md-8.col-md-offset-2.blog-list
|
||||
.row.data-block
|
||||
.col-md-12
|
||||
.list-wrap
|
||||
.row.top-bar
|
||||
form#filterForm(action='/blog/getPosts', method='Post')
|
||||
.col-md-7.col-sm-4.hidden-xs.list-top-left
|
||||
a.current(title='按日期排序',sort='date') 日期
|
||||
= ' '
|
||||
a(title='按标题排序',sort='title') 标题
|
||||
input#CateAlias.hidden(type='text', value=currentCate, name='CateAlias')
|
||||
input#SortBy.hidden(type='text', value=0, name='SortBy')
|
||||
input#PageIndex.hidden(type='text', value=1, name='PageIndex')
|
||||
input#PageSize.hidden(type='text', value=settings.PageSize, name='PageSize')
|
||||
.col-md-5.list-top-right
|
||||
.input-group
|
||||
.input-group-btn
|
||||
.btn-group.selectlist(data-resize='auto', data-initialize='selectlist')
|
||||
button.btn.btn-white.dropdown-toggle(data-toggle='dropdown', type='button')
|
||||
span.selected-label
|
||||
span.caret
|
||||
span.sr-only Toggle Dropdown
|
||||
ul.dropdown-menu.animated-quick.fadeInDown(role='menu')
|
||||
li.active(data-value='0', data-selected='true')
|
||||
a(href='#') 全文
|
||||
li(data-value='1')
|
||||
a(href='#') 标题
|
||||
li(data-value='2')
|
||||
a(href='#') 标签
|
||||
li(data-value='3')
|
||||
a(href='#') 日期
|
||||
input#FilterType.hidden.hidden-field(type='text',readonly = "readonly", aria_hidden = "true",name='FilterType')
|
||||
input#Keyword.form-control(type='text',placeholder = "关键字",name='Keyword')
|
||||
.input-group-btn
|
||||
button#btnFilter.btn.btn-white(type='button')
|
||||
i.fa.fa-search
|
||||
=' '
|
||||
span.hidden-sm.hidden-xs 搜索
|
||||
ol.list-unstyled
|
||||
#load-list.spinner(style='display: none;')
|
||||
.bounce1
|
||||
.bounce2
|
||||
.bounce3
|
||||
#no-more.text-muted.text-center(style='display: none;')
|
||||
| 没有更多数据
|
||||
#scrollSpy.col-md-1
|
||||
ul#page-nav.list-unstyled.hidden-sm.hidden-xs.affix-top
|
||||
include ../shared/footer
|
||||
.col-md-2.hidden-sm.hidden-xs.empty-block
|
||||
.post-cover
|
||||
.post-modal.col-md-7.col-sm-12.col-xs-12
|
||||
.modal-header
|
||||
h4
|
||||
.modal-body
|
||||
.sk-cube-grid(style='display:none;')
|
||||
.sk-cube.sk-cube1
|
||||
.sk-cube.sk-cube2
|
||||
.sk-cube.sk-cube3
|
||||
.sk-cube.sk-cube4
|
||||
.sk-cube.sk-cube5
|
||||
.sk-cube.sk-cube6
|
||||
.sk-cube.sk-cube7
|
||||
.sk-cube.sk-cube8
|
||||
.sk-cube.sk-cube9
|
||||
.post-content
|
||||
div
|
||||
.modal-footer
|
||||
#label-foot.col-md-7.text-left.hidden-sm.hidden-xs(style='margin-top: 3px;')
|
||||
.col-md-5.text-right
|
||||
button#btnCloseModal.btn.btn-white(type='button') 关闭
|
||||
a#btnFullMode.btn.btn-green(href='', target='_blank')
|
||||
i.fa.fa-external-link
|
||||
| 完整模式
|
||||
include ../shared/top
|
||||
script(type='text/javascript', src='/libs/jquery/dist/jquery.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/bootstrap/dist/js/bootstrap.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/selectlist.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.concat.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/highlight.pack.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/index.js', charset='utf-8')
|
||||
script.
|
||||
var logoPath = "#{settings.LogoPath}";
|
||||
var jiathis_config = {
|
||||
data_track_clickback: true,
|
||||
url: "http://#{settings.SiteDomain}",
|
||||
summary: "",
|
||||
title: "#{settings.SiteName}"
|
||||
};
|
||||
script(type='text/javascript', src='http://v3.jiathis.com/code/jia.js?uid=#{settings.JiaThisId}', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/jquery-qrcode/dist/jquery.qrcode.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/top.js', charset='utf-8')
|
||||
44
views/misc/about.jade
Normal file
44
views/misc/about.jade
Normal file
@@ -0,0 +1,44 @@
|
||||
extends ../shared/layout
|
||||
block content
|
||||
.container-fluid.detail-container
|
||||
.row
|
||||
.col-lg-4.col-lg-offset-4
|
||||
.about-block.animated.fadeInDown
|
||||
.widget-head-color-box.navy-bg.p-lg.text-center
|
||||
.m-b-md
|
||||
h2.font-bold.no-margins!=about.FirstLine
|
||||
h4!=about.SecondLine
|
||||
img.img-circle.profile-img.m-b-md.animated.zoomIn(alt='profile', src='#{about.PhotoPath}')
|
||||
img.wechat-img.m-b-md.animated.zoomIn(alt='wechat', src='#{about.QrcodePath}', style='display:none;')
|
||||
h4
|
||||
span#job-title!=about.ThirdLine
|
||||
.widget-text-box
|
||||
p!=about.Profile
|
||||
.row
|
||||
.col-md-6
|
||||
i.fa.fa-wechat(title='微信')
|
||||
= ' '
|
||||
!=about.Wechat
|
||||
= ' '
|
||||
i.fa.fa-lg.fa-qrcode(title='二维码')
|
||||
.col-md-6
|
||||
i.fa.fa-envelope(title='邮箱')
|
||||
= ' '
|
||||
!=about.Email
|
||||
include ../shared/footer
|
||||
include ../shared/top
|
||||
script(type='text/javascript', src='/libs/jquery/dist/jquery.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/bootstrap/dist/js/bootstrap.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/jQuery-cycleText/dist/js/jquery.cycleText.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/about.js', charset='utf-8')
|
||||
script.
|
||||
var logoPath = "#{settings.LogoPath}";
|
||||
var jiathis_config = {
|
||||
data_track_clickback: true,
|
||||
url: window.location.href,
|
||||
summary: "",
|
||||
title: "#{settings.SiteName + ' - 关于'}"
|
||||
};
|
||||
script(type='text/javascript', src='http://v3.jiathis.com/code/jia.js?uid=#{settings.JiaThisId}', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/jquery-qrcode/dist/jquery.qrcode.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/top.js', charset='utf-8')
|
||||
15
views/misc/guestbook.jade
Normal file
15
views/misc/guestbook.jade
Normal file
@@ -0,0 +1,15 @@
|
||||
extends ../shared/layout
|
||||
block content
|
||||
.container-fluid.detail-container
|
||||
.row
|
||||
.col-md-8.col-md-offset-2.detail-wrap(style='min-height: 800px;')
|
||||
#uyan_frame
|
||||
script(type='text/javascript', src='http://v2.uyan.cc/code/uyan.js?uid=#{settings.YouyanId}')
|
||||
include ../shared/footer
|
||||
include ../shared/top
|
||||
script(type='text/javascript', src='/libs/jquery/dist/jquery.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/libs/bootstrap/dist/js/bootstrap.min.js', charset='utf-8')
|
||||
script(type='text/javascript', src='/javascripts/guestbook.js', charset='utf-8')
|
||||
script.
|
||||
var tools = [2];
|
||||
script(type = 'text/javascript', src = '/javascripts/top.js', charset = 'utf-8')
|
||||
22
views/shared/error.jade
Normal file
22
views/shared/error.jade
Normal file
@@ -0,0 +1,22 @@
|
||||
doctype html
|
||||
html(lang='zh-CN')
|
||||
head
|
||||
meta(http-equiv='Content-Type', content='text/html; charset=utf-8')
|
||||
meta(charset='utf-8')
|
||||
meta(name='viewport', content='width=device-width, initial-scale=1.0')
|
||||
link(href='/libs/bootstrap/dist/css/bootstrap.min.css', rel='stylesheet')
|
||||
link(href='/stylesheets/bootstrap-addon.css', rel='stylesheet')
|
||||
link(href='/stylesheets/site.css', rel='stylesheet')
|
||||
link(href='/stylesheets/error.css', rel='stylesheet')
|
||||
title=title
|
||||
body
|
||||
.container-fluid.back-img
|
||||
.row
|
||||
.col-md-8.col-md-offset-2
|
||||
.error-block
|
||||
h1=code
|
||||
.desc=message
|
||||
div=error
|
||||
a.btn.btn-green.btn-lg(href='/')
|
||||
i.fa.fa-home
|
||||
| 跳转首页
|
||||
8
views/shared/footer.jade
Normal file
8
views/shared/footer.jade
Normal file
@@ -0,0 +1,8 @@
|
||||
.row.footer
|
||||
.col-md-12
|
||||
footer
|
||||
p
|
||||
| #{new Date().getFullYear()} © All Rights Reserved#{settings.RecordNo ? ' | ' + settings.RecordNo : ''}
|
||||
span.hidden-xs
|
||||
=' | '
|
||||
a(href='/admin', target='_blank') 后台管理
|
||||
66
views/shared/layout.jade
Normal file
66
views/shared/layout.jade
Normal file
@@ -0,0 +1,66 @@
|
||||
doctype html
|
||||
html(lang='zh-CN')
|
||||
head
|
||||
meta(http-equiv='Content-Type', content='text/html; charset=utf-8')
|
||||
meta(charset='utf-8')
|
||||
meta(name='viewport', content='width=device-width, initial-scale=1.0')
|
||||
meta(name='keywords',content='#{keywords ? keywords : "blog,iBlog"}')
|
||||
meta(name='description',content='#{description ? description : "iBlog"}')
|
||||
link(href='/libs/bootstrap/dist/css/bootstrap.min.css', rel='stylesheet')
|
||||
link(href='/stylesheets/bootstrap-addon.css', rel='stylesheet')
|
||||
link(href='/stylesheets/site.css', rel='stylesheet')
|
||||
link(href='/libs/font-awesome/css/font-awesome.min.css', rel='stylesheet')
|
||||
link(href='/stylesheets/share.css', rel='stylesheet')
|
||||
link(href='/stylesheets/animate-custom.css', rel='stylesheet')
|
||||
title=title
|
||||
body.fuelux
|
||||
if(isRoot)
|
||||
link(href='/stylesheets/home-loading.css', rel='stylesheet')
|
||||
#home-loading.home-loading
|
||||
#loading-con.loading-con(style='display:none;')
|
||||
.loading-circle
|
||||
script.
|
||||
var home_loading_begin = new Date();
|
||||
document.body.style.overflow = "hidden";
|
||||
function imgLoad() {
|
||||
document.getElementById("home-loading").style.background = "#f3f3f4";
|
||||
document.getElementById("loading-con").style.display = "block";
|
||||
}
|
||||
img#loadingImg(alt='loading', src=settings.LogoPath, onload='imgLoad();')
|
||||
.navbar.navbar-default.navbar-fixed-top
|
||||
.container-fluid
|
||||
.navbar-header
|
||||
button.navbar-toggle(type='button', data-toggle='collapse', data-target='.navbar-collapse')
|
||||
span.icon-bar
|
||||
span.icon-bar
|
||||
span.icon-bar
|
||||
a.navbar-brand(href='/')
|
||||
img(src=settings.LogoPath)
|
||||
=' '
|
||||
span=settings.SiteName
|
||||
.navbar-collapse.collapse
|
||||
ul.nav.navbar-nav.my-nav-pills.navbar-right
|
||||
li
|
||||
a(href='/blog')
|
||||
i.fa.fa-file-text-o.fa-fw
|
||||
| 博客
|
||||
if(settings.ShowGuestbook === 'true')
|
||||
li
|
||||
a(href='/guestbook')
|
||||
i.fa.fa-edit.fa-fw
|
||||
| 留言
|
||||
li
|
||||
a(href='/about')
|
||||
i.fa.fa-user.fa-fw
|
||||
| 关于
|
||||
block content
|
||||
if(settings.EnableStatistics === 'true')
|
||||
//百度统计代码
|
||||
script.
|
||||
var _hmt = _hmt || [];
|
||||
(function () {
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "//hm.baidu.com/hm.js?#{settings.StatisticsId}";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
81
views/shared/layoutAdmin.jade
Normal file
81
views/shared/layoutAdmin.jade
Normal file
@@ -0,0 +1,81 @@
|
||||
doctype html
|
||||
html(lang='zh-CN')
|
||||
head
|
||||
meta(http-equiv='Content-Type', content='text/html; charset=utf-8')
|
||||
meta(charset='utf-8')
|
||||
meta(name='viewport', content='width=device-width, initial-scale=1.0')
|
||||
title=title
|
||||
link(href='/libs/bootstrap/dist/css/bootstrap.min.css', rel='stylesheet')
|
||||
link(href='/stylesheets/admin.css', rel='stylesheet')
|
||||
link(href='/libs/font-awesome/css/font-awesome.min.css', rel='stylesheet')
|
||||
link(href='/libs/animate.css/animate.min.css', rel='stylesheet')
|
||||
body.fuelux
|
||||
#wrapper
|
||||
nav.navbar-default.navbar-static-side(role='navigation')
|
||||
.sidebar-collapse
|
||||
ul#side-menu.nav.metismenu
|
||||
li.nav-header
|
||||
.dropdown.profile-element
|
||||
span
|
||||
a(href='/', target='_blank')
|
||||
img.img-circle.img-lg(alt='image', src=settings.LogoPath)
|
||||
a(href='/admin')
|
||||
h4 后台管理
|
||||
.logo-element
|
||||
img.img-circle.img-sm(alt='image', src=settings.LogoPath)
|
||||
li
|
||||
a(href='/admin')
|
||||
i.fa.fa-bar-chart-o
|
||||
span.nav-label 网站统计
|
||||
li
|
||||
a(href='#')
|
||||
i.fa.fa-file-text-o
|
||||
span.nav-label 博客管理
|
||||
span.fa.arrow
|
||||
ul.nav.nav-second-level.collapse
|
||||
li
|
||||
a(href='/admin/newarticle') 新的文章
|
||||
li
|
||||
a(href='/admin/categorymanage') 分类管理
|
||||
li
|
||||
a(href='/admin/articlemanage') 文章管理
|
||||
li
|
||||
a(href='/admin/comments')
|
||||
i.fa.fa-comments-o
|
||||
span.nav-label 评论管理
|
||||
li
|
||||
a(href='/admin/guestbook')
|
||||
i.fa.fa-edit
|
||||
span.nav-label 留言管理
|
||||
li
|
||||
a(href='/admin/aboutmanage')
|
||||
i.fa.fa-user
|
||||
span.nav-label 关于管理
|
||||
li
|
||||
a(href='/admin/cachemanage')
|
||||
i.fa.fa-database
|
||||
span.nav-label 缓存管理
|
||||
li
|
||||
a(href='/admin/exception')
|
||||
i.fa.fa-bug
|
||||
span.nav-label 异常管理
|
||||
li
|
||||
a(href='/admin/settings')
|
||||
i.fa.fa-gears
|
||||
span.nav-label 系统设置
|
||||
#page-wrapper.gray-bg
|
||||
.row.border-bottom
|
||||
nav.navbar.navbar-static-top(role='navigation', style='margin-bottom: 0')
|
||||
.navbar-header
|
||||
a.navbar-minimalize.minimalize-styl-2.btn.btn-primary(href='#')
|
||||
i.fa.fa-bars
|
||||
form#logoutForm(action='/logout', method='Post')
|
||||
ul.nav.navbar-top-links.navbar-right
|
||||
li
|
||||
a(href="javascript:$('#logoutForm').submit()", title='退出登录')
|
||||
i.fa.fa-power-off
|
||||
| 退出登录
|
||||
block content
|
||||
.footer
|
||||
.text-center
|
||||
| #{new Date().getFullYear()} © All Rights Reserved#{settings.RecordNo ? ' | ' + settings.RecordNo : ''}
|
||||
27
views/shared/top.jade
Normal file
27
views/shared/top.jade
Normal file
@@ -0,0 +1,27 @@
|
||||
ul.fixed-tool.list-unstyled
|
||||
if(settings.EnableShare === 'true')
|
||||
li.share-li(style='display: none;')
|
||||
#share-menu.jiathis_style_32x32
|
||||
a.jiathis_button_weixin
|
||||
i.fa.fa-weixin
|
||||
a.jiathis_button_qzone
|
||||
i.fa.fa-qq
|
||||
a.jiathis_button_tsina
|
||||
i.fa.fa-weibo
|
||||
a.jiathis_button_renren
|
||||
i.fa.fa-renren
|
||||
a.menu(title='分享到')
|
||||
#ss_toggle.share(data-rot='180')
|
||||
.circle
|
||||
.bar
|
||||
li.qr-li.hidden-sm.hidden-xs(style='display: none;')
|
||||
a#qrBtn(title='二维码')
|
||||
i.fa.fa-qrcode
|
||||
.qrcontain.popover.left.animated.fadeInLeft
|
||||
.arrow
|
||||
.popover-content.text-center
|
||||
#qrcode
|
||||
span 手机访问该页面
|
||||
li#scrollTop.top-li(style='display: none;')
|
||||
a(title='回顶部')
|
||||
i.fa.fa-arrow-up
|
||||
Reference in New Issue
Block a user