Compare commits
No commits in common. "3374a5ea2a088fbbabd190a6a59f91452181afed" and "a74da74d43abc06c39adf1934d76845280d14a11" have entirely different histories.
3374a5ea2a
...
a74da74d43
7 changed files with 56 additions and 65 deletions
|
@ -1,10 +1,11 @@
|
||||||
{{- with .date_started -}}
|
{{- with .date_started -}}
|
||||||
{{ if not $.date_finished }}Since{{ end }}
|
{{- time.Format "Jan 2, 2006" . -}}
|
||||||
{{ time.Format "Jan 2, 2006" . -}}
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
Unknown
|
Unknown
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .date_finished }}
|
to<br />
|
||||||
to
|
{{ with .date_finished -}}
|
||||||
{{ time.Format "Jan 2, 2006" . -}}
|
{{- time.Format "Jan 2, 2006" . -}}
|
||||||
|
{{- else -}}
|
||||||
|
Unknown
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
|
@ -9,11 +9,11 @@
|
||||||
itemscope
|
itemscope
|
||||||
itemprop="citation"
|
itemprop="citation"
|
||||||
itemtype="https://schema.org/{{- $itemType -}}"
|
itemtype="https://schema.org/{{- $itemType -}}"
|
||||||
{{- if $.titleTrans -}}
|
{{- if .titleTrans -}}
|
||||||
lang="{{- $.titleLang -}}"
|
lang="{{- $.titleLang -}}"
|
||||||
title="{{- $.titleTrans -}}"
|
title="{{- $.titleTrans -}}"
|
||||||
{{- end -}}>
|
{{- end -}}>
|
||||||
{{- $.title -}}
|
{{- .title -}}
|
||||||
</cite>
|
</cite>
|
||||||
{{- with $pages -}}</a>{{- end -}}
|
{{- with $pages -}}</a>{{- end -}}
|
||||||
|
|
||||||
|
|
|
@ -1,25 +1,21 @@
|
||||||
{{- $series_tmdb_id := .tmdb_id -}}
|
{{- $series_tmdb_id := .tmdb_id -}}
|
||||||
{{- $series := "" -}}
|
{{- $series := "" -}}
|
||||||
|
|
||||||
{{ warnf "%v" $series_tmdb_id }}
|
|
||||||
{{- range ( index .g.Site.Data.tv_series.current ) -}}
|
{{- range ( index .g.Site.Data.tv_series.current ) -}}
|
||||||
{{- if ( and ( isset . "tmdb_id" ) ( eq .tmdb_id $series_tmdb_id ) ) -}}
|
{{- if ( eq .tmdb_id $series_tmdb_id ) -}}
|
||||||
{{- $series = . -}}
|
{{- $series = . -}}
|
||||||
{{ warnf "%v" $series }}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- range ( index .g.Site.Data.tv_series.log ) -}}
|
{{- range ( index .g.Site.Data.tv_series.log ) -}}
|
||||||
{{- if ( and ( isset . "tmdb_id" ) ( eq .tmdb_id $series_tmdb_id ) ) -}}
|
{{- if ( eq .tmdb_id $series_tmdb_id ) -}}
|
||||||
{{- $series = . -}}
|
{{- $series = . -}}
|
||||||
{{ warnf "%v" $series }}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- range ( index .g.Site.Data.tv_series.wishlist ) -}}
|
{{- range ( index .g.Site.Data.tv_series.wishlist ) -}}
|
||||||
{{- if ( and ( isset . "tmdb_id" ) ( eq .tmdb_id $series_tmdb_id ) ) -}}
|
{{- if ( eq .tmdb_id $series_tmdb_id ) -}}
|
||||||
{{- $series = . -}}
|
{{- $series = . -}}
|
||||||
{{ warnf "%v" $series }}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|
|
@ -8,16 +8,11 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{{- with ( index . "Series Title" ) -}}
|
{{- with ( index . "Series Title" ) -}}
|
||||||
<cite
|
<cite class="cite" itemscope itemtype="TVSeries">{{ . }}</cite>
|
||||||
class="cite"
|
|
||||||
itemscope
|
|
||||||
itemtype="TVSeries"
|
|
||||||
>{{ . }}</cite
|
|
||||||
>
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- $series := partial "series_by_id" ( dict "g" $ "tmdb_id" .series.tmdb_id ) .series.tmdb_id -}}
|
{{- $series := partialCached "series_by_id" ( dict "g" $ "tmdb_id" .series.tmdb_id ) .series.tmdb_id -}}
|
||||||
{{- if ( not ( eq $series "" ) ) -}}
|
{{- if ( not ( eq $series "" ) ) -}}
|
||||||
{{- partial "cite" ( dict "c" . "g" $ "section" "tv/series" "schemaType" "TVSeries" "title" $series.title "titleLang" $series.original_language "titleTrans" $series.original_name ) -}}
|
{{- partial "cite" ( dict "c" . "g" $ "section" "tv" "schemaType" "TVSeries" "title" $series.name "titleLang" $series.original_language "titleTrans" $series.original_name ) -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
Unknown series
|
Unknown series
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -26,13 +21,11 @@
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
{{- if ( index . "Episode Title" ) -}}
|
{{- if ( index . "Episode Title" ) -}}
|
||||||
{{- partial "cite" ( dict "c" . "g" $ "section" "tv/episodes" "schemaType" "TVEpisode" "title" ( index . "Episode Title" ) ) -}}
|
{{- partial "cite" ( dict "c" . "g" $ "section" "tv" "schemaType" "TVEpisode" "title" ( index . "Episode Title" ) ) -}}
|
||||||
<span class="episode-number">({{ index . "Episode Number" }})</span>
|
<span class="episode-number">({{ index . "Episode Number" }})</span>
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- partial "cite" ( dict "c" . "g" $ "section" "tv/episodes" "schemaType" "TVEpisode" "title" .title ) -}}
|
{{- partial "cite" ( dict "c" . "g" $ "section" "tv" "schemaType" "TVEpisode" "title" .name ) -}}
|
||||||
<span class="episode-number"
|
<span class="episode-number">(S{{ .season_number }}E{{ .episode_number }})</span>
|
||||||
>({{ printf "S%vE%v" .season_number .episode_number }})</span
|
|
||||||
>
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
{{- with ( index . "title" ) -}}
|
{{- with ( index . "name" ) -}}
|
||||||
<cite
|
<cite
|
||||||
class="cite"
|
class="cite"
|
||||||
itemscope
|
itemscope
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
{{- with ( index . "title" ) -}}
|
{{- with ( index . "name" ) -}}
|
||||||
<cite
|
<cite
|
||||||
class="cite"
|
class="cite"
|
||||||
itemscope
|
itemscope
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ else if ( eq ( .Scratch.Get "listMode" ) "wishlist" ) }}
|
{{ else if ( eq ( .Scratch.Get "listMode" ) "wishlist" ) }}
|
||||||
{{ range ( sort $.Site.Data.tv_series.wishlist "title" "asc" ) }}
|
{{ range ( sort $.Site.Data.tv_series.wishlist "name" "asc" ) }}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{{ with .date_added }}
|
{{ with .date_added }}
|
||||||
|
@ -72,7 +72,7 @@
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
{{- with ( index . "title" ) -}}
|
{{- with ( index . "name" ) -}}
|
||||||
<cite
|
<cite
|
||||||
class="cite"
|
class="cite"
|
||||||
itemscope
|
itemscope
|
||||||
|
|
|
@ -4,9 +4,10 @@
|
||||||
"description": "A media cataloguing site, made with Hugo.",
|
"description": "A media cataloguing site, made with Hugo.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"precommit": "npm run lint-staged",
|
"precommit": "npm run lint-staged",
|
||||||
"dev": "hugo server",
|
"update:theme": "hugo mod get -u code.bengoldsworthy.net/Rumperuu/Cataloguer@main",
|
||||||
"build": "rm -rf ./public/ && hugo --environment production",
|
"dev": "npm run update:theme && hugo server",
|
||||||
"build:dev": "rm -rf ./public_dev/ && hugo --environment staging",
|
"build": "npm run update:theme && rm -rf ./public/ && hugo --environment production",
|
||||||
|
"build:dev": "npm run update:theme && rm -rf ./public_dev/ && hugo --environment staging",
|
||||||
"spellcheck": "cspell \"content/**/*.md\"",
|
"spellcheck": "cspell \"content/**/*.md\"",
|
||||||
"lint": "npm run lint:js; npm run lint:css; npm run lint:md; npm run lint:html; npm run lint:json",
|
"lint": "npm run lint:js; npm run lint:css; npm run lint:md; npm run lint:html; npm run lint:json",
|
||||||
"lint:fix": "npm run lint:js:fix; npm run lint:css:fix; npm run lint:md:fix; npm run lint:json:fix",
|
"lint:fix": "npm run lint:js:fix; npm run lint:css:fix; npm run lint:md:fix; npm run lint:json:fix",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name = "Cataloguer"
|
name = "Cataloguer"
|
||||||
min_version = "0.140.0"
|
min_version = "0.41.0"
|
||||||
license = "CC0"
|
license = "CC0"
|
||||||
licenselink = "https://code.bengoldsworthy.net/Rumperuu/Cataloguer/blob/main/LICENSE"
|
licenselink = "https://code.bengoldsworthy.net/Rumperuu/Cataloguer/blob/main/LICENSE"
|
||||||
description = "A media cataloguing site, made with Hugo."
|
description = "A media cataloguing site, made with Hugo."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue