feat: added logs-feature for website

This commit is contained in:
SindreKjelsrud 2023-06-05 12:31:27 +02:00
parent 88aa7802b2
commit 01dda425c2
8 changed files with 652 additions and 19 deletions

View file

@ -3,4 +3,6 @@ title: "Logs"
date: true
draft: false
---
All my logs, where I keep track of movies, TV shows, video games Ive played and so much more, stored in a JSON-format for this website.
All my logs where I keep track of movies/TV-shows I've watched and books I've read.
I dont use any third-party services for my logs, I store everything in a JSON-format for this website.

View file

@ -0,0 +1,9 @@
---
title: "📚donde, está, la biblioteca."
date: true
draft: false
layout: biblioteca
---
Books I've read. Not a complete list, since I started logging it in JSON in 2023.
**Currently reading:** `Barack Obama: A Promised Land`

View file

@ -1,25 +1,20 @@
---
title: "TV Time"
title: "📺TV Time"
date: true
draft: false
layout: single_tv
---
Movies and TV shows that Ive watched. Not a complete list.
Movies and TV shows that Ive watched. Not a complete list, since I started logging it in JSON in 2023.
```java
```js
Currently watching:
- The Mandalorian S03
- The Last of Us
- Vinland Saga S02
- One Piece (Whole Cake Island arc)
- "Vinland Saga S02E21"
- "Demon Slayer S04E08"
- "Formula 1: Drive to Survive S05E07"
- "Dr. Stone S03E09"
- "One Piece E840"
- "Dragon Ball E89"
On hold:
- "Greys Anatomy S08E06"
```
<details>
<summary>Rating System</summary>
<dl class=review__rating>
<dt aria-label="1 out of 5 stars">★☆☆☆☆<dd>Awful.
<dt aria-label="2 out of 5 stars">★★☆☆☆<dd>Waste of time..
<dt aria-label="3 out of 5 stars">★★★☆☆<dd>Fine, could've managed without it lol
<dt aria-label="4 out of 5 stars">★★★★☆<dd>Definitely worth a watch.
<dt aria-label="5 out of 5 stars">★★★★★<dd>Must watch!</dl>
</details>

70
data/biblioteca.json Normal file
View file

@ -0,0 +1,70 @@
[
{
"isbn": "9788269259346",
"title": "Magnus",
"date":
{
"year": "2023",
"month": "06",
"day": "01",
"string": "2023-06-01"
},
"type": "book",
"description": "The biography of Magnus Midtbø, Norways best sportsclimber. It follows his life from childhood, through ups- and downs, and how he became a successful YouTuber.",
"my_rating": 5,
"genres": [
"Biography", "Sports"
]
},
{
"isbn": "9788234713538",
"title": "Hjertet i to: Seks måneder med Karpe",
"date":
{
"year": "2023",
"month": "05",
"day": "28",
"string": "2023-05-28"
},
"type": "book",
"description": "A pure tribute to Karpe. The book gives a sneak peek into the path to Spektrumx10. Fun to read and Yohan Shanmugaratnam is good with words and emotions!",
"my_rating": 5,
"genres": [
"Biography", "Nonfiction", "Music", "Art"
]
},
{
"isbn": "9781421578798",
"title": "JoJo's Bizarre Adventure: Phantom Blood Vol. 1",
"date":
{
"year": "2023",
"month": "05",
"day": "22",
"string": "2023-05-22"
},
"type": "manga",
"description": "A supernatural action manga about a multigenerational tale of the heroic Joestar family and their never-ending battle against evil!",
"my_rating": 3,
"genres": [
"Action-Adventure", "Fantasy", "Supernatural"
]
},
{
"isbn": "9788202410445",
"title": "Steve Jobs",
"date":
{
"year": "2023",
"month": "05",
"day": "15",
"string": "2023-05-15"
},
"type": "book",
"description": "The biography of Steve Jobs, one of the world's foremost innovators. A deep and comprehensive portrait of a complex man.",
"my_rating": 4,
"genres": [
"Biography", "Technology", "Leadership", "Innovation", "Inspirational"
]
}
]

206
data/movies.json Normal file
View file

@ -0,0 +1,206 @@
[
{
"title": "Stone Locals: Rediscovering the Soul of Climbing",
"type": "movie",
"date":
{
"year": "2023",
"month": "05",
"day": "29",
"string": "2023-05-29"
},
"my_rating": 5
},
{
"title": "Fishpeople | Lives Transformed by the Sea",
"type": "movie",
"date":
{
"year": "2023",
"month": "05",
"day": "29",
"string": "2023-05-29"
},
"my_rating": 4
},
{
"title": "Surfs Up",
"type": "movie",
"date":
{
"year": "2023",
"month": "05",
"day": "26",
"string": "2023-05-26"
},
"my_rating": 5
},
{
"title": "Encanto",
"type": "movie",
"date":
{
"year": "2023",
"month": "05",
"day": "20",
"string": "2023-05-20"
},
"my_rating": 4
},
{
"title": "Shang-Chi and the Legend of the Ten Rings",
"type": "movie",
"date":
{
"year": "2023",
"month": "05",
"day": "19",
"string": "2023-05-19"
},
"my_rating": 4
},
{
"title": "Whiplash",
"type": "movie",
"date":
{
"year": "2023",
"month": "05",
"day": "16",
"string": "2023-05-16"
},
"my_rating": 4
},
{
"title": "The Terminal",
"type": "movie",
"date":
{
"year": "2023",
"month": "04",
"day": "10",
"string": "2023-04-10"
},
"my_rating": 5
},
{
"title": "The Whole Nine Yards",
"type": "movie",
"date":
{
"year": "2023",
"month": "04",
"day": "09",
"string": "2023-04-09"
},
"my_rating": 4
},
{
"title": "Murder Mystery 2",
"type": "movie",
"date":
{
"year": "2023",
"month": "04",
"day": "08",
"string": "2023-04-08"
},
"my_rating": 2
},
{
"title": "The Wind Rises",
"type": "movie",
"date":
{
"year": "2023",
"month": "04",
"day": "03",
"string": "2023-04-03"
},
"my_rating": 3
},
{
"title": "Ant-Man and the Wasp: Quantumania",
"type": "movie",
"date":
{
"year": "2023",
"month": "03",
"day": "29",
"string": "2023-03-29"
},
"my_rating": 5
},
{
"title": "Black Panther: Wakanda Forever",
"type": "movie",
"date":
{
"year": "2023",
"month": "03",
"day": "24",
"string": "2023-03-24"
},
"my_rating": 4
},
{
"title": "Schumacher",
"type": "movie",
"date":
{
"year": "2023",
"month": "03",
"day": "21",
"string": "2023-03-21"
},
"my_rating": 5
},
{
"title": "Nightcrawler",
"type": "movie",
"date":
{
"year": "2023",
"month": "03",
"day": "21",
"string": "2023-03-21"
},
"my_rating": 5
},
{
"title": "Fantastic Beasts and Where to Find Them",
"type": "movie",
"date":
{
"year": "2023",
"month": "02",
"day": "17",
"string": "2023-02-17"
},
"my_rating": 5
},
{
"title": "Avatar: The Way of Water",
"type": "movie",
"date":
{
"year": "2023",
"month": "01",
"day": "28",
"string": "2023-01-28"
},
"my_rating": 5
},
{
"title": "TRON: Legacy",
"type": "movie",
"date":
{
"year": "2023",
"month": "01",
"day": "11",
"string": "2023-01-11"
},
"my_rating": 4
}
]

170
data/series.json Normal file
View file

@ -0,0 +1,170 @@
[
{
"title": "S.W.A.T. S06",
"type": "series",
"date":
{
"year": "2023",
"month": "05",
"day": "22",
"string": "2023-05-22"
},
"my_rating": 3
},
{
"title": "Star Wars: Visions S02",
"type": "anime",
"date":
{
"year": "2023",
"month": "05",
"day": "11",
"string": "2023-05-11"
},
"my_rating": 4
},
{
"title": "The Last of Us S01",
"type": "series",
"date":
{
"year": "2023",
"month": "04",
"day": "23",
"string": "2023-04-23"
},
"my_rating": 5
},
{
"title": "The Mandalorian S03",
"type": "series",
"date":
{
"year": "2023",
"month": "04",
"day": "23",
"string": "2023-04-23"
},
"my_rating": 5
},
{
"title": "A girl and an astronaut",
"type": "series",
"date":
{
"year": "2023",
"month": "04",
"day": "16",
"string": "2023-04-16"
},
"my_rating": 1
},
{
"title": "My Hero Academia S06",
"type": "anime",
"date":
{
"year": "2023",
"month": "03",
"day": "24",
"string": "2023-03-24"
},
"my_rating": 4
},
{
"title": "Rick and Morty S06",
"type": "series",
"date":
{
"year": "2023",
"month": "03",
"day": "24",
"string": "2023-03-24"
},
"my_rating": 3
},
{
"title": "How to Sell Drugs Online (Fast) S03",
"type": "series",
"date":
{
"year": "2023",
"month": "03",
"day": "20",
"string": "2023-03-20"
},
"my_rating": 3
},
{
"title": "Outer Banks S03",
"type": "series",
"date":
{
"year": "2023",
"month": "03",
"day": "15",
"string": "2023-03-15"
},
"my_rating": 4
},
{
"title": "Community S01-S06",
"type": "series",
"date":
{
"year": "2023",
"month": "03",
"day": "15",
"string": "2023-03-15"
},
"my_rating": 5
},
{
"title": "Free! S01-S03",
"type": "anime",
"date":
{
"year": "2023",
"month": "03",
"day": "08",
"string": "2023-03-08"
},
"my_rating": 3
},
{
"title": "Kaleidoscope",
"type": "series",
"date":
{
"year": "2023",
"month": "02",
"day": "02",
"string": "2023-02-02"
},
"my_rating": 3
},
{
"title": "The Recruit S01",
"type": "series",
"date":
{
"year": "2023",
"month": "01",
"day": "30",
"string": "2023-01-30"
},
"my_rating": 3
},
{
"title": "The Way of the Househusband S02",
"type": "anime",
"date":
{
"year": "2023",
"month": "01",
"day": "23",
"string": "2023-01-23"
},
"my_rating": 3
}
]

View file

@ -0,0 +1,83 @@
{{- define "main" }}
<article class="post-single">
<header class="post-header">
{{ partial "breadcrumbs.html" . }}
<h1 class="post-title">
{{ .Title }}
{{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[draft]</span></sup>{{- end }}
</h1>
{{- if .Description }}
<div class="post-description">
{{ .Description }}
</div>
{{- end }}
{{- if not (.Param "hideMeta") }}
<div class="post-meta">
{{- partial "post_meta.html" . -}}
{{- partial "translation_list.html" . -}}
{{- partial "edit_post.html" . -}}
{{- partial "post_canonical.html" . -}}
</div>
{{- end }}
</header>
{{- $isHidden := .Params.cover.hidden | default site.Params.cover.hiddenInSingle | default site.Params.cover.hidden }}
{{- partial "cover.html" (dict "cxt" . "IsHome" false "isHidden" $isHidden) }}
{{- if (.Param "ShowToc") }}
{{- partial "toc.html" . }}
{{- end }}
{{- if .Content }}
<div class="post-content">
{{- if not (.Param "disableAnchoredHeadings") }}
{{- partial "anchored_headings.html" .Content -}}
{{- else }}{{ .Content }}{{ end }}
</div>
<details>
<summary>Rating System</summary>
<dl class=review__rating>
<dt aria-label="1 out of 5 stars">★☆☆☆☆<dd>Awful.
<dt aria-label="2 out of 5 stars">★★☆☆☆<dd>Waste of time..
<dt aria-label="3 out of 5 stars">★★★☆☆<dd>Fine, could've managed without it lol
<dt aria-label="4 out of 5 stars">★★★★☆<dd>Definitely worth a read.
<dt aria-label="5 out of 5 stars">★★★★★<dd>Must read!</dl>
</details>
<br>
<table>
<h3 style="border-bottom: 3px solid#918DED; height: 4vh;">Books & Manga</h3>
{{ range .Site.Data.biblioteca }}
<tr style="border-bottom: 1px solid;" onmouseover="this.style.backgroundColor='#131313';" onmouseout="this.style.backgroundColor='';">
<td style="width: 20%;">{{.title}}</td>
<td style="width: 15%; height: 5vh; text-align: center;">{{.my_rating}} stars</td>
<td style="width: 15%; text-align: center;">{{.date.day}}.{{.date.month}}.{{.date.year}}</td>
<td style="width: 50%; text-align: center;">{{.description}}</td>
</tr>
{{end}}
</table>
{{- end }}
<footer class="post-footer">
{{- $tags := .Language.Params.Taxonomies.tag | default "tags" }}
<ul class="post-tags">
{{- range ($.GetTerms $tags) }}
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
{{- end }}
</ul>
{{- if (.Param "ShowPostNavLinks") }}
{{- partial "post_nav_links.html" . }}
{{- end }}
{{- if (and site.Params.ShowShareButtons (ne .Params.disableShare true)) }}
{{- partial "share_icons.html" . -}}
{{- end }}
</footer>
{{- if (.Param "comments") }}
{{- partial "comments.html" . }}
{{- end }}
</article>
{{- end }}{{/* end main */}}

View file

@ -0,0 +1,98 @@
{{- define "main" }}
<article class="post-single">
<header class="post-header">
{{ partial "breadcrumbs.html" . }}
<h1 class="post-title">
{{ .Title }}
{{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[draft]</span></sup>{{- end }}
</h1>
{{- if .Description }}
<div class="post-description">
{{ .Description }}
</div>
{{- end }}
{{- if not (.Param "hideMeta") }}
<div class="post-meta">
{{- partial "post_meta.html" . -}}
{{- partial "translation_list.html" . -}}
{{- partial "edit_post.html" . -}}
{{- partial "post_canonical.html" . -}}
</div>
{{- end }}
</header>
{{- $isHidden := .Params.cover.hidden | default site.Params.cover.hiddenInSingle | default site.Params.cover.hidden }}
{{- partial "cover.html" (dict "cxt" . "IsHome" false "isHidden" $isHidden) }}
{{- if (.Param "ShowToc") }}
{{- partial "toc.html" . }}
{{- end }}
{{- if .Content }}
<div class="post-content">
{{- if not (.Param "disableAnchoredHeadings") }}
{{- partial "anchored_headings.html" .Content -}}
{{- else }}{{ .Content }}{{ end }}
</div>
<details>
<summary>Rating System</summary>
<dl class=review__rating>
<dt aria-label="1 out of 5 stars">★☆☆☆☆<dd>Awful.
<dt aria-label="2 out of 5 stars">★★☆☆☆<dd>Waste of time..
<dt aria-label="3 out of 5 stars">★★★☆☆<dd>Fine, could've managed without it lol
<dt aria-label="4 out of 5 stars">★★★★☆<dd>Definitely worth a watch.
<dt aria-label="5 out of 5 stars">★★★★★<dd>Must watch!</dl>
</details>
<br>
<table>
<h3 style="border-bottom: 3px solid#918DED; height: 4vh;">Movies</h3>
{{ range .Site.Data.movies }}
{{ if .date.year }}
<tr style="border-bottom: 1px solid;" onmouseover="this.style.backgroundColor='#131313';" onmouseout="this.style.backgroundColor='';">
<td style="width: 50%;">{{.title}}</td>
<td style="width: 100%; height: 5vh; text-align: center;">{{.my_rating}} stars</td>
<td style="width: 100%; text-align: center;">{{.date.day}}.{{.date.month}}.{{.date.year}}</td>
</tr>
{{end}}
{{end}}
</table>
<br>
<table>
<h3 style="border-bottom: 3px solid#918DED; height: 4vh;">Series</h3>
{{ range .Site.Data.series }}
{{ if .date.year }}
<tr style="border-bottom: 1px solid;" onmouseover="this.style.backgroundColor='#131313';" onmouseout="this.style.backgroundColor='';">
<td style="width: 50%;">{{.title}}</td>
<td style="width: 100%; height: 5vh; text-align: center;">{{.my_rating}} stars</td>
<td style="width: 100%; text-align: center;">{{.date.day}}.{{.date.month}}.{{.date.year}}</td>
</tr>
{{end}}
{{end}}
</table>
{{- end }}
<footer class="post-footer">
{{- $tags := .Language.Params.Taxonomies.tag | default "tags" }}
<ul class="post-tags">
{{- range ($.GetTerms $tags) }}
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
{{- end }}
</ul>
{{- if (.Param "ShowPostNavLinks") }}
{{- partial "post_nav_links.html" . }}
{{- end }}
{{- if (and site.Params.ShowShareButtons (ne .Params.disableShare true)) }}
{{- partial "share_icons.html" . -}}
{{- end }}
</footer>
{{- if (.Param "comments") }}
{{- partial "comments.html" . }}
{{- end }}
</article>
{{- end }}{{/* end main */}}