r/Ghost • • Oct 02 '26

Question How would you turn generated HTML into a Ghost theme that stays easy to edit?

A generated site often arrives as a finished HTML folder: repeated headers and footers, hard-coded navigation, relative asset paths, and page content mixed into the layout. It can be uploaded somewhere quickly, but that does not make it a maintainable Ghost site. The next page or design tweak can force another full export and overwrite changes made in Ghost.

A sensible conversion seems to be separating the generated result into a Handlebars theme and editable content. Repeated structure would become `default.hbs` and partials, posts and pages would live in Ghost rather than in copied HTML, assets would use Ghost's theme helpers, and routing or collections would be explicit in `routes.yaml`. The existing site could stay on its current URL while the Ghost version is checked on a staging domain, including metadata, redirects, forms, responsive behavior, and image paths.

What workflow would you use for this? Which parts of generated HTML are worth preserving, and which should be rebuilt as Ghost templates so later edits do not require regenerating the whole site? How do you handle custom landing pages without turning every page into a separate hard-coded template?

1 Upvotes

2 comments sorted by

2

u/bohlenlabs Oct 02 '26

I would ask my AI to do it for me.

1

u/arthurdapaz Oct 02 '26

Yep. You should ask AI to convert your theme to a handlebar template.