Skip to content

hellogaray/commonplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

commonplace

HTML5 Icon CSS3 Icon JavaScript Icon

Built with 11ty (Eleventy).

Netlify Status GitHub Repo License

A cozy and stylish digital bookshelf for tracking, reviewing, and showcasing all your reads.

Homepage Screenshot


πŸ§‘β€πŸ’» Author

Created with love (and a bit of anxiety) by hellogaray.
Feel free to use it for personal purposes, contribute improvements, or ask questions via the GitHub repository.


✨ Features

  • Minimal and responsive layout
  • Dynamic quote sections per book
  • Custom thumbnail for each book stat
  • Markdown-driven content generation
  • Modular component design (header, footer, thumbnails)
  • CMS support with Netlify Identity / Decap CMS
  • Easily update with from GitHub
  • Ready for Netlify deployment

πŸ”§ Tech Stack

  • Site Generator: 11ty
  • Frontend: HTML and JavaScript
  • Animations: CSS and GSAP
  • Nunjucks templating
  • Markdown for content
  • Local assets (covers, CSS)

πŸ’» Coding Resources


πŸš€ Installation & Deployment Guide

I recommend using 11ty for Beginners - Kevin Powell to get everything set up. Is easy to follow and if this is your first time using 11ty it will give you a basic undertanding on how to create your own site, which in turn will make using and customizing this kit easier for you.

Prerequisites

  • Node.js (v18+ recommended)
  • npm (comes with Node)

1. Clone the Repository

git clone https://github.com/YOUR_USERNAME/YOUR_REPO.git
cd YOUR_REPO

2. Install Dependencies

npm install

3. Run the Development Server

npm run start

Or:

npx @11ty/eleventy --serve

Visit: http://localhost:8080/

4. Build the Site

npm run build

Output is generated in:

_site/

5. Push to GitHub

git add .
git commit -m "Initial commit"
git branch -M main
git remote add origin https://github.com/YOUR_USERNAME/YOUR_REPO.git
git push -u origin main

6. Deploy to Netlify

One-Click Deployment

Go to Netlify Start β†’ Choose GitHub β†’ Select repo β†’ Deploy

Manual Setup

  • Build command: npm run build
  • Publish directory: _site

Netlify builds and publishes your site automatically.

✏️ 7. CMS (Decap / Netlify CMS)

If you include /admin/:

  1. Enable Netlify Identity in your site settings
  2. Enable Git Gateway
  3. Add yourself as an Identity user

Access the CMS:

https://YOUR_SITE.netlify.app/admin/

You can now:

  • Add or edit books
  • Upload cover images
  • Manage metadata
  • Edit quotes

Changes commit directly to GitHub.

πŸ“ 8. Project Structure

.
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ _data/               # Title, Description and User
β”‚   β”œβ”€β”€ admin/               # CMS config
β”‚   β”œβ”€β”€ books/               # Markdown book files
β”‚   β”œβ”€β”€ _includes/           # Components (header, footer, thumbnails)
β”‚   β”œβ”€β”€ css/                 # Styles
β”‚   β”œβ”€β”€ index.njk            # Homepage
β”‚   β”œβ”€β”€ rating/              # Rating pages
β”‚   └── ...
β”œβ”€β”€ .eleventy.js             # Eleventy config
β”œβ”€β”€ package.json
β”œβ”€β”€ netlify.toml             # Netlify settings (optional)
└── README.md

πŸ”§ 9. Updating Dependencies

npm update

Or update Eleventy directly:

npm install @11ty/eleventy@latest

🧼 10. Clearing Eleventy Cache

npx @11ty/eleventy --clean

πŸ–ΌοΈ Screenshots

Book Page Book Page Screenshot

Night Mode CMS Screenshot

πŸŽ‰ Done!

Your Book Highlights & Insights bookshelf is now:

βœ” Installed locally βœ” Connected to GitHub βœ” Automatically deployed to Netlify βœ” Editable through the CMS