Skip to content

cherryhill/westsidetherapy-hugo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Westside Therapy — Hugo Static Site

Migrated from Drupal 9 (cherryhill/westsidetherapy-d9).

Requirements

  • Hugo v0.120+ (extended edition recommended)

Local Development

# Clone this repo
git clone <your-repo-url>
cd westsidetherapy-hugo

# Download images from the live Drupal site (one-time setup)
bash scripts/download-assets.sh

# Start local dev server with live reload
hugo server -D

Visit http://localhost:1313

Project Structure

westsidetherapy-hugo/
├── hugo.toml               # Site configuration, menus, params
├── content/
│   ├── _index.md           # Home page body copy
│   ├── about.md
│   ├── why-therapy.md
│   ├── my-practice.md
│   ├── services.md
│   ├── forms.md
│   └── contact/
│       └── index.md
├── layouts/
│   ├── index.html          # Home page template
│   ├── _default/
│   │   ├── baseof.html     # Base HTML shell (header/footer)
│   │   └── single.html     # Default page template
│   └── contact/
│       └── single.html     # Contact page with Formspree form
└── static/
    ├── css/style.css
    ├── images/             # ← copy images here (see below)
    └── files/              # ← copy PDF forms here (see below)

Images to Copy from Drupal

Copy these from the live site or from web/sites/default/files/ in the Drupal repo:

Hugo path Drupal source
static/images/logo.png themes/custom/westsidetherapy/images/logo.png
static/images/judy-bio-pic.jpg sites/default/files/inline-images/judy-bio-pic.jpg
static/images/judy-closeup.jpeg sites/default/files/inline-images/judy_closeup.jpeg
static/images/prayer-flags.jpg sites/default/files/inline-images/iStock-636521992.jpg
static/images/office-location.png sites/default/files/inline-images/office-location_0.png
static/images/beech-leaves.jpg sites/default/files/inline-images/Beech-Leaves-Falling-...jpg

PDF Forms to Copy

Copy from web/sites/default/files/2019-02/ in the Drupal repo:

Hugo path Drupal source
static/files/Consent.pdf 2019-02/Consent.pdf
static/files/Admission.pdf 2019-02/Admission.pdf
static/files/ReleaseofInfo.pdf 2019-02/ReleaseofInfo.pdf

Contact Form Setup

The contact form uses Formspree (free tier supports 50 submissions/month):

  1. Sign up at https://formspree.io
  2. Create a new form
  3. Copy your form ID (looks like xabcdefg)
  4. In hugo.toml, replace YOUR_FORM_ID:
    formAction = "https://formspree.io/f/xabcdefg"

Alternatively use Netlify Forms if deploying to Netlify — just add netlify attribute to the <form> tag in layouts/contact/single.html.

Deployment

Netlify (recommended — free)

  1. Push this repo to GitHub
  2. Connect repo at https://app.netlify.com
  3. Build command: hugo
  4. Publish directory: public
  5. Set environment variable: HUGO_VERSION=0.120.0

GitHub Pages

hugo --minify
# push /public to gh-pages branch

Cloudflare Pages

Build command: hugo --minify
Output directory: public

Building for Production

hugo --minify

Output goes to public/ — upload that directory to any static host.

About

Judy Kann Hugo site

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors