Compare commits

..

No commits in common. "39c64bf51a41c3032a9e33f24c1cea81cf061542" and "5c664be9a89e8e37840b692e47fbb686c68c1b29" have entirely different histories.

39 changed files with 203 additions and 548 deletions

View file

@ -1,2 +0,0 @@
node_modules/
*.md

View file

@ -1,14 +0,0 @@
{
"plugins": ["prettier-plugin-go-template"],
"proseWrap": "preserve",
"overrides": [
{
"files": ["*.html"],
"options": {
"parser": "go-template",
"printWidth": 80,
"singleAttributePerLine": true
}
}
]
}

View file

@ -1,30 +1,25 @@
/* TODO: Not currently used */ /* TODO: Not currently used */
@media screen and (max-width: 480px) { @media screen and (max-width: 480px) {
.table-scroller { .table-scroller {
overflow-x: auto; overflow-x: auto;
width: 320px; width: 320px;
} }
} }
table { table {
margin: auto; margin: auto;
inline-size: 80%; width: 80%;
display: table; display: table;
& thead { & thead {
border: 2px solid $dark; border: 2px solid $dark;
} }
& td { & td {
padding: 0.5em 1em; padding: 0.5em 1em;
border: 1px solid $dark; border: 1px solid $dark;
}
&:nth-of-type(1), }
&:nth-last-of-type(1) {
white-space: nowrap;
}
}
}
td[colspan] { td[colspan] {
text-align: center; text-align: center;

View file

@ -11,7 +11,7 @@
width: 100%; width: 100%;
text-align: center; text-align: center;
z-index: 1; z-index: 1;
&__title, &__title,
&__tagline, &__tagline,
&__icons, &__icons,
@ -45,7 +45,7 @@
grid-area: header-nav; grid-area: header-nav;
margin: auto; margin: auto;
width: 100%; width: 100%;
@include mq("desktop") { @include mq('desktop') {
width: 60%; width: 60%;
} }

View file

@ -2,23 +2,7 @@
grid-area: page-container; grid-area: page-container;
margin-left: 1em; margin-left: 1em;
margin-right: 1em; margin-right: 1em;
@include mq("desktop") { @include mq('desktop') {
margin: 2em; margin: 2em;
} }
&__header {
& .section-nav {
padding-block-end: 1em;
& li {
float: left;
padding-inline: 1em;
}
}
& .section__desc {
border-block: 2px solid $dark;
margin-block: 1em;
}
}
} }

View file

@ -1,5 +0,0 @@
---
title: Books
---
Here you can record books that you read.

View file

@ -1,6 +0,0 @@
---
title: Currently Reading
weight: 4
---
Here you can record books that you are currently reading.

View file

@ -1,6 +0,0 @@
---
title: Read
weight: 2
---
Here you can record books that you have previously read.

View file

@ -1,6 +0,0 @@
---
title: To-Read
weight: 3
---
Here you can record books that you would like to read.

View file

@ -1,5 +0,0 @@
---
title: Films
---
Here you can record films that you watch.

View file

@ -1,6 +0,0 @@
---
title: Watched
weight: 1
---
Here you can record films that you have previously watched.

View file

@ -1,6 +0,0 @@
---
title: To-Watch
weight: 2
---
Here you can record films that you would like to watch.

View file

@ -1,5 +0,0 @@
---
title: Games
---
Here you can record games that you play.

View file

@ -1,6 +0,0 @@
---
title: Currently Playing
weight: 1
---
Here you can record games that you are currently playing.

View file

@ -1,6 +0,0 @@
---
title: Played
weight: 2
---
Here you can record games that you have previously played.

View file

@ -1,6 +0,0 @@
---
title: To-Play
weight: 3
---
Here you can record games that you would like to play.

View file

@ -1,5 +0,0 @@
---
title: TV
---
Here you can record TV shows that you watch.

View file

@ -1,5 +0,0 @@
---
title: TV Episodes
---
Here you can record TV show episodes that you watch.

View file

@ -1,7 +0,0 @@
---
title: Watched
slug: log
weight: 2
---
Here you can record TV show episodes that you have previously watched.

View file

@ -1,5 +0,0 @@
---
title: TV Series'
---
Here you can record TV series' that you watch.

View file

@ -1,6 +0,0 @@
---
title: Currently Watching
weight: 1
---
Here you can record TV series' that you are currently watching.

View file

@ -1,6 +0,0 @@
---
title: Watched
weight: 2
---
Here you can record TV series' that you have previously watched.

View file

@ -1,6 +0,0 @@
---
title: To-Watch
weight: 3
---
Here you can record TV series' that you have would like to watch.

View file

@ -1,6 +1,5 @@
{{ define "title" }} {{ define "title" }}
{{ .Page.Title | plainify }} | {{ .Page.Title | plainify }} | {{ .Site.Title }}
{{ .Site.Title }}
{{ end }} {{ end }}
{{ define "main-class" }}--section{{ end }} {{ define "main-class" }}--section{{ end }}
@ -9,53 +8,42 @@
{{ define "item-type" }}{{ .Params.itemsType }}{{ end }} {{ define "item-type" }}{{ .Params.itemsType }}{{ end }}
{{ define "main-header" }} {{ define "main-header" }}
<header class="site-content__header"> <header class="site-content__header">
<h1 class="page-title"> {{- .Scratch.Set "section" ( first 1 ( split .File.Dir "/" ) ) -}}
{{ .Title | safeHTML }} {{- $section := .Scratch.Get "section" -}}
{{ range .AlternativeOutputFormats -}} {{ if ( or ( in "books" ( delimit $section "" ) ) ( in "games" ( delimit $section "" ) ) ) }}
<a href="{{ .RelPermalink }}"> <a href="/{{ delimit $section "" }}/current">Current</a> ~
<img {{ end }}
class="feed-icon" <a href="/{{ delimit $section "" }}/log">Log</a> ~
src="/images/feed-icon.svg" <a href="/{{ delimit $section "" }}/wishlist">Wishlist</a>
/>
</a> <h1 class="page-title">{{ .Title | safeHTML }}
{{ end }} {{ range .AlternativeOutputFormats -}}
</h1> <a href="{{ .RelPermalink }}">
<img class="feed-icon" src="/images/feed-icon.svg">
{{ with ( default .Parent.Sections .Sections ) }} </a>
<nav class="section-nav"> {{ end }}
<ul> </h1>
{{ range .ByWeight }} {{ .Content }}
<li> </header>
{{ if eq . $.Page }}
<p style="margin: 0;">{{ .Title }}</p>
{{ else }}
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ end }}
</li>
{{ end }}
</ul>
</nav>
{{ end }}
<div class="section__desc">
{{ .Content }}
</div>
</header>
{{ end }} {{ end }}
{{ define "main-body" }} {{ define "main-body" }}
<main class="site-content__body"> <main class="site-content__body">
{{ .Scratch.Set "page" .Page.Slug }} {{ if .File }}
{{ .Scratch.Set "page" ( index ( split .File.Dir "/" ) 1 ) }}
{{ if ( in "current log wishlist" ( .Scratch.Get "page" ) ) }} {{ if ( in "current log wishlist" ( .Scratch.Get "page" ) ) }}
{{ if ( eq ( .Scratch.Get "page" ) "current" ) }} {{ if ( eq ( .Scratch.Get "page" ) "current" ) }}
{{ .Scratch.Set "listMode" "current" }} {{ .Scratch.Set "listMode" "current" }}
{{ else if ( eq ( .Scratch.Get "page" ) "log" ) }} {{ else if ( eq ( .Scratch.Get "page" ) "log" ) }}
{{ .Scratch.Set "listMode" "log" }} {{ .Scratch.Set "listMode" "log" }}
{{ else if ( eq ( .Scratch.Get "page" ) "wishlist" ) }} {{ else if ( eq ( .Scratch.Get "page" ) "wishlist" ) }}
{{ .Scratch.Set "listMode" "wishlist" }} {{ .Scratch.Set "listMode" "wishlist" }}
{{ end }} {{ end }}
{{ partial "stats" . }} {{ partial "stats" . }}
@ -63,5 +51,6 @@
{{ partial "table" . }} {{ partial "table" . }}
{{ end }} {{ end }}
</main> {{ end }}
</main>
{{ end }} {{ end }}

View file

@ -1,11 +1,9 @@
{{- with .date_started -}} {{- with .date_started -}}
{{- time.Format "Jan 2, 2006" . -}} {{- time.Format "Jan 2, 2006" . -}}
{{- else -}} {{- else -}}
Unknown Unknown
{{- end }} {{- end -}}&ndash;{{- with .date_finished -}}
to<br /> {{- time.Format "Jan 2, 2006" . -}}
{{ with .date_finished -}}
{{- time.Format "Jan 2, 2006" . -}}
{{- else -}} {{- else -}}
Unknown Unknown
{{- end -}} {{- end -}}

View file

@ -1,14 +1,7 @@
{{ if ( eq ( .Scratch.Get "listMode" ) "current" ) }} {{ if ( eq ( .Scratch.Get "listMode" ) "current" ) }}
{{ range ( sort $.Site.Data.books.current "date_started" "desc" ) }} {{ range ( sort $.Site.Data.books.current "date_started" "desc" ) }}
<tr> <tr>
<td> <td>{{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ else }}n/a{{ end }}</td>
{{ with .date_added }}
{{ time.Format "Jan 2, 2006" . }}
{{ else }}
n/a
{{ end }}
</td>
<td> <td>
{{- partial "books/rows/title.html" ( dict "c" . "g" $ ) -}} {{- partial "books/rows/title.html" ( dict "c" . "g" $ ) -}}
@ -28,28 +21,20 @@
<td> <td>
{{- with .date_started -}} {{- with .date_started -}}
Since Since {{ time.Format "Jan 2, 2006" . -}}
{{ time.Format "Jan 2, 2006" . -}}
{{- else -}} {{- else -}}
Unknown Unknown
{{- end -}} {{- end -}}
</td> </td>
</tr> </tr>
{{ end }} {{ end }}
{{ else if ( eq ( .Scratch.Get "listMode" ) "log" ) }} {{ else if ( eq ( .Scratch.Get "listMode" ) "log" ) }}
<tr> <tr>
<td colspan="5"><h3>Diary</h3></td> <td colspan=5><h3>Diary</h3></td>
</tr> </tr>
{{ range ( sort ( where $.Site.Data.books.log "Date Finished" "!=" "" ) "Date Finished" "desc" ) }} {{ range ( sort ( where $.Site.Data.books.log "Date Finished" "!=" "" ) "Date Finished" "desc" ) }}
<tr> <tr>
<td> <td>{{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ else }}n/a{{ end }}</td>
{{ with .date_added }}
{{ time.Format "Jan 2, 2006" . }}
{{ else }}
n/a
{{ end }}
</td>
<td> <td>
{{- partial "books/rows/title.html" ( dict "c" . "g" $ ) -}} {{- partial "books/rows/title.html" ( dict "c" . "g" $ ) -}}
@ -73,18 +58,11 @@
</tr> </tr>
{{ end }} {{ end }}
<tr> <tr>
<td colspan="5"><h3>Assorted</h3></td> <td colspan=5><h3>Assorted</h3></td>
</tr> </tr>
{{ range ( sort ( where $.Site.Data.books.log "Date Finished" "" ) "Title" "asc" ) }} {{ range ( sort ( where $.Site.Data.books.log "Date Finished" "" ) "Title" "asc" ) }}
<tr> <tr>
<td> <td>{{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ else }}n/a{{ end }}</td>
{{ with .date_added }}
{{ time.Format "Jan 2, 2006" . }}
{{ else }}
n/a
{{ end }}
</td>
<td> <td>
{{- partial "books/rows/title.html" ( dict "c" . "g" $ ) -}} {{- partial "books/rows/title.html" ( dict "c" . "g" $ ) -}}
@ -110,14 +88,7 @@
{{ else if ( eq ( .Scratch.Get "listMode" ) "wishlist" ) }} {{ else if ( eq ( .Scratch.Get "listMode" ) "wishlist" ) }}
{{ range ( sort $.Site.Data.books.wishlist "Title" "asc" ) }} {{ range ( sort $.Site.Data.books.wishlist "Title" "asc" ) }}
<tr> <tr>
<td> <td>{{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ else }}n/a{{ end }}</td>
{{ with .date_added }}
{{ time.Format "Jan 2, 2006" . }}
{{ else }}
n/a
{{ end }}
</td>
<td> <td>
{{- partial "books/rows/title.html" ( dict "c" . "g" $ ) -}} {{- partial "books/rows/title.html" ( dict "c" . "g" $ ) -}}
@ -134,6 +105,8 @@
<td> <td>
{{- partial "books/rows/publish-date.html" . -}} {{- partial "books/rows/publish-date.html" . -}}
</td> </td>
<td>n/a</td>
</tr> </tr>
{{ end }} {{ end }}
{{ end }} {{ end }}

