diff --git a/_books/the_godfather.md b/_books/the_godfather.md new file mode 100644 index 000000000000..c0689e5d9133 --- /dev/null +++ b/_books/the_godfather.md @@ -0,0 +1,27 @@ +--- +layout: book-review +title: The Godfather +author: Mario Puzo +cover: assets/img/book_covers/the_godfather.jpg +olid: OL43499941M # use Open Library ID to fetch cover (if no `cover` is provided) +isbn: 7539967447 # use ISBN to fetch cover (if no `olid` is provided, dashes are optional) +categories: classics crime historical-fiction mystery novels thriller +tags: top-100 +buy_link: https://www.amazon.com/Godfather-Deluxe-Mario-Puzo/dp/0593542592 +started: 2024-08-23 +finished: 2024-09-07 +released: 1969 +stars: 5 +goodreads_review: 6318556633 +status: Finished +--- + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sollicitudin eros sit amet ante aliquet, sit amet vulputate lectus mattis. Aenean ullamcorper pretium nunc, sed egestas lorem elementum id. Nulla id mi id neque ultrices egestas ut in urna. Sed ac ultricies nunc. Nam convallis placerat urna id egestas. Nulla porta, est interdum vestibulum venenatis, lorem odio laoreet sapien, in pulvinar tellus eros a dolor. Vivamus sapien justo, ullamcorper a mi eget, scelerisque euismod nunc. In augue augue, ultrices a ornare non, tincidunt quis justo. Donec sit amet consectetur eros. Nullam neque leo, tincidunt id ipsum ac, volutpat lobortis mi. Phasellus consequat ultricies arcu, eu semper ligula ultrices eget. Ut in fringilla elit, ac tincidunt nisi. + +Nunc commodo elit nec turpis feugiat consectetur. Nullam in nisi egestas, fermentum ligula hendrerit, euismod enim. Nulla eu hendrerit eros. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin et velit ante. Vestibulum pretium vitae quam et sagittis. Proin eu nunc vel velit accumsan eleifend. Nulla facilisis, diam tempus imperdiet ultrices, massa ipsum consequat orci, sed efficitur eros mi a felis. Cras lobortis turpis sem, sed lobortis nunc ullamcorper tristique. Nam vehicula rhoncus ante, in faucibus sapien scelerisque et. Donec semper libero et tincidunt mattis. In vestibulum, nulla pretium dictum commodo, risus nulla vestibulum felis, at tincidunt massa mi in odio. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. + +Donec efficitur ultrices purus sit amet imperdiet. Nam consequat metus in erat sodales faucibus. Aliquam maximus fermentum nulla id finibus. Aliquam iaculis sed odio vel rutrum. Curabitur sed odio est. Praesent nec sollicitudin tortor. Praesent pharetra, turpis quis porttitor rhoncus, ante massa fringilla lacus, nec porttitor magna turpis vitae felis. Nullam tristique massa id odio imperdiet, nec sodales massa egestas. Proin nisi metus, euismod sed accumsan vitae, facilisis vel risus. Morbi suscipit auctor erat, nec viverra elit fringilla eu. Mauris congue, purus id tristique facilisis, felis nisi efficitur magna, eu consectetur augue sem vitae lacus. Aliquam erat volutpat. Cras at nibh ultricies, volutpat arcu vitae, dictum est. In ac dolor sagittis, egestas lectus et, semper nisl. Etiam consectetur purus vitae sapien porttitor auctor. + +Nulla sit amet venenatis odio. Suspendisse ac lacus quis augue mollis tempus vel in lorem. Donec augue turpis, eleifend nec nibh eu, elementum dictum metus. Proin ut est ligula. Etiam vehicula facilisis metus, sit amet consectetur risus ullamcorper porttitor. In congue nibh quis sollicitudin iaculis. Donec a mollis lorem, non mollis lacus. Nulla et leo ex. Aliquam erat volutpat. Nam sit amet tincidunt mauris. Vivamus vitae est sit amet nisi semper egestas. Donec in diam pharetra, commodo diam vitae, imperdiet ligula. Cras iaculis ac diam eget vehicula. Proin suscipit ante enim, quis vehicula mi porta bibendum. Aliquam a diam porttitor, sollicitudin justo vitae, tempor odio. + +Cras fermentum dignissim pretium. Donec quis turpis eu neque lacinia facilisis in sit amet nibh. Nulla non tortor ultricies, euismod est in, blandit nibh. Ut a neque metus. Sed convallis condimentum nibh quis finibus. Praesent aliquam sem iaculis eros maximus accumsan. Nulla venenatis mauris id aliquet maximus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin at enim vitae ex porttitor vestibulum sed eget nibh. Suspendisse accumsan feugiat quam eget ultricies. diff --git a/_config.yml b/_config.yml index 4411534b7f60..5c13a1232921 100644 --- a/_config.yml +++ b/_config.yml @@ -190,14 +190,14 @@ newsletter: # ----------------------------------------------------------------------------- collections: + books: + output: true news: defaults: layout: post output: true - permalink: /:collection/:title/ projects: output: true - permalink: /:collection/:title/ announcements: enabled: true diff --git a/_layouts/book-review.liquid b/_layouts/book-review.liquid new file mode 100644 index 000000000000..893a40eff6ca --- /dev/null +++ b/_layouts/book-review.liquid @@ -0,0 +1,246 @@ +--- +layout: default +--- +{% assign year = page.started | date: '%Y' %} +{% assign tags = page.tags | join: '' %} +{% assign categories = page.categories | join: '' %} + +{% if page._styles %} + + +{% endif %} + +
+
+

