about summary refs log tree commit diff
path: root/layouts/_default/books.html
blob: 449b5e09168c6054370f73efa173264026d77c18 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{{ define "main" }}

<article class="post h-entry">
  <header class="post-header">
    <h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}">{{ trim .Title  " " }}</h1>
  </header>
  <div class="content e-content">
    <h2>Book info</h2>
    <dl class="data">
      <dt>Book</dt>
      <dd>{{ .Params.book }}</dd>
      <dt>Authors</dt>
      {{ range $author := .Params.authors }}
        <dd>{{ $author }}</dd>
      {{ end }}
      <dt>ISBN</dt>
      <dd>{{ .Params.isbn }}</dd>
      <dt>Genres</dt>
      {{ range $genre := .Params.genres }}
        <dd>{{ $genre }}</dd>
      {{ end }}
      <dt>Language</dt>
      <dd>{{ .Language.LanguageName }}</dd>
    </dl>
    {{ .Content }}
    <hr>
    {{ i18n "BookShare" }}
  </div>
  {{ partial "post-info.html" . }}
</article>

{{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }}
  {{ partial "paginationPost.html" . }}
{{ end }}


{{ partial "custom-webring.html" }}

{{ end }}