{{include "header.html"}}
{{include "nav.html"}}
{{if .Content}}
<article class="article-detail">
  <div class="wrap breadcrumb"><a href="/">首页</a><span>/</span><a href="{{.Content.ColumnURL}}">{{.Content.ColumnName}}</a><span>/</span><b>{{.Content.Title}}</b></div>
  <header class="wrap article-head">
    <p class="eyebrow">{{.Content.ColumnName}} · {{ParseTime .Content.CreatedAt "2006-01-02"}}</p>
    <h1>{{.Content.Title}}</h1>
    <p>{{.Content.Description}}</p>
    {{if .Content.Img}}<img src="{{.Content.Img}}" alt="{{.Content.Title}}">{{end}}
  </header>
  <section class="wrap prose">{{.Content.Content|Str2Html}}{{if .Content.Tags}}<div class="tag-list">{{range .Content.Tags}}<a href="{{.URL}}">{{.Name}}</a>{{end}}</div>{{end}}</section>
</article>
<div class="wrap prev-next">
  {{if .Prev}}<a href="{{.Prev.URL}}"><span>上一篇</span>{{.Prev.Title}}</a>{{else}}<span></span>{{end}}
  {{if .Next}}<a href="{{.Next.URL}}" class="right"><span>下一篇</span>{{.Next.Title}}</a>{{else}}<span></span>{{end}}
</div>
{{end}}
{{include "footer.html"}}
{{include "js.html"}}
