Skip to content

elwindewitte/bookbite-app

Repository files navigation

Bookbite

About the project

This is platform ment for young people to encorage them to consume more literature. We focused on the reading experience of books, and made a platform where they can both read books with more focus, as well as create their own lists and share with others. This is merely a prototype, so it re-enacts full functionality.

Code instructions

Languages used

  • .njk for layouts
  • .md for data on pages (used in layouts)
  • .html for general page structure
  • .css for styling
  • .js for interactivity

Frameworks/tools used

Before coding

Eleventy

  • Run: npx @11ty/eleventy
  • Start server: npx @11ty/eleventy --serve

Know errors

Error: template names must be a string: undefined Fix: just set the template in the include between quotes

Using the code base

Looking up books in a specific collection for an on-page-list

To include an on-page-list for books, you can add this piece of code:

{%- set listName = "Vergelijkbare boeken" -%}
{%- set listFilterShow = genreTag -%}
{%- set listFilterHide = serieTag -%}
{%- set listContent = collections.book -%}
{%- include "onPageListBook.njk" -%}

Variables you can change:

  • listName: Specify how you want to call the list, will show up on screen.
  • listFilterShow: Specify what tag you want to show in your list. Must be a string or a variable.
  • listFilterHide: Specify what tag you want to hide in your list. Must be a string or a variable.
  • listContent: Specify what collection you want to show. Options are book, author, or bookshelf.

{%- include "onPageListBook.njk" -%} actually includes the template for the on-page-list specifically for books, but can be set to onPageListBookshelf and onPageListAuthors to change to bookshelves and authors accordingly. Collection must be set in the same way. #}

About

Prototype of our student project 'Bookbite' during Minor IUXD 2020/2021

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages