2018-07-18 17:10:24 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="zh-CN">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<meta name="renderer" content="webkit">
|
|
|
|
<meta name="author" content="Minho" />
|
|
|
|
<meta name="site" content="https://www.iminho.me" />
|
|
|
|
<meta name="keywords" content="{{.Model.BlogTitle}}">
|
2018-07-25 14:46:56 +08:00
|
|
|
<meta name="description" content="{{.Model.BlogTitle}}-{{.Description}}">
|
2018-07-18 17:10:24 +08:00
|
|
|
<title>{{.Model.BlogTitle}} - Powered by MinDoc</title>
|
2018-07-13 19:04:51 +08:00
|
|
|
|
2018-07-18 17:10:24 +08:00
|
|
|
<!-- Bootstrap -->
|
|
|
|
<link href="{{cdncss "/static/bootstrap/css/bootstrap.min.css"}}" rel="stylesheet">
|
|
|
|
|
|
|
|
<link href="{{cdncss "/static/font-awesome/css/font-awesome.min.css"}}" rel="stylesheet">
|
2018-09-03 15:39:01 +08:00
|
|
|
<link href="{{cdncss "/static/editor.md/lib/mermaid/mermaid.css"}}" rel="stylesheet">
|
|
|
|
<link href="{{cdncss "/static/editor.md/lib/sequence/sequence-diagram-min.css"}}" rel="stylesheet">
|
2018-08-15 15:33:22 +08:00
|
|
|
<link href="{{cdncss "/static/css/kancloud.css" "version"}}" rel="stylesheet">
|
2018-07-18 17:10:24 +08:00
|
|
|
<link href="{{cdncss "/static/editor.md/css/editormd.preview.css"}}" rel="stylesheet">
|
2018-08-15 15:33:22 +08:00
|
|
|
<link href="{{cdncss "/static/css/markdown.preview.css" "version"}}" rel="stylesheet">
|
|
|
|
<link href="{{cdncss (print "/static/editor.md/lib/highlight/styles/" .HighlightStyle ".css") "version"}}" rel="stylesheet">
|
2018-07-18 17:10:24 +08:00
|
|
|
<link href="{{cdncss "/static/katex/katex.min.css"}}" rel="stylesheet">
|
|
|
|
<link href="{{cdncss "/static/css/print.css"}}" media="print" rel="stylesheet">
|
2018-08-15 15:33:22 +08:00
|
|
|
<link href="{{cdncss "/static/css/main.css" "version"}}" rel="stylesheet">
|
2018-07-18 17:10:24 +08:00
|
|
|
<style type="text/css">
|
|
|
|
.header{
|
|
|
|
min-height: 1rem;
|
|
|
|
font-size: 26px;
|
|
|
|
font-weight: 400;
|
|
|
|
display: block;
|
|
|
|
margin: 20px auto;
|
|
|
|
}
|
|
|
|
.blog-meta{
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.blog-meta>.item{
|
|
|
|
display: inline-block;
|
|
|
|
color: #666666;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2018-07-24 17:54:24 +08:00
|
|
|
|
2018-07-18 17:10:24 +08:00
|
|
|
.blog-footer{
|
|
|
|
margin: 25px auto;
|
|
|
|
/*border-top: 1px solid #E5E5E5;*/
|
|
|
|
padding: 20px 1px;
|
|
|
|
line-height: 35px;
|
|
|
|
}
|
|
|
|
.blog-footer span{
|
|
|
|
margin-right: 8px;
|
|
|
|
padding: 6px 8px;
|
|
|
|
font-size: 12px;
|
|
|
|
border: 1px solid #e3e3e3;
|
|
|
|
color: #4d4d4d
|
|
|
|
}
|
|
|
|
.blog-footer a:hover{
|
|
|
|
color: #ca0c16;
|
|
|
|
}
|
|
|
|
.footer{
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
.user_img img {
|
|
|
|
display: block;
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
border-radius: 50%;
|
|
|
|
-o-object-fit: cover;
|
|
|
|
object-fit: cover;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="manual-reader manual-container manual-search-reader">
|
|
|
|
{{template "widgets/header.tpl" .}}
|
|
|
|
<div class="container manual-body">
|
|
|
|
<div class="search-head" style="border-bottom-width: 1px;">
|
|
|
|
<h1 class="header">
|
|
|
|
{{.Model.BlogTitle}}
|
|
|
|
</h1>
|
|
|
|
<div class="blog-meta">
|
2018-07-22 17:31:20 +08:00
|
|
|
<div class="item user_img"><img src="{{cdnimg .Model.MemberAvatar}}" align="{{.Model.CreateName}}"> </div>
|
2018-07-18 17:10:24 +08:00
|
|
|
<div class="item"> {{.Model.CreateName}}</div>
|
|
|
|
<div class="item">发布于</div>
|
|
|
|
<div class="item">{{date .Model.Created "Y-m-d H:i:s"}}</div>
|
|
|
|
<div class="item">{{.Model.ModifyRealName}}</div>
|
|
|
|
<div class="item">修改于</div>
|
|
|
|
<div class="item">{{date .Model.Modified "Y-m-d H:i:s"}}</div>
|
2018-09-18 11:18:58 +08:00
|
|
|
{{if eq .Member.MemberId .Model.MemberId}}
|
|
|
|
<div class="item"><a href='{{urlfor "BlogController.ManageEdit" ":id" .Model.BlogId}}' title="文章编辑"><i class="fa fa-edit"></i> 编辑</a></div>
|
|
|
|
{{end}}
|
2018-07-18 17:10:24 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="article-body markdown-body editormd-preview-container content">
|
|
|
|
{{.Content}}
|
|
|
|
{{if .Model.AttachList}}
|
|
|
|
<div class="attach-list"><strong>附件</strong><ul>
|
|
|
|
{{range $index,$item := .Model.AttachList}}
|
|
|
|
<li><a href="{{$item.HttpPath}}" title="{{$item.FileName}}">{{$item.FileName}}</a> </li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row blog-footer">
|
|
|
|
<p>
|
|
|
|
<span>上一篇</span>
|
|
|
|
{{if .Previous}}
|
|
|
|
<a href="{{urlfor "BlogController.Index" ":id" .Previous.BlogId}}" title="{{.Previous.BlogTitle}}">{{.Previous.BlogTitle}}
|
|
|
|
</a>
|
|
|
|
{{else}}
|
|
|
|
无
|
|
|
|
{{end}}
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<span>下一篇</span>
|
|
|
|
{{if .Next}}
|
|
|
|
<a href="{{urlfor "BlogController.Index" ":id" .Next.BlogId}}" title="{{.Next.BlogTitle}}">{{.Next.BlogTitle}}</a>
|
|
|
|
{{else}}
|
|
|
|
无
|
|
|
|
{{end}}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "widgets/footer.tpl" .}}
|
2018-08-07 17:19:56 +08:00
|
|
|
</div>
|
2018-07-18 17:10:24 +08:00
|
|
|
</div>
|
|
|
|
<script src="{{cdnjs "/static/jquery/1.12.4/jquery.min.js"}}"></script>
|
|
|
|
<script src="{{cdnjs "/static/bootstrap/js/bootstrap.min.js"}}"></script>
|
2018-09-19 16:12:32 +08:00
|
|
|
{{.Scripts}}
|
2018-07-18 17:10:24 +08:00
|
|
|
</body>
|
|
|
|
</html>
|