No description
  • HTML 56%
  • CSS 31.6%
  • JavaScript 12.4%
Find a file
Stewart Bennell d9d402937f Fix enquire form submit button stuck disabled on iOS Safari
The submit button only unlocks once the third-party validate_contact()
script runs; if that script is blocked or throws (Safari's stricter
cross-site restrictions), the button stayed disabled forever. Wrap the
call in try/catch and add a failsafe timeout so the button always
becomes usable regardless of what the validator does.
2026-08-04 18:35:02 +10:00
archetypes Implement hi-fi design as Hugo site 2026-05-25 14:29:26 +10:00
config Update site title to Reliable Rides Premium Chauffeurs 2026-07-09 10:23:03 +10:00
content Update site title to Reliable Rides Premium Chauffeurs 2026-07-09 10:23:03 +10:00
scripts Switch deploy to wipe-and-reupload so removed pages don't linger live 2026-07-08 09:04:29 +10:00
themes/reliable-rides Fix enquire form submit button stuck disabled on iOS Safari 2026-08-04 18:35:02 +10:00
.env.example Switch deploy to wipe-and-reupload so removed pages don't linger live 2026-07-08 09:04:29 +10:00
.gitignore Add FTP deploy script and fix Hugo config deprecation warning 2026-07-07 18:25:18 +10:00
package-lock.json Add FTP deploy script and fix Hugo config deprecation warning 2026-07-07 18:25:18 +10:00
package.json Switch deploy to wipe-and-reupload so removed pages don't linger live 2026-07-08 09:04:29 +10:00
readme.md Add creator credit to readme 2026-07-08 14:26:35 +10:00

reliablerides.com.au

Source for reliablerides.com.au, a Hugo static site using the custom reliable-rides theme.

Prerequisites

  • Hugo (extended edition)
  • Node.js 18+ (for deploy tooling)

Local development

npm install       # once, for deploy dependencies
hugo server -D    # local dev server with drafts, live reload

Building

npm run build
# or: hugo --minify

Output goes to public/. A staging build (noindex, dev.reliablerides.com.au baseURL) can be produced with:

hugo --gc --minify --environment staging --destination public-staging

See the theme README for how the two environments differ.

Deploying

Deploys upload the built site to cPanel over FTPS.

  1. Copy .env.example to .env and fill in FTP_PASSWORD (and any other overrides you need).

  2. Run:

    npm run deploy          # build + upload (overwrite only)
    npm run deploy:prune    # build + upload, then delete remote files no
                            # longer present in the local build
    

.env is gitignored — never commit real credentials. See .env.example and scripts/deploy.mjs for all supported options (e.g. --no-build to upload an existing public/ without rebuilding).

Project structure

config/           Hugo site config (_default + staging overrides)
content/          Page content (Markdown + frontmatter)
themes/reliable-rides/   Layouts, partials, styles for the site (see its README)
scripts/deploy.mjs       FTP deploy script

Content

Pages live under content/ and select a layout from the theme via frontmatter, e.g.:

---
title: "Weddings"
layout: "weddings"
---

See the theme README for the full list of available layouts and routes.

Credit

Created by Stewart Bennell, Bennellit.com.au.