~bittercode/pureburn

659f2ecb00def445b2e68b4140c136bc8fabb0b8 — bittercode 3 years ago c0126d9
made cover image handling more flexible
1 files changed, 17 insertions(+), 2 deletions(-)

M layouts/partials/review_meta.html
M layouts/partials/review_meta.html => layouts/partials/review_meta.html +17 -2
@@ 16,10 16,18 @@
      {{ end }}
      {{ end }}
    
     <li>Length: {{.Params.length}}</li>
      {{ if isset .Params "length"}}
      <li>Length: {{.Params.length}}</li>
      {{ end }}
      {{ if isset .Params "isbn" }}
      <li>ISBN: {{.Params.isbn}}</li>
      {{ end }}
      {{ if isset .Params "rating" }}
      <li>Rating: {{.Params.rating}}</li>
      {{ end }}
      {{ if isset .Params "pubdate"}}
      <li>Publication Date: {{ dateFormat "02 January 2006" $.Params.pubdate }}</li>
      {{ end }}
    </ul>
  
    {{ if isset .Params "topics" }}


@@ 52,7 60,14 @@
        <time>{{ with .Site.Params.dateFormat }}{{ $.Date.Format . }}{{ else }}{{ .Date.Format "02 Jan 2006, 15:04" }}{{ end }}</time>
      </div>
    </span>
      {{with .Resources.Match "images/cover.*"}}{{range . }}<img id="bookcover" src="{{ .RelPermalink }}">{{end}}{{end}}
    {{ if isset .Params "cover" }}
      {{ with .Params.cover }}
        {{ $coverimage := $.Resources.GetMatch ( . ) }}
        {{with $coverimage }}
          <img id="bookcover" src="{{ .RelPermalink }}">
        {{end}}
      {{ end }}
    {{ end }}
      <br style="clear: both;">
  
</div>
\ No newline at end of file