Skip to content
insidebooksprojectPublic

About

Static HTML preview of the Inside Books Project website

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

Inside Books Project website

A plain-HTML copy of insidebooksproject.org (currently on Squarespace), built so the collective can see what moving to free static hosting would look like. It has the same six pages, text, photos, colours and fonts as the live site, as of November 2026. GitHub Pages serves a preview at https://insidebooksproject.github.io/website/.

There is no build step, no framework and no CMS: each page is one HTML file, and every page shares one stylesheet and one small script.

index.html                 Home
volunteer/index.html       Volunteer
donate-books/index.html    Donate Books
about/index.html           About Us
resources/index.html       Resources
donate-funds/index.html    Donate Funds
home/index.html            Redirect from the old /home URL to /
404.html                   "Page not found"
assets/css/site.css        All styles
assets/js/site.js          Mobile menu + "not connected yet" messages
assets/img/                Photos, artwork, logos (WebP; PNG icons)
assets/fonts/              Anton and Epilogue (SIL Open Font License)
assets/docs/               Resource Guide PDF
favicon.ico
.nojekyll                  Makes GitHub Pages serve the files as they are

Each page lives in its own folder (about/index.html), so the live URLs (/about, /volunteer, ...) keep working.

Preview locally

From the repo root:

python3 -m http.server 8000

Then open http://localhost:8000/. You can also double-click index.html to open a single page. In that case the menu links open folder listings, because browsers only serve index.html for a folder when a server is running.

Editing

Open the page's HTML file in any text editor (or GitHub's web editor), change the words between the tags, and commit. A few notes:

  • Header and footer are copied into every page. If you change the menu, address, email or social links, make the same change in all seven HTML files (the six pages plus 404.html). A project-wide find-and-replace does it in one step. Pages in folders use ../ in front of links (../about/), while the home page and 404.html don't (about/). 404.html is served at whatever URL was missing, so a small script at its top resolves its links from the site root: /website/ on the GitHub Pages preview, / on a real domain.
  • Layout. Desktop uses a 24-column grid, like Squarespace. Each block says which columns it covers, e.g. style="--col: 14 / span 10" means "start at column 14 and span 10 columns". On phones everything stacks in one column.
  • Section colours come from the theme-* class: theme-black, theme-peach, theme-orange, theme-white, theme-white-bold (white with orange headings). The --pt/--pb values are the section's top and bottom padding (--pt-m/--pb-m on phones).
  • Images: add the file to assets/img/ and point an <img> at it. Always write an alt that describes the picture.
  • Resource Guide: put the new PDF in assets/docs/, update the link and the "Last updated" line in resources/index.html, and delete the old PDF.
  • Donation charts (Donate Funds page): edit the percentages in the legend, the conic-gradient(...) stops (each stop is the running total) and the aria-label text.

Before going live

Remove <meta name="robots" content="noindex"> from the six pages (it keeps the preview out of search engines; 404.html and the home/ redirect can keep it).

Then fill in the placeholders; search for #TODO-:

Placeholder Where What to put there
#TODO-NEWSLETTER footer form on every page The signup form URL from the newsletter service (see below)
#TODO-CARD-DONATION Donate Funds, "Donate by card" button A Zeffy donation form (free for nonprofits) or a Stripe Payment Link

Until they're filled in, the newsletter form and the card button show a short "not connected yet" message instead of going anywhere.

To replace the newsletter URL in every page at once:

grep -rl '#TODO-NEWSLETTER' --include='*.html' . \
  | xargs sed -i 's|#TODO-NEWSLETTER|https://buttondown.com/api/emails/embed-subscribe/YOUR-NAME|'

The form posts a single email field, which is what Buttondown expects. For Mailchimp, use the form action from Mailchimp's embedded-form code and rename the input to EMAIL.

Deploying

GitHub Pages (no workflow needed) publishes the preview from main, / (root) (Settings → Pages → "Deploy from a branch"). To use the real domain, add a CNAME file containing insidebooksproject.org, set the same domain in the Pages settings, and point DNS at GitHub Pages. The "Page not found" page works both on the preview and on the real domain, with no change.

Cloudflare Pages works too: connect the repo, leave the build command empty and set the output directory to /. That also gives free DNS, and the domain could move to Cloudflare Registrar at cost (about $10/yr for a .org).

Either way, the switch itself is a DNS change. Squarespace keeps serving the old site until DNS points somewhere else.

Differences from the Squarespace site

Deliberate:

  • Newsletter signup: Squarespace's newsletter storage doesn't carry over. Export the existing subscriber list from Squarespace, import it into Buttondown or Mailchimp, and point the form at that service (see placeholders above).
  • Card donations: the Squarespace donation block (amount picker, "cover the fee", checkout) only works on Squarespace. It's replaced by a "Donate by card" button that should link to a Zeffy or Stripe donation page. Venmo, the PayPal monthly "Sustainer Program" form (same PayPal button ID) and the mailing address for checks are unchanged.
  • Alt text: every photo and drawing now has a real description. On the live site most images have none, or just a file name.
  • Social links use https:// (the live site uses http://).
  • Favicon: the live site shows Squarespace's default icon; this one uses the IBP logo.
  • Resource Guide PDF is at /assets/docs/Resource_Guide_Booklet_2026_May_31.pdf instead of Squarespace's /s/... link.
  • Header scrolls with the page, as on the live site, but it sits above the first section instead of on top of it. This changes nothing visible, because the header is solid black.

Left as on the live site, but worth fixing:

  • The About page says "more than 30,000" books a year, while Home and Donate Books say "35,000".

Known small visual differences:

  • Line breaks fall in slightly different places in a few headings and paragraphs, mostly on phones.
  • Squarespace arranges the About page artwork in a masonry grid. On desktop this copy uses the same three columns. On phones the two columns are filled in a slightly different order.
  • The "Donate on Venmo" button fits on one line here (Squarespace wraps it onto two).
  • Without the Squarespace amount picker, the Donate Funds page is a bit shorter.

About

Static HTML preview of the Inside Books Project website

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages