add slug
s, fix tables
This commit is contained in:
parent
0d44f0764e
commit
eff55debea
23 changed files with 90 additions and 70 deletions
|
@ -8,10 +8,7 @@
|
||||||
|
|
||||||
&__header {
|
&__header {
|
||||||
& .section-nav {
|
& .section-nav {
|
||||||
padding-block-end: 1em;
|
|
||||||
|
|
||||||
& li {
|
& li {
|
||||||
float: left;
|
|
||||||
padding-inline: 1em;
|
padding-inline: 1em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Books
|
title: Books
|
||||||
|
slug: books
|
||||||
---
|
---
|
||||||
|
|
||||||
Here you can record books that you read.
|
Here you can record books that you read.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
title: Currently Reading
|
title: Currently Reading
|
||||||
weight: 4
|
weight: 4
|
||||||
|
slug: current
|
||||||
---
|
---
|
||||||
|
|
||||||
Here you can record books that you are currently reading.
|
Here you can record books that you are currently reading.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
title: Read
|
title: Read
|
||||||
weight: 2
|
weight: 2
|
||||||
|
slug: log
|
||||||
---
|
---
|
||||||
|
|
||||||
Here you can record books that you have previously read.
|
Here you can record books that you have previously read.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
title: To-Read
|
title: To-Read
|
||||||
weight: 3
|
weight: 3
|
||||||
|
slug: wishlist
|
||||||
---
|
---
|
||||||
|
|
||||||
Here you can record books that you would like to read.
|
Here you can record books that you would like to read.
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Films
|
title: Films
|
||||||
|
slug: films
|
||||||
---
|
---
|
||||||
|
|
||||||
Here you can record films that you watch.
|
Here you can record films that you watch.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
title: Watched
|
title: Watched
|
||||||
weight: 1
|
weight: 1
|
||||||
|
slug: log
|
||||||
---
|
---
|
||||||
|
|
||||||
Here you can record films that you have previously watched.
|
Here you can record films that you have previously watched.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
title: To-Watch
|
title: To-Watch
|
||||||
weight: 2
|
weight: 2
|
||||||
|
slug: wishlist
|
||||||
---
|
---
|
||||||
|
|
||||||
Here you can record films that you would like to watch.
|
Here you can record films that you would like to watch.
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Games
|
title: Games
|
||||||
|
slug: games
|
||||||
---
|
---
|
||||||
|
|
||||||
Here you can record games that you play.
|
Here you can record games that you play.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
title: Currently Playing
|
title: Currently Playing
|
||||||
weight: 1
|
weight: 1
|
||||||
|
slug: current
|
||||||
---
|
---
|
||||||
|
|
||||||
Here you can record games that you are currently playing.
|
Here you can record games that you are currently playing.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
title: Played
|
title: Played
|
||||||
weight: 2
|
weight: 2
|
||||||
|
slug: log
|
||||||
---
|
---
|
||||||
|
|
||||||
Here you can record games that you have previously played.
|
Here you can record games that you have previously played.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
title: To-Play
|
title: To-Play
|
||||||
weight: 3
|
weight: 3
|
||||||
|
slug: wishlist
|
||||||
---
|
---
|
||||||
|
|
||||||
Here you can record games that you would like to play.
|
Here you can record games that you would like to play.
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: TV
|
title: TV
|
||||||
|
slug: tv
|
||||||
---
|
---
|
||||||
|
|
||||||
Here you can record TV shows that you watch.
|
Here you can record TV shows that you watch.
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: TV Episodes
|
title: TV Episodes
|
||||||
|
slug: episodes
|
||||||
---
|
---
|
||||||
|
|
||||||
Here you can record TV show episodes that you watch.
|
Here you can record TV show episodes that you watch.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
title: Watched
|
title: Watched
|
||||||
slug: log
|
|
||||||
weight: 2
|
weight: 2
|
||||||
|
slug: log
|
||||||
---
|
---
|
||||||
|
|
||||||
Here you can record TV show episodes that you have previously watched.
|
Here you can record TV show episodes that you have previously watched.
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: TV Series'
|
title: TV Series'
|
||||||
|
slug: series
|
||||||
---
|
---
|
||||||
|
|
||||||
Here you can record TV series' that you watch.
|
Here you can record TV series' that you watch.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
title: Currently Watching
|
title: Currently Watching
|
||||||
weight: 1
|
weight: 1
|
||||||
|
slug: current
|
||||||
---
|
---
|
||||||
|
|
||||||
Here you can record TV series' that you are currently watching.
|
Here you can record TV series' that you are currently watching.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
title: Watched
|
title: Watched
|
||||||
weight: 2
|
weight: 2
|
||||||
|
slug: log
|
||||||
---
|
---
|
||||||
|
|
||||||
Here you can record TV series' that you have previously watched.
|
Here you can record TV series' that you have previously watched.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
title: To-Watch
|
title: To-Watch
|
||||||
weight: 3
|
weight: 3
|
||||||
|
slug: wishlist
|
||||||
---
|
---
|
||||||
|
|
||||||
Here you can record TV series' that you have would like to watch.
|
Here you can record TV series' that you have would like to watch.
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{{ define "title" }}
|
{{ define "title" }}
|
||||||
{{ .Page.Title | plainify }} | {{ .Site.Title }}
|
{{ .Page.Title | plainify }} |
|
||||||
|
{{ .Site.Title }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "main-class" }}--list{{ end }}
|
{{ define "main-class" }}--list{{ end }}
|
||||||
|
@ -9,10 +10,14 @@
|
||||||
|
|
||||||
{{ define "main-header" }}
|
{{ define "main-header" }}
|
||||||
<header class="site-content__header">
|
<header class="site-content__header">
|
||||||
<h1 class="page-title">{{ .Title | safeHTML }}
|
<h1 class="page-title">
|
||||||
|
{{ .Title | safeHTML }}
|
||||||
{{ range .AlternativeOutputFormats -}}
|
{{ range .AlternativeOutputFormats -}}
|
||||||
<a href="{{ .RelPermalink }}">
|
<a href="{{ .RelPermalink }}">
|
||||||
<img class="feed-icon" src="/images/feed-icon.svg">
|
<img
|
||||||
|
class="feed-icon"
|
||||||
|
src="/images/feed-icon.svg"
|
||||||
|
/>
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
{{ .Scratch.Set "page" .Page.Slug }}
|
{{ .Scratch.Set "page" .Page.Slug }}
|
||||||
{{ if ( in "current log wishlist" ( .Scratch.Get "page" ) ) }}
|
{{ if ( in "current log wishlist" ( .Scratch.Get "page" ) ) }}
|
||||||
|
|
||||||
|
{{ .Scratch.Get .Page.Slug }}
|
||||||
{{ 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" ) }}
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
<th>Platform(s)</th>
|
<th>Platform(s)</th>
|
||||||
<th>Release Year</th>
|
<th>Release Year</th>
|
||||||
{{ if ( not ( eq ( .Scratch.Get "listMode" ) "wishlist" ) ) }}
|
{{ if ( not ( eq ( .Scratch.Get "listMode" ) "wishlist" ) ) }}
|
||||||
|
{{ if ( not ( eq ( .Scratch.Get "listMode" ) "current" ) ) }}
|
||||||
<th>Level of Completion</th>
|
<th>Level of Completion</th>
|
||||||
|
{{ end }}
|
||||||
<th>Dates Played</th>
|
<th>Dates Played</th>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -7,8 +7,7 @@
|
||||||
|
|
||||||
{{- $today := time.Now -}}
|
{{- $today := time.Now -}}
|
||||||
|
|
||||||
{{-
|
{{- $this_year_total := (
|
||||||
$this_year_total := (
|
|
||||||
where (
|
where (
|
||||||
where $log_file "date_finished" "gt" (
|
where $log_file "date_finished" "gt" (
|
||||||
( $today.AddDate -1 0 0 ).Format "2006-01-02"
|
( $today.AddDate -1 0 0 ).Format "2006-01-02"
|
||||||
|
@ -17,8 +16,7 @@
|
||||||
) | len
|
) | len
|
||||||
-}}
|
-}}
|
||||||
|
|
||||||
{{-
|
{{- $this_quarter_total := (
|
||||||
$this_quarter_total := (
|
|
||||||
where (
|
where (
|
||||||
where $log_file "date_finished" "gt" (
|
where $log_file "date_finished" "gt" (
|
||||||
( $today.AddDate 0 -3 0 ).Format "2006-01-02"
|
( $today.AddDate 0 -3 0 ).Format "2006-01-02"
|
||||||
|
@ -26,8 +24,7 @@
|
||||||
) "date_finished" "lt" ( $today.Format "2006-01-02" )
|
) "date_finished" "lt" ( $today.Format "2006-01-02" )
|
||||||
) | len
|
) | len
|
||||||
-}}
|
-}}
|
||||||
{{-
|
{{- $this_month_total := (
|
||||||
$this_month_total := (
|
|
||||||
where (
|
where (
|
||||||
where $log_file "date_finished" "gt" (
|
where $log_file "date_finished" "gt" (
|
||||||
( $today.AddDate 0 -1 0 ).Format "2006-01-02"
|
( $today.AddDate 0 -1 0 ).Format "2006-01-02"
|
||||||
|
@ -36,6 +33,7 @@
|
||||||
) | len
|
) | len
|
||||||
-}}
|
-}}
|
||||||
|
|
||||||
|
|
||||||
<details class="log-stats">
|
<details class="log-stats">
|
||||||
<summary>Summary</summary>
|
<summary>Summary</summary>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue