Initial commit
This commit is contained in:
parent
89eaf19aa2
commit
113550eb8a
24 changed files with 1040 additions and 0 deletions
layouts/post
12
layouts/post/single.html
Normal file
12
layouts/post/single.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
{{ partial "header.html" . }}
|
||||
<div class="postBody">
|
||||
<div class="post">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<span class="post-meta">{{ .Date.Format "Mon, Jan 2, 2006" }} - Read in {{ .ReadingTime }} Min</span>
|
||||
<div class="content">
|
||||
{{ .TableOfContents }}
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
16
layouts/post/summary.html
Normal file
16
layouts/post/summary.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<div class="postBody">
|
||||
<article class="post">
|
||||
<header>
|
||||
<h1>
|
||||
<a href="{{ .Permalink }}">{{ .Title }} {{ if .Draft }}:: DRAFT{{end}}</a>
|
||||
</h1>
|
||||
<span class="post-meta">
|
||||
{{ .Date.Format "Mon, Jan 2, 2006" }} - Read in {{ .ReadingTime }} Min
|
||||
</span>
|
||||
</header>
|
||||
<div class="summary">
|
||||
{{ .Summary }}
|
||||
<a href="{{ .Permalink }}">Read more...</a>
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue