diff --git a/.prettierignore b/.prettierignore
new file mode 100644
index 0000000..d77ae12
--- /dev/null
+++ b/.prettierignore
@@ -0,0 +1,2 @@
+node_modules/
+*.md
diff --git a/.prettierrc b/.prettierrc
new file mode 100644
index 0000000..40f2d3f
--- /dev/null
+++ b/.prettierrc
@@ -0,0 +1,14 @@
+{
+ "plugins": ["prettier-plugin-go-template"],
+ "proseWrap": "preserve",
+ "overrides": [
+ {
+ "files": ["*.html"],
+ "options": {
+ "parser": "go-template",
+ "printWidth": 80,
+ "singleAttributePerLine": true
+ }
+ }
+ ]
+}
diff --git a/assets/css/components/table.scss b/assets/css/components/table.scss
index ed51377..3f26b3c 100644
--- a/assets/css/components/table.scss
+++ b/assets/css/components/table.scss
@@ -1,25 +1,30 @@
-/* TODO: Not currently used */
-@media screen and (max-width: 480px) {
- .table-scroller {
- overflow-x: auto;
- width: 320px;
- }
-}
-
-table {
- margin: auto;
- width: 80%;
+/* TODO: Not currently used */
+@media screen and (max-width: 480px) {
+ .table-scroller {
+ overflow-x: auto;
+ width: 320px;
+ }
+}
+
+table {
+ margin: auto;
+ inline-size: 80%;
display: table;
& thead {
border: 2px solid $dark;
}
- & td {
- padding: 0.5em 1em;
- border: 1px solid $dark;
- }
-}
+ & td {
+ padding: 0.5em 1em;
+ border: 1px solid $dark;
+
+ &:nth-of-type(1),
+ &:nth-last-of-type(1) {
+ white-space: nowrap;
+ }
+ }
+}
td[colspan] {
text-align: center;
diff --git a/assets/css/layout/_header.scss b/assets/css/layout/_header.scss
index d6c0657..f34e49f 100644
--- a/assets/css/layout/_header.scss
+++ b/assets/css/layout/_header.scss
@@ -11,7 +11,7 @@
width: 100%;
text-align: center;
z-index: 1;
-
+
&__title,
&__tagline,
&__icons,
@@ -45,7 +45,7 @@
grid-area: header-nav;
margin: auto;
width: 100%;
- @include mq('desktop') {
+ @include mq("desktop") {
width: 60%;
}
diff --git a/assets/css/layout/_main.scss b/assets/css/layout/_main.scss
index 8955f6f..d94e183 100644
--- a/assets/css/layout/_main.scss
+++ b/assets/css/layout/_main.scss
@@ -2,7 +2,23 @@
grid-area: page-container;
margin-left: 1em;
margin-right: 1em;
- @include mq('desktop') {
+ @include mq("desktop") {
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;
+ }
+ }
}
diff --git a/content/books/_index.md b/content/books/_index.md
new file mode 100644
index 0000000..af7a188
--- /dev/null
+++ b/content/books/_index.md
@@ -0,0 +1,5 @@
+---
+title: Books
+---
+
+Here you can record books that you read.
diff --git a/content/books/current/_index.md b/content/books/current/_index.md
new file mode 100644
index 0000000..b8bf076
--- /dev/null
+++ b/content/books/current/_index.md
@@ -0,0 +1,6 @@
+---
+title: Currently Reading
+weight: 4
+---
+
+Here you can record books that you are currently reading.
diff --git a/content/books/log/_index.md b/content/books/log/_index.md
new file mode 100644
index 0000000..8c2d98d
--- /dev/null
+++ b/content/books/log/_index.md
@@ -0,0 +1,6 @@
+---
+title: Read
+weight: 2
+---
+
+Here you can record books that you have previously read.
diff --git a/content/books/wishlist/_index.md b/content/books/wishlist/_index.md
new file mode 100644
index 0000000..61ad06d
--- /dev/null
+++ b/content/books/wishlist/_index.md
@@ -0,0 +1,6 @@
+---
+title: To-Read
+weight: 3
+---
+
+Here you can record books that you would like to read.
diff --git a/content/films/_index.md b/content/films/_index.md
new file mode 100644
index 0000000..2f73334
--- /dev/null
+++ b/content/films/_index.md
@@ -0,0 +1,5 @@
+---
+title: Films
+---
+
+Here you can record films that you watch.
diff --git a/content/films/log/_index.md b/content/films/log/_index.md
new file mode 100644
index 0000000..917e47a
--- /dev/null
+++ b/content/films/log/_index.md
@@ -0,0 +1,6 @@
+---
+title: Watched
+weight: 1
+---
+
+Here you can record films that you have previously watched.
diff --git a/content/films/wishlist/_index.md b/content/films/wishlist/_index.md
new file mode 100644
index 0000000..61cd0bf
--- /dev/null
+++ b/content/films/wishlist/_index.md
@@ -0,0 +1,6 @@
+---
+title: To-Watch
+weight: 2
+---
+
+Here you can record films that you would like to watch.
diff --git a/content/games/_index.md b/content/games/_index.md
new file mode 100644
index 0000000..6af5fa1
--- /dev/null
+++ b/content/games/_index.md
@@ -0,0 +1,5 @@
+---
+title: Games
+---
+
+Here you can record games that you play.
diff --git a/content/games/current/_index.md b/content/games/current/_index.md
new file mode 100644
index 0000000..d009d40
--- /dev/null
+++ b/content/games/current/_index.md
@@ -0,0 +1,6 @@
+---
+title: Currently Playing
+weight: 1
+---
+
+Here you can record games that you are currently playing.
diff --git a/content/games/log/_index.md b/content/games/log/_index.md
new file mode 100644
index 0000000..5acc5a5
--- /dev/null
+++ b/content/games/log/_index.md
@@ -0,0 +1,6 @@
+---
+title: Played
+weight: 2
+---
+
+Here you can record games that you have previously played.
diff --git a/content/games/wishlist/_index.md b/content/games/wishlist/_index.md
new file mode 100644
index 0000000..7552be3
--- /dev/null
+++ b/content/games/wishlist/_index.md
@@ -0,0 +1,6 @@
+---
+title: To-Play
+weight: 3
+---
+
+Here you can record games that you would like to play.
diff --git a/content/tv/_index.md b/content/tv/_index.md
new file mode 100644
index 0000000..6233e48
--- /dev/null
+++ b/content/tv/_index.md
@@ -0,0 +1,5 @@
+---
+title: TV
+---
+
+Here you can record TV shows that you watch.
diff --git a/content/tv/episodes/_index.md b/content/tv/episodes/_index.md
new file mode 100644
index 0000000..cb3c211
--- /dev/null
+++ b/content/tv/episodes/_index.md
@@ -0,0 +1,5 @@
+---
+title: TV Episodes
+---
+
+Here you can record TV show episodes that you watch.
diff --git a/content/tv/episodes/log/_index.md b/content/tv/episodes/log/_index.md
new file mode 100644
index 0000000..e0adfa6
--- /dev/null
+++ b/content/tv/episodes/log/_index.md
@@ -0,0 +1,7 @@
+---
+title: Watched
+slug: log
+weight: 2
+---
+
+Here you can record TV show episodes that you have previously watched.
diff --git a/content/tv/series/_index.md b/content/tv/series/_index.md
new file mode 100644
index 0000000..ba8de4d
--- /dev/null
+++ b/content/tv/series/_index.md
@@ -0,0 +1,5 @@
+---
+title: TV Series'
+---
+
+Here you can record TV series' that you watch.
diff --git a/content/tv/series/current/_index.md b/content/tv/series/current/_index.md
new file mode 100644
index 0000000..8c6feea
--- /dev/null
+++ b/content/tv/series/current/_index.md
@@ -0,0 +1,6 @@
+---
+title: Currently Watching
+weight: 1
+---
+
+Here you can record TV series' that you are currently watching.
diff --git a/content/tv/series/log/_index.md b/content/tv/series/log/_index.md
new file mode 100644
index 0000000..a88865c
--- /dev/null
+++ b/content/tv/series/log/_index.md
@@ -0,0 +1,6 @@
+---
+title: Watched
+weight: 2
+---
+
+Here you can record TV series' that you have previously watched.
diff --git a/content/tv/series/wishlist/_index.md b/content/tv/series/wishlist/_index.md
new file mode 100644
index 0000000..15b2275
--- /dev/null
+++ b/content/tv/series/wishlist/_index.md
@@ -0,0 +1,6 @@
+---
+title: To-Watch
+weight: 3
+---
+
+Here you can record TV series' that you have would like to watch.
diff --git a/layouts/_default/section.html b/layouts/_default/section.html
index ddac409..c58bfe7 100644
--- a/layouts/_default/section.html
+++ b/layouts/_default/section.html
@@ -1,5 +1,6 @@
{{ define "title" }}
- {{ .Page.Title | plainify }} | {{ .Site.Title }}
+ {{ .Page.Title | plainify }} |
+ {{ .Site.Title }}
{{ end }}
{{ define "main-class" }}--section{{ end }}
@@ -8,42 +9,53 @@
{{ define "item-type" }}{{ .Params.itemsType }}{{ end }}
{{ define "main-header" }}
-{{ .Title | safeHTML }}
- {{ range .AlternativeOutputFormats -}}
-
-
- {{ .Content }}
-
-
- {{ end }}
-
+ {{ .Title | safeHTML }}
+ {{ range .AlternativeOutputFormats -}}
+
+
- {{ .Scratch.Set "page" ( index ( split .File.Dir "/" ) 1 ) }}
+ {{ with ( default .Parent.Sections .Sections ) }}
+
+ {{ end }}
+
+
+
+
+ {{ end }}
+
+{{ with .date_finished -}}
+ {{- time.Format "Jan 2, 2006" . -}}
{{- else -}}
- Unknown
+ Unknown
{{- end -}}
diff --git a/layouts/partials/books/table-body.html b/layouts/partials/books/table-body.html
index 9fe5ffe..540cc2d 100644
--- a/layouts/partials/books/table-body.html
+++ b/layouts/partials/books/table-body.html
@@ -1,7 +1,14 @@
{{ if ( eq ( .Scratch.Get "listMode" ) "current" ) }}
{{ range ( sort $.Site.Data.books.current "date_started" "desc" ) }}
Comments: {{ . }}
- {{- end -}} -Comments: {{ . }}
+ {{- end -}} + -Comments: {{ . }}
- {{- end -}} -Comments: {{ . }}
+ {{- end -}} + -Comments: {{ . }}
- {{- end -}} -Comments: {{ . }}
+ {{- end -}} + -Views my own. Discussion ≠ endorsement. Do try this at home.
-+ Views my own. Discussion ≠ endorsement. Do try this at home. +
+ diff --git a/layouts/partials/table.html b/layouts/partials/table.html index 45ea2bd..4c6cb9f 100644 --- a/layouts/partials/table.html +++ b/layouts/partials/table.html @@ -1,16 +1,25 @@ {{ if ( .Scratch.Get "listMode" ) }} -