update film log template
This commit is contained in:
parent
97c32fb09a
commit
c427ba9bbe
1 changed files with 28 additions and 28 deletions
|
@ -2,17 +2,17 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan=4><h3>Diary</h3></td>
|
<td colspan=4><h3>Diary</h3></td>
|
||||||
</tr>
|
</tr>
|
||||||
{{ range ( sort ( where $.Site.Data.films.log "Date Watched" "!=" "" ) "Date Watched" "desc" ) }}
|
{{ range ( sort ( where $.Site.Data.films.log "date_watched" "!=" "" ) "date_watched" "desc" ) }}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ time.Format "Jan 2, 2006" ( index . "Date Added" ) }}</td>
|
<td>{{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
|
||||||
<td>
|
<td>
|
||||||
{{- partial "cite" ( dict "c" . "schemaType" "Movie" ) -}}
|
{{ .title }}
|
||||||
</td>
|
</td>
|
||||||
<td>{{ index . "Release Year" }}</td>
|
<td>{{ with .release_date }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
|
||||||
<td>
|
<td>
|
||||||
{{- if ( index . "Date Watched" ) -}}
|
{{- if .date_watched -}}
|
||||||
{{- time.Format "Jan 2, 2006" ( index . "Date Watched" ) -}}
|
{{- time.Format "Jan 2, 2006" .date_watched -}}
|
||||||
{{- if .Rewatch }} ↻{{ end -}}
|
{{- if .is_rewatch }} ↻{{ end -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
n/a
|
n/a
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -22,25 +22,25 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan=4><h3>Assorted</h3></td>
|
<td colspan=4><h3>Assorted</h3></td>
|
||||||
</tr>
|
</tr>
|
||||||
{{ range ( sort ( where $.Site.Data.films.log "Date Watched" "" ) "Title" "asc" ) }}
|
{{ range ( sort ( where $.Site.Data.films.log "date_watched" "" ) "title" "asc" ) }}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ time.Format "Jan 2, 2006" ( index . "Date Added" ) }}</td>
|
<td>{{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
|
||||||
<td>
|
<td>
|
||||||
{{- with ( where ( where $.Site.Pages "Section" "films" ) "Title" .Title ) -}}
|
{{- with ( where ( where $.Site.Pages "Section" "films" ) "title" .title ) -}}
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
<a href="{{ .RelPermalink }}">
|
<a href="{{ .RelPermalink }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<cite class="film">{{ .Title }}</cite>
|
<cite class="film">{{ .title }}</cite>
|
||||||
{{- with ( where ( where $.Site.Pages "Section" "films" ) "Title" .Title ) -}}
|
{{- with ( where ( where $.Site.Pages "Section" "films" ) "title" .title ) -}}
|
||||||
</a>
|
</a>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</td>
|
</td>
|
||||||
<td>{{ index . "Release Year" }}</td>
|
<td>{{ with .release_date }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
|
||||||
<td>
|
<td>
|
||||||
{{- if ( index . "Date Watched" ) -}}
|
{{- if .date_watched -}}
|
||||||
{{- time.Format "Jan 2, 2006" ( index . "Date Watched" ) -}}
|
{{- time.Format "Jan 2, 2006" .date_watched -}}
|
||||||
{{- if .Rewatch }} ↻{{ end -}}
|
{{- if .is_rewatch }} ↻{{ end -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
n/a
|
n/a
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -48,25 +48,25 @@
|
||||||
</tr>
|
</tr>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ else if ( eq ( .Scratch.Get "listMode" ) "wishlist" ) }}
|
{{ else if ( eq ( .Scratch.Get "listMode" ) "wishlist" ) }}
|
||||||
{{ range ( sort $.Site.Data.films.wishlist "Title" "asc" ) }}
|
{{ range ( sort $.Site.Data.films.wishlist "title" "asc" ) }}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ time.Format "Jan 2, 2006" ( index . "Date Added" ) }}</td>
|
<td>{{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
|
||||||
<td>
|
<td>
|
||||||
{{- with ( where ( where $.Site.Pages "Section" "films" ) "Title" .Title ) -}}
|
{{- with ( where ( where $.Site.Pages "Section" "films" ) "title" .title ) -}}
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
<a href="{{ .RelPermalink }}">
|
<a href="{{ .RelPermalink }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<cite class="film">{{ .Title }}</cite>
|
<cite class="film">{{ .title }}</cite>
|
||||||
{{- with ( where ( where $.Site.Pages "Section" "films" ) "Title" .Title ) -}}
|
{{- with ( where ( where $.Site.Pages "Section" "films" ) "title" .title ) -}}
|
||||||
</a>
|
</a>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</td>
|
</td>
|
||||||
<td>{{ index . "Release Year" }}</td>
|
<td>{{ with .release_date }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
|
||||||
<td>
|
<td>
|
||||||
{{- if ( index . "Date Watched" ) -}}
|
{{- if .date_watched -}}
|
||||||
{{- time.Format "Jan 2, 2006" ( index . "Date Watched" ) -}}
|
{{- time.Format "Jan 2, 2006" .date_watched -}}
|
||||||
{{- if .Rewatch }} ↻{{ end -}}
|
{{- if .is_rewatch }} ↻{{ end -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
n/a
|
n/a
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
Loading…
Reference in a new issue