bloco-ara

Tipperary Town Samba-Reggae Drum Community Site, live at https://drum.framedrag.ie.

Built with Hugo and edited with Sveltia CMS. GitHub Actions rebuilds the site on every change and once every morning, so past events drop off the lists.

Editing the site

Go to https://drum.framedrag.ie/admin/ and sign in.

Every save is a commit to main. The live site updates a minute or two later; progress is in the Actions tab.

Signing in with a token (just you)

  1. On GitHub, go to Settings → Developer settings → Personal access tokens → Fine-grained tokens → Generate new token.
  2. Repository access: Only select repositories → bloco-ara.
  3. Permissions: Contents: Read and write.
  4. Copy the token and paste it on the /admin sign-in screen (“Sign in with token”).

Letting other people edit

Deploy sveltia-cms-auth as a Cloudflare Worker, register a GitHub OAuth app, then uncomment base_url in static/admin/config.yml. Editors need a GitHub account with write access to this repo.

Working locally

hugo server            # preview at http://localhost:1313

To use the editor on your local files without signing in, open http://localhost:1313/admin/ in Chrome or Chromium and choose Work with Local Repository, then pick this folder. Commit and push as normal afterwards.

Layout

Path What it is
data/site.yaml Group info, rehearsals, contact, calendar ID
content/_index.md Home page intro and photo
content/events/ One Markdown file per event
content/pages/ Extra pages
layouts/ HTML templates
assets/css/main.css Styles
static/admin/ Sveltia CMS (the editor) and its config
static/images/uploads/ Images uploaded through the editor
.github/workflows/hugo.yml Build and deploy to GitHub Pages