From d0e15c45acb33c112d57c68abe0e1e070af5a8bb Mon Sep 17 00:00:00 2001 From: lauralani Date: Thu, 23 Jun 2022 11:10:24 +0200 Subject: [PATCH] add functionality for book ratings, and added three --- _drafts/blogpost.md | 8 +++++ _drafts/book.md | 9 +++++ _includes/layouts/book.njk | 34 +++++++++++++++++++ books.njk | 19 +++++++++++ books/alexander-freed-rogue-one.md | 11 ++++++ books/dan-brown-meteor.md | 9 +++++ ...othy-zahn-thrawn-ascendancy-lesser evil.md | 12 +++++++ index.njk | 31 ++++++++++++----- 8 files changed, 125 insertions(+), 8 deletions(-) create mode 100644 _drafts/blogpost.md create mode 100644 _drafts/book.md create mode 100644 _includes/layouts/book.njk create mode 100644 books.njk create mode 100644 books/alexander-freed-rogue-one.md create mode 100644 books/dan-brown-meteor.md create mode 100644 books/timothy-zahn-thrawn-ascendancy-lesser evil.md diff --git a/_drafts/blogpost.md b/_drafts/blogpost.md new file mode 100644 index 0000000..d165f6a --- /dev/null +++ b/_drafts/blogpost.md @@ -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. diff --git a/_drafts/book.md b/_drafts/book.md new file mode 100644 index 0000000..f3e6061 --- /dev/null +++ b/_drafts/book.md @@ -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. diff --git a/_includes/layouts/book.njk b/_includes/layouts/book.njk new file mode 100644 index 0000000..2362aa9 --- /dev/null +++ b/_includes/layouts/book.njk @@ -0,0 +1,34 @@ +--- +title: lauka (dot) net +--- + + + + + + + + + lauka.net - Book: {{ name }} + + + + + + + + +

lauka.net - Book: {{ name }}

+

Rating: + {% for i in range(0, rating) -%} + ⭐ + {%- endfor %} + +

+

+ {{ content | safe }} +

+ + diff --git a/books.njk b/books.njk new file mode 100644 index 0000000..90d4999 --- /dev/null +++ b/books.njk @@ -0,0 +1,19 @@ +--- +layout: layouts/home.njk +title: "lauka.net - All Books" +permalink: "/books/" +--- + +

{{ title }}

+

+ These are all the books I've rated so far (oldest to newest): +

+ diff --git a/books/alexander-freed-rogue-one.md b/books/alexander-freed-rogue-one.md new file mode 100644 index 0000000..544bc64 --- /dev/null +++ b/books/alexander-freed-rogue-one.md @@ -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 diff --git a/books/dan-brown-meteor.md b/books/dan-brown-meteor.md new file mode 100644 index 0000000..37bc866 --- /dev/null +++ b/books/dan-brown-meteor.md @@ -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. diff --git a/books/timothy-zahn-thrawn-ascendancy-lesser evil.md b/books/timothy-zahn-thrawn-ascendancy-lesser evil.md new file mode 100644 index 0000000..9a1577a --- /dev/null +++ b/books/timothy-zahn-thrawn-ascendancy-lesser evil.md @@ -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 diff --git a/index.njk b/index.njk index 112f2c1..25d3d74 100644 --- a/index.njk +++ b/index.njk @@ -1,6 +1,6 @@ --- layout: layouts/home.njk -title: lauka (dot) net +title: "lauka.net" ---

{{ title }}

@@ -10,11 +10,7 @@ title: lauka (dot) net Laura Kalb - and I do things on the internet. -

-

WIP

-

- This page is a work in progress. There is not much to see here yet ;) + and I (literally) do things on the internet.

About me

@@ -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 reliability engineer. Now I'm responsible for the network infrastructure at a big datacenter provider.

+

Books

+

+ 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: +

+ + +

Some nice stuff

A list of @@ -66,8 +81,8 @@ title: lauka (dot) net

About

This website is - open source. It's an entirely static webpage built by - eleventy (a static site generator) + open source. It's an entirely static webpage generated by + {{ eleventy.generator }} and hosted with Netlify.