~bittercode/pureburn

36a919da956ffed264e13e4328e796394078a358 — JR Peck 3 years ago 5e3ee85
layout work
M layouts/_default/full.html => layouts/_default/full.html +1 -0
@@ 10,6 10,7 @@
  </header>

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

M layouts/partials/review_meta.html => layouts/partials/review_meta.html +54 -0
@@ 0,0 1,54 @@
<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"}}
    {{ $count := len .Params.author }}
    {{ if gt $count 0 }}
    <div>
      Author: 
      {{ range $k, $v := .Params.author }}
        {{ . }}{{ if lt $k (sub $count 1) }}&nbsp;&#47;{{ end }}
      {{ end }}
    </div>
    {{ end }}
    {{ end }}
    <div>
      Length: {{.Params.length}}
    </div>
    <div>
      ISBN: {{.Params.isbn}}
    </div>
    <div>
        Rating: {{.Params.rating}}
    </div>
    {{ 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 }}
        <a class="post-taxonomy-topic" href="{{ $baseUrl }}topics/{{ . | urlize }}">{{ . }}</a>{{ if lt $k (sub $count 1) }}&nbsp;&#47;{{ end }}
      {{ end }}
    </div>
    {{ end }}
    {{ end }}
  
    {{ 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 }}
        <a class="post-taxonomy-tag" href="{{ $baseUrl }}tags/{{ . | urlize }}">{{ . }}</a>{{ if lt $k (sub $count 1) }}&nbsp;&#47;{{ end }}
      {{ end }}
    </div>
    {{ end }}
    {{ end }}
  
  </div>
\ No newline at end of file

M layouts/post/post.html => layouts/post/post.html +1 -0
@@ 6,6 6,7 @@
<div class="content">
  {{ range .Pages.GroupByDate "2006" }}
  <h2>{{ .Key }}</h2>
  post
  <ul>
  {{ range .Pages }}
    {{ .Render "li" }}

M layouts/review/review.html => layouts/review/review.html +1 -0
@@ 6,6 6,7 @@
<div class="content">
  {{ range .Pages.GroupByDate "2006" }}
  <h2>{{ .Key }}</h2>
  review
  <ul>
  {{ range .Pages }}
    {{ .Render "li" }}