Skip to content

Commit ebfd562

Browse files
committed
Update blog page layout
1 parent a092229 commit ebfd562

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

layouts/blog/single.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{{ define "title"}} {{ .Title}} {{end}}
2+
{{ define "header"}} {{ partial "header" .}} {{end}}
3+
4+
{{ define "main"}}
5+
<div class="push-center" itemscope itemtype="http://schema.org/BlogPosting">
6+
{{ template "_internal/schema.html" . }}
7+
<div id="hero">
8+
<h1 itemprop="headline"> {{.Title}}</h1>
9+
{{ if .Description }}
10+
<blockquote itemprop="description">{{ .Description }}</blockquote>
11+
{{ end }}
12+
<time class="post-time">{{ partial "post/meta" . }}</time>
13+
</div>
14+
<div id="post-box">
15+
<div id="post" itemprop="articleBody">
16+
17+
{{.Content | safeHTML}}
18+
19+
</div>
20+
21+
<div class="">
22+
{{ partial "post/byauthor" . }}
23+
{{ partial "post/related-content" . }}
24+
</div>
25+
26+
{{ if .Site.DisqusShortname }}
27+
<article>
28+
{{ template "_internal/disqus.html" . }}
29+
</article>
30+
{{ end }}
31+
32+
</div>
33+
</div>
34+
{{ end }}
35+
{{ define "footer"}} {{ partial "footer.html" .}} {{ end }}

0 commit comments

Comments
 (0)