- HTML 56%
- CSS 31.6%
- JavaScript 12.4%
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. |
||
|---|---|---|
| archetypes | ||
| config | ||
| content | ||
| scripts | ||
| themes/reliable-rides | ||
| .env.example | ||
| .gitignore | ||
| package-lock.json | ||
| package.json | ||
| readme.md | ||
reliablerides.com.au
Source for reliablerides.com.au, a Hugo
static site using the custom reliable-rides theme.
Prerequisites
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.
-
Copy
.env.exampleto.envand fill inFTP_PASSWORD(and any other overrides you need). -
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.