~bittercode/pureburn

418b045c9f5c23876204902111d1dab25351ffa3 — bittercode 3 years ago 27c4409 + 659f2ec
Merge branch 'master' of git.sr.ht:~bittercode/pureburn
4 files changed, 18 insertions(+), 4 deletions(-)

D archetypes/review/images/cover.txt
A archetypes/review/images/covers.txt
M layouts/_default/full.html
M layouts/partials/review_meta.html
D archetypes/review/images/cover.txt => archetypes/review/images/cover.txt +0 -1
@@ 1,1 0,0 @@
Book cover image goes in this directory and any other images you want for the review.

A archetypes/review/images/covers.txt => archetypes/review/images/covers.txt +1 -0
@@ 0,0 1,1 @@
The theme looks for a single file named cover.* to show as the cover of the book.

M layouts/_default/full.html => layouts/_default/full.html +0 -1
@@ 10,7 10,6 @@
  </header>

  <p>
    full
  <div class="content">
    {{ .Content }}
  </div>

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.jpg"}}{{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