M layouts/partials/review_meta.html => layouts/partials/review_meta.html +30 -26
@@ 2,30 2,30 @@
{{ $baseUrl := .Site.BaseURL }}
- {{if isset .Params "author"}}
- {{ $count := len .Params.author }}
- {{ if gt $count 0 }}
- <div>
- Author:
+ <span id="deettext">
+ <ul>
+ {{if isset .Params "author"}}
+ {{ $count := len .Params.author }}
+ {{ if gt $count 0 }}
+
+ <li>Author:
{{ range $k, $v := .Params.author }}
{{ . }}{{ if lt $k (sub $count 1) }} /{{ end }}
+ {{ end }}</li>
+
{{ end }}
- </div>
- {{ end }}
- {{ end }}
- <div>
- Length: {{.Params.length}}
- </div>
- <div>
- ISBN: {{.Params.isbn}}
- </div>
- <div>
- Rating: {{.Params.rating}}
- </div>
- <div>Publication Date: {{ dateFormat "02 January 2006" .Params.pubdate}}</div>
+ {{ end }}
+
+ <li>Length: {{.Params.length}}</li>
+ <li>ISBN: {{.Params.isbn}}</li>
+ <li>Rating: {{.Params.rating}}</li>
+ <li>Publication Date: {{ dateFormat "02 January 2006" $.Params.pubdate }}</li>
+ </ul>
+
{{ if isset .Params "topics" }}
{{ $count := len .Params.topics }}
{{ if gt $count 0 }}
+
<div>
<i class="fa fa-folder fa-fw"></i>
{{ range $k, $v := .Params.topics }}
@@ 38,17 38,21 @@
{{ if isset .Params "tags" }}
{{ $count := len .Params.tags }}
{{ if gt $count 0 }}
- <div>
- <i class="fa fa-tags fa-fw"></i>
- {{ range $k, $v := .Params.tags }}
+ <div>
+ <i class="fa fa-tags fa-fw"></i>
+ {{ range $k, $v := .Params.tags }}
<a class="post-taxonomy-tag" href="{{ $baseUrl }}tags/{{ . | urlize }}">{{ . }}</a>{{ if lt $k (sub $count 1) }} /{{ end }}
+ {{ end }}
+ </div>
+ {{ end }}
{{ end }}
- </div>
- {{ end }}
- {{ end }}
- <div>
+ <div>
<i class="fa fa-calendar fa-fw"></i>
<time>{{ with .Site.Params.dateFormat }}{{ $.Date.Format . }}{{ else }}{{ .Date.Format "02 Jan 2006, 15:04" }}{{ end }}</time>
</div>
- </div>>
\ No newline at end of file
+ </span>
+ {{with .Resources.Match "images/cover.jpg"}}{{range . }}<img id="bookcover" src="{{ .RelPermalink }}">{{end}}{{end}}
+ <br style="clear: both;">
+
+</div><
\ No newline at end of file
M static/css/pureburn.css => static/css/pureburn.css +8 -0
@@ 86,4 86,12 @@ i {
.pagination a {
color: #265778;
+}
+
+#bookcover {
+ float: right;
+}
+
+#deettext {
+ float: left;
}=
\ No newline at end of file