View file

@ -2,6 +2,4 @@
<th>Title</th> <th>Title</th>
<th>Author(s)</th> <th>Author(s)</th>
<th>Publication Date</th> <th>Publication Date</th>
{{ if ( not ( eq ( .Scratch.Get "listMode" ) "wishlist" ) ) }} <th>Dates Read</th>
<th>Dates Read</th>
{{ end }}

View file

@ -1,78 +1,81 @@
{{ if ( eq ( .Scratch.Get "listMode" ) "log" ) }} {{ if ( eq ( .Scratch.Get "listMode" ) "log" ) }}
<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_finished" "!=" "" ) "date_finished" "desc" ) }} {{ range ( sort ( where $.Site.Data.films.log "date_finished" "!=" "" ) "date_finished" "desc" ) }}
<tr> <tr>
<td>{{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td> <td>{{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
<td> <td>
{{- partial "cite" ( dict "c" . "g" $ "section" "films" "schemaType" "Movie" "title" .title "titleLang" .original_language "titleTrans" .original_title ) -}} {{- partial "cite" ( dict "c" . "g" $ "section" "films" "schemaType" "Movie" "title" .title "titleLang" .original_language "titleTrans" .original_title ) -}}
{{- with .comments -}} {{- with .comments -}}
<p class="comments">Comments: {{ . }}</p> <p class="comments">Comments: {{ . }}</p>
{{- end -}} {{- end -}}
</td> </td>
<td> <td>{{ with .release_date }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
{{ with .release_date }}{{ time.Format "Jan 2, 2006" . }}{{ end }}
</td>
<td> <td>
{{- if .date_finished -}} {{- if .date_finished -}}
{{- time.Format "Jan 2, 2006" .date_finished -}} {{- time.Format "Jan 2, 2006" .date_finished -}}
{{- if .is_repeat }}&#x21BB;{{ end -}} {{- if .is_repeat }} &#x21BB;{{ end -}}
{{- else -}} {{- else -}}
n/a n/a
{{- end -}} {{- end -}}
</td> </td>
</tr> </tr>
{{ end }} {{ end }}
<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_finished" "" ) "title" "asc" ) }} {{ range ( sort ( where $.Site.Data.films.log "date_finished" "" ) "title" "asc" ) }}
<tr> <tr>
<td>{{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td> <td>{{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
<td> <td>
{{- partial "cite" ( dict "c" . "g" $ "section" "films" "schemaType" "Movie" "title" .title "titleLang" .original_language "titleTrans" .original_title ) -}} {{- partial "cite" ( dict "c" . "g" $ "section" "films" "schemaType" "Movie" "title" .title "titleLang" .original_language "titleTrans" .original_title ) -}}
{{- with .comments -}} {{- with .comments -}}
<p class="comments">Comments: {{ . }}</p> <p class="comments">Comments: {{ . }}</p>
{{- end -}} {{- end -}}
</td> </td>
<td> <td>{{ with .release_date }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
{{ with .release_date }}{{ time.Format "Jan 2, 2006" . }}{{ end }}
</td>
<td> <td>
{{- if .date_finished -}} {{- if .date_finished -}}
{{- time.Format "Jan 2, 2006" .date_finished -}} {{- time.Format "Jan 2, 2006" .date_finished -}}
{{- if .is_repeat }}&#x21BB;{{ end -}} {{- if .is_repeat }} &#x21BB;{{ end -}}
{{- else -}} {{- else -}}
n/a n/a
{{- end -}} {{- end -}}
</td> </td>
</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>{{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td> <td>{{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
<td> <td>
{{- partial "cite" ( dict "c" . "g" $ "section" "films" "schemaType" "Movie" "title" .title "titleLang" .original_language "titleTrans" .original_title ) -}} {{- partial "cite" ( dict "c" . "g" $ "section" "films" "schemaType" "Movie" "title" .title "titleLang" .original_language "titleTrans" .original_title ) -}}
{{- with .comments -}} {{- with .comments -}}
<p class="comments">Comments: {{ . }}</p> <p class="comments">Comments: {{ . }}</p>
{{- end -}} {{- end -}}
</td> </td>
<td> <td>{{ with .release_date }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
{{ with .release_date }}{{ time.Format "Jan 2, 2006" . }}{{ end }}
</td> <td>
</tr> {{- if .date_finished -}}
{{- time.Format "Jan 2, 2006" .date_finished -}}
{{- if .is_repeat }} &#x21BB;{{ end -}}
{{- else -}}
n/a
{{- end -}}
</td>
</tr>
{{ end }} {{ end }}
{{ end }} {{ end }}

View file

@ -1,6 +1,4 @@
<th>Date Added</th> <th>Date Added</th>
<th>Title</th> <th>Title</th>
<th>Release Date</th> <th>Release Date</th>
{{ if ( eq ( .Scratch.Get "listMode" ) "log" ) }} <th>Date Watched</th>
<th>Date Watched</th>
{{ end }}

View file

@ -1,90 +1,78 @@
{{ if ( eq ( .Scratch.Get "listMode" ) "current" ) }} {{ if ( eq ( .Scratch.Get "listMode" ) "current" ) }}
{{ range ( sort $.Site.Data.games.current "Date Started" "desc" ) }} {{ range ( sort $.Site.Data.games.current "Date Started" "desc" ) }}
<tr> <tr>
<td>TODO</td> <td>
<td>
{{- partial "cite" ( dict "c" . "g" $ "section" "games" "schemaType" "VideoGame" ) -}} {{- partial "cite" ( dict "c" . "g" $ "section" "games" "schemaType" "VideoGame" ) -}}
</td> </td>
<td>{{ .Platforms }}</td> <td>{{ index . "Date Released" }}</td>
<td>{{ index . "Date Released" }}</td> <td>{{ .Platforms }}</td>
<td> <td>
{{- if index . "Date Started" -}} {{- if index . "Date Started" -}}
Since Since {{ time.Format "Jan 2, 2006" ( index . "Date Started" ) -}}
{{ time.Format "Jan 2, 2006" ( index . "Date Started" ) -}} {{- else -}}
{{- else -}} Unknown
Unknown {{- end -}}
{{- end -}} </td>
</td> </tr>
</tr>
{{ end }} {{ end }}
{{ else if ( eq ( .Scratch.Get "listMode" ) "log" ) }} {{ else if ( eq ( .Scratch.Get "listMode" ) "log" ) }}
<tr> <tr>
<td colspan="6"><h3>Diary</h3></td> <td colspan=4><h3>Diary</h3></td>
</tr> </tr>
{{ range ( sort ( where $.Site.Data.games.log "Date Finished" "!=" "" ) "Date Finished" "desc" ) }} {{ range ( sort ( where $.Site.Data.games.log "Date Finished" "!=" "" ) "Date Finished" "desc" ) }}
<tr> <tr>
<td>TODO</td> <td>
<td>
{{- partial "cite" ( dict "c" . "g" $ "section" "games" "schemaType" "VideoGame" ) -}} {{- partial "cite" ( dict "c" . "g" $ "section" "games" "schemaType" "VideoGame" ) -}}
</td> </td>
<td>{{ .Platforms }}</td> <td>{{ index . "Date Released" }}</td>
<td>{{ index . "Date Released" }}</td> <td>{{ .Platforms }}</td>
<td> <td>
{{- with index . "Level of Completion" }} {{- if index . "Date Started" -}}
{{ . }} {{- time.Format "Jan 2, 2006" ( index . "Date Started" ) -}}
{{- end -}} {{- else -}}
</td> Unknown
<td> {{- end -}}&ndash;{{- if index . "Date Finished" -}}
{{- if index . "Date Started" -}} {{- time.Format "Jan 2, 2006" ( index . "Date Finished" ) -}}
{{- time.Format "Jan 2, 2006" ( index . "Date Started" ) -}} {{- else -}}
{{- else -}} Unknown
Unknown {{- end -}}
{{- end -}}&ndash;{{- if index . "Date Finished" -}} {{- if index . "Level of Completion" }} <span class="games__level-of-completion">({{ index . "Level of Completion" }})</span>{{- end -}}
{{- time.Format "Jan 2, 2006" ( index . "Date Finished" ) -}} </td>
{{- else -}} </tr>
Unknown
{{- end -}}
</td>
</tr>
{{ end }} {{ end }}
<tr> <tr>
<td colspan="6"><h3>Assorted</h3></td> <td colspan=5><h3>Assorted</h3></td>
</tr> </tr>
{{ range ( sort ( where $.Site.Data.games.log "Date Finished" "" ) "Title" "asc" ) }} {{ range ( sort ( where $.Site.Data.games.log "Date Finished" "" ) "Title" "asc" ) }}
<tr> <tr>
<td>TODO</td> <td>
<td>
{{- partial "cite" ( dict "c" . "g" $ "section" "games" "schemaType" "VideoGame" ) -}} {{- partial "cite" ( dict "c" . "g" $ "section" "games" "schemaType" "VideoGame" ) -}}
</td> </td>
<td>{{ .Platforms }}</td> <td>{{ index . "Date Released" }}</td>
<td>{{ index . "Date Released" }}</td> <td>{{ .Platforms }}</td>
<td> <td>
{{- with index . "Level of Completion" }} {{- if index . "Date Started" -}}
{{ . }} {{- time.Format "Jan 2, 2006" ( index . "Date Started" ) -}}
{{- end -}} {{- else -}}
</td> Unknown
<td> {{- end -}}&ndash;{{- if index . "Date Finished" -}}
{{- if index . "Date Started" -}} {{- time.Format "Jan 2, 2006" ( index . "Date Finished" ) -}}
{{- time.Format "Jan 2, 2006" ( index . "Date Started" ) -}} {{- else -}}
{{- else -}} Unknown
Unknown {{- end -}}
{{- end -}}&ndash;{{- if index . "Date Finished" -}} {{- if index . "Level of Completion" }} <span class="games__level-of-completion">({{ index . "Level of Completion" }})</span>{{- end -}}
{{- time.Format "Jan 2, 2006" ( index . "Date Finished" ) -}} </td>
{{- else -}} </tr>
Unknown
{{- end -}}
</td>
</tr>
{{ end }} {{ end }}
{{ else if ( eq ( .Scratch.Get "listMode" ) "wishlist" ) }} {{ else if ( eq ( .Scratch.Get "listMode" ) "wishlist" ) }}
{{ range ( sort $.Site.Data.games.wishlist "Title" "asc" ) }} {{ range ( sort $.Site.Data.games.wishlist "Title" "asc" ) }}
<tr> <tr>
<td>TODO</td> <td>
<td>
{{- partial "cite" ( dict "c" . "g" $ "section" "games" "schemaType" "VideoGame" ) -}} {{- partial "cite" ( dict "c" . "g" $ "section" "games" "schemaType" "VideoGame" ) -}}
</td> </td>
<td>{{ .Platforms }}</td> <td>{{ index . "Date Released" }}</td>
<td>{{ index . "Date Released" }}</td> <td>{{ .Platforms }}</td>
</tr> <td>n/a</td>
</tr>
{{ end }} {{ end }}
{{ end }} {{ end }}

View file

@ -1,8 +1,4 @@
<th>Date Added</th>
<th>Title</th> <th>Title</th>
<th>Platform(s)</th>
<th>Release Year</th> <th>Release Year</th>
{{ if ( not ( eq ( .Scratch.Get "listMode" ) "wishlist" ) ) }} <th>Platform(s) Played</th>
<th>Level of Completion</th> <th>Date Played</th>
<th>Dates Played</th>
{{ end }}

View file

@ -1,38 +1,18 @@
<header class="site-header"> <header class="site-header">
{{ block "header" . }} {{ block "header" . }}
<h1 <h1 class="site-header__title" itemprop="name"><a href="{{ .Site.Home.RelPermalink }}">{{ .Site.Title }}</a></h1>
class="site-header__title" <p class="site-header__tagline" itemprop="about">Views my own. Discussion ≠ endorsement. Do try this at home.</p>
itemprop="name" <p class="site-header__icons">~
> <a href="mailto:{{ $.Site.Author.email }}" rel="me">&#128231;</a> ~
<a href="{{ .Site.Home.RelPermalink }}">{{ .Site.Title }}</a> <a href="{{ .Site.Params.codeURL }}">&#128187;</a> ~
</h1> <a href="/{{ .Site.Params.keyfile }}">&#128272;</a> ~
<p <a href="/index.xml"><img class="feed-icon" src="/images/feed-icon.svg"></a> ~
class="site-header__tagline"
itemprop="about"
>
Views my own. Discussion ≠ endorsement. Do try this at home.
</p>
<p class="site-header__icons">
~
<a
href="mailto:{{ $.Site.Author.email }}"
rel="me"
>&#128231;</a
>
~ <a href="{{ .Site.Params.codeURL }}">&#128187;</a> ~
<a href="/{{ .Site.Params.keyfile }}">&#128272;</a> ~
<a href="/index.xml"
><img
class="feed-icon"
src="/images/feed-icon.svg"
/></a>
~
</p> </p>
<nav class="site-header__nav"> <nav class="site-header__nav">
<ul> <ul>
{{ range .Site.Sections.ByTitle }} {{ range .Site.Sections.ByTitle }}
<a href="{{ .RelPermalink }}"><li>{{ .Title | safeHTML }}</li></a> <a href="{{ .RelPermalink }}"><li>{{ .Title | safeHTML }}</li></a>
{{ end }} {{ end }}
</ul> </ul>
</nav> </nav>

View file

@ -1,25 +1,16 @@
{{ if ( .Scratch.Get "listMode" ) }} {{ if ( .Scratch.Get "listMode" ) }}
<table> <table>
<thead> <thead>
<tr> <tr>
{{ if ( and ( in site.Params.mainSections .Section ) ( in "current log wishlist" ( .Scratch.Get "page" ) ) ) }}
{{ if eq .Type "tv" }}
{{ partial ( printf "%s/%s/%s" .Section .Parent.Slug "table-header" ) . }}
{{ else }}
{{ partial ( printf "%s/%s" .Section "table-header" ) . }}
{{ end }}
{{ end }}
</tr>
</thead>
<tbody>
{{ if ( and ( in site.Params.mainSections .Section ) ( in "current log wishlist" ( .Scratch.Get "page" ) ) ) }} {{ if ( and ( in site.Params.mainSections .Section ) ( in "current log wishlist" ( .Scratch.Get "page" ) ) ) }}
{{ if eq .Type "tv" }} {{ partial ( printf "%s/%s" .Section "table-header" ) . }}
{{ partial ( printf "%s/%s/%s" .Section .Parent.Slug "table-body" ) . }}
{{ else }}
{{ partial ( printf "%s/%s" .Section "table-body" ) . }}
{{ end }}
{{ end }} {{ end }}
</tbody> </tr>
<table></table> </thead>
</table> <tbody>
{{ if ( and ( in site.Params.mainSections .Section ) ( in "current log wishlist" ( .Scratch.Get "page" ) ) ) }}
{{ partial ( printf "%s/%s" .Section "table-body" ) . }}
{{ end }}
</tbody>
<table>
{{ end }} {{ end }}

View file

@ -1,86 +0,0 @@
{{ if ( eq ( .Scratch.Get "listMode" ) "current" ) }}
{{ range ( sort $.Site.Data.tv_series.current "date_started" "desc" ) }}
<tr>
<td>
{{ with .date_added }}
{{ time.Format "Jan 2, 2006" . }}
{{ else }}
n/a
{{ end }}
</td>
<td>
{{- with ( index . "name" ) -}}
<cite
class="cite"
itemscope
itemtype="TVSeries"
>{{ . }}</cite
>
{{- end -}}
</td>
<td>
{{- partial "books/rows/read-dates.html" . -}}
</td>
</tr>
{{ end }}
{{ else if ( eq ( .Scratch.Get "listMode" ) "log" ) }}
{{ if ( eq ( .Scratch.Get "listMode" ) "log" ) }}
{{ .Scratch.Set "filterCol" "date_finished" }}
{{ .Scratch.Set "filterDir" "desc" }}
{{ end }}
{{ range ( sort $.Site.Data.tv_series.log ( .Scratch.Get "filterCol" ) ( .Scratch.Get "filterDir" ) ) }}
<tr>
<td>
{{ with .date_added }}
{{ time.Format "Jan 2, 2006" . }}
{{ else }}
n/a
{{ end }}
</td>
<td>
{{- with ( index . "name" ) -}}
<cite
class="cite"
itemscope
itemtype="TVSeries"
>{{ . }}</cite
>
{{- end -}}
</td>
<td>
{{- partial "books/rows/read-dates.html" . -}}
</td>
</tr>
{{ end }}
{{ else if ( eq ( .Scratch.Get "listMode" ) "wishlist" ) }}
{{ range ( sort $.Site.Data.tv_series.wishlist "name" "asc" ) }}
<tr>
<td>
{{ with .date_added }}
{{ time.Format "Jan 2, 2006" . }}
{{ else }}
n/a
{{ end }}
</td>
<td>
{{- with ( index . "name" ) -}}
<cite
class="cite"
itemscope
itemtype="TVSeries"
>{{ . }}</cite
>
{{- end -}}
</td>
</tr>
{{ end }}
{{ end }}

View file

@ -1,5 +0,0 @@
<th>Date Added</th>
<th>Series Title</th>
{{ if ( not ( eq ( .Scratch.Get "listMode" ) "wishlist" ) ) }}
<th>Dates Watched</th>
{{ end }}

27
package-lock.json generated
View file

@ -15,7 +15,6 @@
"markdownlint": "^0.37.3", "markdownlint": "^0.37.3",
"markdownlint-cli": "^0.43.0", "markdownlint-cli": "^0.43.0",
"prettier": "^3.4.2", "prettier": "^3.4.2",
"prettier-plugin-go-template": "^0.0.15",
"stylelint": "^16.12.0", "stylelint": "^16.12.0",
"stylelint-config-standard-scss": "^14.0.0", "stylelint-config-standard-scss": "^14.0.0",
"stylelint-prettier": "^5.0.2", "stylelint-prettier": "^5.0.2",
@ -3460,22 +3459,6 @@
"node": ">=6.0.0" "node": ">=6.0.0"
} }
}, },
"node_modules/prettier-plugin-go-template": {
"version": "0.0.15",
"resolved": "https://registry.npmjs.org/prettier-plugin-go-template/-/prettier-plugin-go-template-0.0.15.tgz",
"integrity": "sha512-WqU92E1NokWYNZ9mLE6ijoRg6LtIGdLMePt2C7UBDjXeDH9okcRI3zRqtnWR4s5AloiqyvZ66jNBAa9tmRY5EQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"ulid": "^2.3.0"
},
"engines": {
"node": ">=14.0.0"
},
"peerDependencies": {
"prettier": "^3.0.0"
}
},
"node_modules/punycode": { "node_modules/punycode": {
"version": "2.3.1", "version": "2.3.1",
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
@ -4386,16 +4369,6 @@
"dev": true, "dev": true,
"license": "MIT" "license": "MIT"
}, },
"node_modules/ulid": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/ulid/-/ulid-2.3.0.tgz",
"integrity": "sha512-keqHubrlpvT6G2wH0OEfSW4mquYRcbe/J8NMmveoQOjUqmo+hXtO+ORCpWhdbZ7k72UtY61BL7haGxW6enBnjw==",
"dev": true,
"license": "MIT",
"bin": {
"ulid": "bin/cli.js"
}
},
"node_modules/underscore": { "node_modules/underscore": {
"version": "1.6.0", "version": "1.6.0",
"resolved": "https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz",

View file

@ -50,7 +50,6 @@
"markdownlint": "^0.37.3", "markdownlint": "^0.37.3",
"markdownlint-cli": "^0.43.0", "markdownlint-cli": "^0.43.0",
"prettier": "^3.4.2", "prettier": "^3.4.2",
"prettier-plugin-go-template": "^0.0.15",
"stylelint": "^16.12.0", "stylelint": "^16.12.0",
"stylelint-config-standard-scss": "^14.0.0", "stylelint-config-standard-scss": "^14.0.0",
"stylelint-prettier": "^5.0.2", "stylelint-prettier": "^5.0.2",