]> BookStack Code Mirror - website/blob - themes/bookstack/layouts/blog/single.html
Merge branch 'master' of git://github.com/ChromatixAU/bookstackapp-website into Chrom...
[website] / themes / bookstack / layouts / blog / single.html
1 {{ partial "header.html" . }}
2
3
4   {{ if .Params.image }}
5     <div class="post-image" style="background-image: url({{.Params.image}});"></div>
6   {{ end }}
7
8 <div class="container">
9
10   <div class="row">
11
12     <div class="col-md-6 col-md-offset-1 col-sm-7 post-content">
13
14       <h1>{{.Title}}</h1>
15
16       <p class="post-date text-muted" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
17           {{$author := index .Site.Data.authors (or .Params.author .Site.Params.author)}}
18           {{$authorname := or $author.name .Site.Params.author }}
19           {{$authorthumbnail := or $author.thumbnail .Site.Params.author }}
20           <img class="post-avatar no-border" width="32" src="{{$authorthumbnail}}" alt="{{$authorname}}"> {{$authorname}} posted on the {{ .Date.Format "2" }}{{ if in (slice 1 21 31) .Date.Day}}st{{ else if in (slice 2 22) .Date.Day}}nd{{ else if in (slice 3 23) .Date.Day}}rd{{ else }}th{{ end }} of {{ .Date.Format "January 2006" }}
21       </p>
22
23       {{.Content}}
24
25       <div class="footer-content">
26         {{ partial "mailchimp.html" . }}
27
28         <div class="text-muted">
29           Want to let me know what you think of BookStack or this post? <br>
30           You find me on twitter <a href="https://twitter.com/ssddanbrown">@ssddanbrown</a>. <br>
31           You can <a href="https://github.com/BookStackApp/BookStack/issues">open a suggestion or issue on GitHub</a>.
32         </div>
33
34         <br>
35         <br>
36
37       </div>
38     </div>
39
40     <div class="col-md-3 col-md-offset-1 col-sm-4 col-sm-offset-1 blog-sidebar-post-list">
41       <h4>Latest Posts</h4>
42       <div class="recent-posts">
43         {{ range first 8 ( where .Site.RegularPages "Section" "blog") }}
44           <a class="blogpost-list-small" href="{{.Permalink}}">
45             <h5 class="text">{{ .Title }}</h5>
46             <time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
47                 {{ .Date.Format "2 Jan 2006" }}
48             </time>
49           </a>
50         {{ end }}
51       </div>
52     </div>
53
54   </div>
55
56 </div>
57
58 {{ partial "footer.html" . }}