mirror of
https://codeberg.org/lauralani/www-lauka-net.git
synced 2024-11-23 20:50:40 +01:00
add functionality for book ratings, and added three
This commit is contained in:
parent
a4188d9f5e
commit
d0e15c45ac
8 changed files with 125 additions and 8 deletions
8
_drafts/blogpost.md
Normal file
8
_drafts/blogpost.md
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
book-name: "Star Wars: Book Wars 2"
|
||||||
|
rating: 3
|
||||||
|
date: 2022-05-22
|
||||||
|
tags: blogpost
|
||||||
|
---
|
||||||
|
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
9
_drafts/book.md
Normal file
9
_drafts/book.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
layout: layouts/book.njk
|
||||||
|
tags: book
|
||||||
|
name: ""
|
||||||
|
rating: 4
|
||||||
|
date: 2022-05-15
|
||||||
|
---
|
||||||
|
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
34
_includes/layouts/book.njk
Normal file
34
_includes/layouts/book.njk
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
---
|
||||||
|
title: lauka (dot) net
|
||||||
|
---
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta
|
||||||
|
name="viewport"
|
||||||
|
content="shrink-to-fit=no,width=device-width,height=device-height,initial-scale=1,user-scalable=1">
|
||||||
|
<meta name="description" content="My little cozy place on the web.">
|
||||||
|
<title>lauka.net - Book: {{ name }}</title>
|
||||||
|
<link rel="author" href="{{ '/humans.txt' | url }}"/>
|
||||||
|
<link rel='stylesheet' type='text/css' media='screen' href="{{ '/css/main.css' | url }}"/>
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="{{ '/apple-touch-icon.png' | url }}">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="{{ '/favicon-32x32.png' | url }}">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="{{ '/favicon-16x16.png' | url }}">
|
||||||
|
<link rel="manifest" href="{{ '/site.webmanifest' | url }}">
|
||||||
|
</head>
|
||||||
|
<body class="h-card">
|
||||||
|
<h1><a href="/">lauka.net - Book: {{ name }}</a></h1>
|
||||||
|
<h2>Rating:
|
||||||
|
{% for i in range(0, rating) -%}
|
||||||
|
⭐
|
||||||
|
{%- endfor %}
|
||||||
|
|
||||||
|
</h2>
|
||||||
|
<p class="p-note">
|
||||||
|
{{ content | safe }}
|
||||||
|
</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
19
books.njk
Normal file
19
books.njk
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
---
|
||||||
|
layout: layouts/home.njk
|
||||||
|
title: "lauka.net - All Books"
|
||||||
|
permalink: "/books/"
|
||||||
|
---
|
||||||
|
|
||||||
|
<h1><a href="/">{{ title }}</a></h1>
|
||||||
|
<p class="p-note">
|
||||||
|
These are all the books I've rated so far (oldest to newest):
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
{%- for book in collections.book -%}
|
||||||
|
<li><a href="{{ book.url }}">{{ book.data.name }}</a>
|
||||||
|
{% for i in range(0, book.data.rating) -%}
|
||||||
|
⭐
|
||||||
|
{%- endfor %}
|
||||||
|
</li>
|
||||||
|
{%- endfor -%}
|
||||||
|
</ul>
|
11
books/alexander-freed-rogue-one.md
Normal file
11
books/alexander-freed-rogue-one.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
---
|
||||||
|
layout: layouts/book.njk
|
||||||
|
tags: book
|
||||||
|
name: "Alexander Freed - Star Wars: Rogue One"
|
||||||
|
rating: 4
|
||||||
|
date: 2021-10-16
|
||||||
|
---
|
||||||
|
|
||||||
|
While I really enjoyed Rogue One as a movie (I'd go as far as to say it's my favourite Star wars film so far), I enjoyed the book even more. It adds a lot of backstory and detail, and the characters are more fleshed out because of it.
|
||||||
|
|
||||||
|
Overall a solid 4/5
|
9
books/dan-brown-meteor.md
Normal file
9
books/dan-brown-meteor.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
layout: layouts/book.njk
|
||||||
|
tags: book
|
||||||
|
name: "Dan Brown - Meteor"
|
||||||
|
rating: 4
|
||||||
|
date: 2022-05-15
|
||||||
|
---
|
||||||
|
|
||||||
|
I‘ve read this book at least ten times by now, and I still don‘t find it boring! It would be a solid 5/5 if it wasn‘t for the casual sexism portrayed by a few of the characters tho.
|
12
books/timothy-zahn-thrawn-ascendancy-lesser evil.md
Normal file
12
books/timothy-zahn-thrawn-ascendancy-lesser evil.md
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
layout: layouts/book.njk
|
||||||
|
tags: book
|
||||||
|
name: "Timothy Zahn - Star Wars: Thrawn Ascendancy - Lesser Evil"
|
||||||
|
rating: 5
|
||||||
|
date: 2022-05-10
|
||||||
|
---
|
||||||
|
|
||||||
|
Simply amazing.
|
||||||
|
The way Timothy Zahn orchestrates his books is unbelievably awesome, and they usually leave me pretty emotional and longing for more. This trilogy has been exactly this, and it makes me want to re-read his other books as well with all the tie-ins he makes.
|
||||||
|
|
||||||
|
As this is the final book of another awesome trilogy by Timothy Zahn: 5/5
|
31
index.njk
31
index.njk
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: layouts/home.njk
|
layout: layouts/home.njk
|
||||||
title: lauka (dot) net
|
title: "lauka.net"
|
||||||
---
|
---
|
||||||
|
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
|
@ -10,11 +10,7 @@ title: lauka (dot) net
|
||||||
<span class="p-name">Laura
|
<span class="p-name">Laura
|
||||||
Kalb</span>
|
Kalb</span>
|
||||||
</strong>
|
</strong>
|
||||||
and I do things on the internet.
|
and I (literally) do things on the internet.
|
||||||
</p>
|
|
||||||
<h2>WIP</h2>
|
|
||||||
<p class="p-note">
|
|
||||||
This page is a work in progress. There is not much to see here yet ;)
|
|
||||||
</p>
|
</p>
|
||||||
<h2>About me</h2>
|
<h2>About me</h2>
|
||||||
<p class="p-note">
|
<p class="p-note">
|
||||||
|
@ -22,6 +18,25 @@ title: lauka (dot) net
|
||||||
moved on to be a sysadmin with main emphasis on linux environments. Afterwards, I was a mix of network engineer and site
|
moved on to be a sysadmin with main emphasis on linux environments. Afterwards, I was a mix of network engineer and site
|
||||||
reliability engineer. Now I'm responsible for the network infrastructure at a big datacenter provider.
|
reliability engineer. Now I'm responsible for the network infrastructure at a big datacenter provider.
|
||||||
</p>
|
</p>
|
||||||
|
<h2>Books</h2>
|
||||||
|
<p class="p-note">
|
||||||
|
I always loved to read as many books as I can. So here I'm listing the books I've read since I started this webpage,
|
||||||
|
including a rating and short description. These are the last few books I've rated:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
{%- for book in collections.book | reverse -%}
|
||||||
|
{% if loop.index0 < 5 %}
|
||||||
|
<li><a href="{{ book.url }}">{{ book.data.name }}</a>
|
||||||
|
{% for i in range(0, book.data.rating) -%}
|
||||||
|
⭐
|
||||||
|
{%- endfor %}
|
||||||
|
</li>
|
||||||
|
{% endif %}
|
||||||
|
{%- endfor -%}
|
||||||
|
<li><a href="/books/">more ...</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<h2>Some nice stuff</h2>
|
<h2>Some nice stuff</h2>
|
||||||
<p class="p-note">
|
<p class="p-note">
|
||||||
A list of
|
A list of
|
||||||
|
@ -66,8 +81,8 @@ title: lauka (dot) net
|
||||||
<h2>About</h2>
|
<h2>About</h2>
|
||||||
<p class="p-note">
|
<p class="p-note">
|
||||||
This website is
|
This website is
|
||||||
<a href="https://github.com/lauralani/www-lauka-net" target="_blank">open source</a>. It's an entirely static webpage built by
|
<a href="https://github.com/lauralani/www-lauka-net" target="_blank">open source</a>. It's an entirely static webpage generated by
|
||||||
<a href="https://www.11ty.dev/" target="_blank">eleventy (a static site generator)</a>
|
<a href="https://www.11ty.dev/" target="_blank">{{ eleventy.generator }}</a>
|
||||||
and hosted with
|
and hosted with
|
||||||
<a href="https://www.netlify.com/" target="_blank">Netlify</a>.
|
<a href="https://www.netlify.com/" target="_blank">Netlify</a>.
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Reference in a new issue