fix: render games
This commit is contained in:
parent
0d736d2869
commit
a74da74d43
6 changed files with 56 additions and 32 deletions
7
layouts/partials/games/rows/date_added.html
Normal file
7
layouts/partials/games/rows/date_added.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
{{- with . -}}
|
||||
{{ with try ( time.Format "Jan 2, 2006" . ) }}
|
||||
{{ .Value }}
|
||||
{{ else }}
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
{{- end -}}
|
1
layouts/partials/games/rows/platforms.html
Normal file
1
layouts/partials/games/rows/platforms.html
Normal file
|
@ -0,0 +1 @@
|
|||
{{ . }}
|
7
layouts/partials/games/rows/release-date.html
Normal file
7
layouts/partials/games/rows/release-date.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
{{- with . -}}
|
||||
{{ with try ( time.Format "Jan 2, 2006" . ) }}
|
||||
{{ .Value }}
|
||||
{{ else }}
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
{{- end -}}
|
1
layouts/partials/games/rows/title.html
Normal file
1
layouts/partials/games/rows/title.html
Normal file
|
@ -0,0 +1 @@
|
|||
{{- partial "cite" ( dict "c" . "g" $ "section" "games" "schemaType" "VideoGame" "title" .title "titleLang" .original_language "titleTrans" .original_title ) -}}
|
Loading…
Add table
Add a link
Reference in a new issue