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>
|
||||
<td colspan=4><h3>Diary</h3></td>
|
||||
</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>
|
||||
<td>{{ time.Format "Jan 2, 2006" ( index . "Date Added" ) }}</td>
|
||||
<td>{{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
|
||||
<td>
|
||||
{{- partial "cite" ( dict "c" . "schemaType" "Movie" ) -}}
|
||||
{{ .title }}
|
||||
</td>
|
||||
<td>{{ index . "Release Year" }}</td>
|
||||
<td>{{ with .release_date }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
|
||||
<td>
|
||||
{{- if ( index . "Date Watched" ) -}}
|
||||
{{- time.Format "Jan 2, 2006" ( index . "Date Watched" ) -}}
|
||||
{{- if .Rewatch }} ↻{{ end -}}
|
||||
{{- if .date_watched -}}
|
||||
{{- time.Format "Jan 2, 2006" .date_watched -}}
|
||||
{{- if .is_rewatch }} ↻{{ end -}}
|
||||
{{- else -}}
|
||||
n/a
|
||||
{{- end -}}
|
||||
|
@ -22,25 +22,25 @@
|
|||
<tr>
|
||||
<td colspan=4><h3>Assorted</h3></td>
|
||||
</tr>
|
||||
{{ range ( sort ( where $.Site.Data.films.log "Date Watched" "" ) "Title" "asc" ) }}
|
||||
{{ range ( sort ( where $.Site.Data.films.log "date_watched" "" ) "title" "asc" ) }}
|
||||
<tr>
|
||||
<td>{{ time.Format "Jan 2, 2006" ( index . "Date Added" ) }}</td>
|
||||
<td>{{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
|
||||
<td>
|
||||
{{- with ( where ( where $.Site.Pages "Section" "films" ) "Title" .Title ) -}}
|
||||
{{- with ( where ( where $.Site.Pages "Section" "films" ) "title" .title ) -}}
|
||||
{{ range . }}
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
<cite class="film">{{ .Title }}</cite>
|
||||
{{- with ( where ( where $.Site.Pages "Section" "films" ) "Title" .Title ) -}}
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
<cite class="film">{{ .title }}</cite>
|
||||
{{- with ( where ( where $.Site.Pages "Section" "films" ) "title" .title ) -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</td>
|
||||
<td>{{ index . "Release Year" }}</td>
|
||||
<td>{{ with .release_date }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
|
||||
<td>
|
||||
{{- if ( index . "Date Watched" ) -}}
|
||||
{{- time.Format "Jan 2, 2006" ( index . "Date Watched" ) -}}
|
||||
{{- if .Rewatch }} ↻{{ end -}}
|
||||
{{- if .date_watched -}}
|
||||
{{- time.Format "Jan 2, 2006" .date_watched -}}
|
||||
{{- if .is_rewatch }} ↻{{ end -}}
|
||||
{{- else -}}
|
||||
n/a
|
||||
{{- end -}}
|
||||
|
@ -48,25 +48,25 @@
|
|||
</tr>
|
||||
{{ end }}
|
||||
{{ else if ( eq ( .Scratch.Get "listMode" ) "wishlist" ) }}
|
||||
{{ range ( sort $.Site.Data.films.wishlist "Title" "asc" ) }}
|
||||
{{ range ( sort $.Site.Data.films.wishlist "title" "asc" ) }}
|
||||
<tr>
|
||||
<td>{{ time.Format "Jan 2, 2006" ( index . "Date Added" ) }}</td>
|
||||
<td>{{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
|
||||
<td>
|
||||
{{- with ( where ( where $.Site.Pages "Section" "films" ) "Title" .Title ) -}}
|
||||
{{- with ( where ( where $.Site.Pages "Section" "films" ) "title" .title ) -}}
|
||||
{{ range . }}
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
<cite class="film">{{ .Title }}</cite>
|
||||
{{- with ( where ( where $.Site.Pages "Section" "films" ) "Title" .Title ) -}}
|
||||
<cite class="film">{{ .title }}</cite>
|
||||
{{- with ( where ( where $.Site.Pages "Section" "films" ) "title" .title ) -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
</td>
|
||||
<td>{{ index . "Release Year" }}</td>
|
||||
<td>{{ with .release_date }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
|
||||
<td>
|
||||
{{- if ( index . "Date Watched" ) -}}
|
||||
{{- time.Format "Jan 2, 2006" ( index . "Date Watched" ) -}}
|
||||
{{- if .Rewatch }} ↻{{ end -}}
|
||||
{{- if .date_watched -}}
|
||||
{{- time.Format "Jan 2, 2006" .date_watched -}}
|
||||
{{- if .is_rewatch }} ↻{{ end -}}
|
||||
{{- else -}}
|
||||
n/a
|
||||
{{- end -}}
|
||||
|
|
Loading…
Reference in a new issue