~bittercode/pureburn

6c6885e5b2bdd16561ff44117b9843481ed7d4a3 — bittercode 3 years ago 36a919d
getting the review metadata right
2 files changed, 7 insertions(+), 6 deletions(-)

M archetypes/review/index.md
M layouts/partials/review_meta.html
M archetypes/review/index.md => archetypes/review/index.md +2 -1
@@ 7,7 7,8 @@ author:
length:
isbn:
rating:
cover:
cover: cover.jpg
pubdate:
tags:
    - 
topics:

M layouts/partials/review_meta.html => layouts/partials/review_meta.html +5 -5
@@ 1,10 1,5 @@
<div class="post-meta">

    <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>
  
    {{ $baseUrl := .Site.BaseURL }}
  
    {{if isset .Params "author"}}


@@ 27,6 22,7 @@
    <div>
        Rating: {{.Params.rating}}
    </div>
    <div>Publication Date: {{ with .Params.pubdate}}{{ .Date.Format "02 Jan 2006" }}{{ end }}</div>
    {{ if isset .Params "topics" }}
    {{ $count := len .Params.topics }}
    {{ if gt $count 0 }}


@@ 51,4 47,8 @@
    {{ end }}
    {{ end }}
  
    <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