{{ page.title }}

+ {% if page.author or page.released %} + + {% endif %} + + {% if page.started or page.finished or page.stars %} + + {% endif %} + +
+
+ +
+ {% if content == "" %} +
+ {% if page.cover %} + {{ page.title }} cover +
Cover of {{ page.title }}
+ {% elsif page.olid %} + {{ page.title }} cover +
Cover of {{ page.title }} on the Open Library.
+ {% elsif page.isbn %} + {{ page.title }} cover +
Cover of {{ page.title }} on the Open Library.
+ {% endif %} +
+ {% assign status = page.status | upcase %} +
+

{{status}}

+
+ {% else %} +
+ {% if page.cover %} + {{ page.title }} cover +
Cover of {{ page.title }}
+ {% elsif page.olid %} + {{ page.title }} cover +
Cover of {{ page.title }} on the Open Library.
+ {% elsif page.isbn %} + {{ page.title }} cover +
Cover of {{ page.title }} on the Open Library.
+ {% endif %} +
+
+

+ {% if page.start %} Start Date: {{page.start| date: "%-d %B %Y"}}. {% endif %} + {% if page.end %} End Date: {{page.end | date: "%-d %B %Y"}}. {% endif %} +

+ {{content}} + {% endif %} +
+ + {% if site.giscus and page.giscus_comments %} + {% include giscus.liquid %} + {% endif %} +
+ + \ No newline at end of file diff --git a/_layouts/book-shelf.liquid b/_layouts/book-shelf.liquid new file mode 100644 index 000000000000..0781c4a098f9 --- /dev/null +++ b/_layouts/book-shelf.liquid @@ -0,0 +1,48 @@ +--- +layout: page +--- + +{{ content }} + +{% if page.collection and page.collection.size > 0 %} + {% assign collection = site[page.collection] %} + {% if collection and collection.size > 0 %} + {% for item in collection reversed %} + {% assign currentdate = item.date | date: "%Y" %} + {% if currentdate != date %} + {% unless forloop.first %} + + {% endunless %} +

{{ currentdate }}

+ + {% endif %} + {% endfor %} + {% endif %} +{% endif %} diff --git a/_layouts/post.liquid b/_layouts/post.liquid index 89e1e6adb1c7..7ffc28e3679f 100644 --- a/_layouts/post.liquid +++ b/_layouts/post.liquid @@ -4,6 +4,7 @@ layout: default {% assign year = page.date | date: '%Y' %} {% assign tags = page.tags | join: '' %} {% assign categories = page.categories | join: '' %} +{% assign url_beginning = page.url | slice: 0, 6 %} {% if page._styles %} @@ -12,8 +13,6 @@ layout: default {% endif %} -{% assign url_beginning = page.url | slice: 0, 6 %} -

{{ page.title }}

diff --git a/_pages/books.md b/_pages/books.md new file mode 100644 index 000000000000..48ca7af9fa04 --- /dev/null +++ b/_pages/books.md @@ -0,0 +1,13 @@ +--- +layout: book-shelf +title: bookshelf +permalink: /books/ +nav: false +collection: books +--- + +> What an astonishing thing a book is. It's a flat object made from a tree with flexible parts on which are imprinted lots of funny dark squiggles. But one glance at it and you're inside the mind of another person, maybe somebody dead for thousands of years. Across the millennia, an author is speaking clearly and silently inside your head, directly to you. Writing is perhaps the greatest of human inventions, binding together people who never knew each other, citizens of distant epochs. Books break the shackles of time. A book is proof that humans are capable of working magic. +> +> -- Carl Sagan, Cosmos, Part 11: The Persistence of Memory (1980) + +## Books that I am reading, have read, or will read diff --git a/_pages/dropdown.md b/_pages/dropdown.md index aa32f2212369..dc4302e1906d 100644 --- a/_pages/dropdown.md +++ b/_pages/dropdown.md @@ -5,11 +5,8 @@ nav: true nav_order: 8 dropdown: true children: - - title: publications - permalink: /publications/ - - title: divider - - title: projects - permalink: /projects/ + - title: bookshelf + permalink: /books/ - title: divider - title: blog permalink: /blog/ diff --git a/_sass/_base.scss b/_sass/_base.scss index d226dca9ab14..338ba9df39c7 100644 --- a/_sass/_base.scss +++ b/_sass/_base.scss @@ -1304,3 +1304,74 @@ ninja-keys::part(ninja-input-wrapper) { background-color: var(--global-theme-color); color: var(--global-text-color); } + +figure.cover { + display: inline-block; + text-align: center; + margin: .5rem; /* adjust as needed */ + + img { + vertical-align: bottom; + } + + figcaption.abandoned{ + font-family: monospace; + color: #23212D; + text-transform: uppercase; + background-color: #ee5f5b; + } + + figcaption.finished, figcaption.watched{ + font-family: monospace; + color: #23212D; + text-transform: uppercase; + background-color: #62c462; + } + + figcaption.interested{ + font-family: monospace; + color: #23212D; + text-transform: uppercase; + background-color: #7691db; + } + + figcaption.paused{ + font-family: monospace; + color: #23212D; + text-transform: uppercase; + background-color: #bdac7e; + } + + figcaption.queued{ + font-family: monospace; + color: #23212D; + text-transform: uppercase; + background-color: #9e76b5; + } + + figcaption.reading, figcaption.watching{ + font-family: monospace; + color: #23212D; + text-transform: uppercase; + background-color: #f89406; + } + + figcaption.reread, figcaption.rewatch{ + font-family: monospace; + color: #23212D; + text-transform: uppercase; + background-color: #a6517d; + } + + figcaption.uncategorized{ + font-family: monospace; + color: #23212D; + text-transform: uppercase; + background-color: #b0abb3; + } + + /* mouse over link */ + a.cover-link:hover { + color: #23212D !important; + } +} \ No newline at end of file diff --git a/assets/img/book_covers/the_godfather.jpg b/assets/img/book_covers/the_godfather.jpg new file mode 100644 index 000000000000..1d3a08564671 Binary files /dev/null and b/assets/img/book_covers/the_godfather.jpg differ