funkydan2 / alpha-church

Hugo theme for churches based on a html5up theme
https://alpha-church.netlify.app
Other
68 stars 59 forks source link

Make call for action optional #50

Closed jouir closed 1 year ago

jouir commented 1 year ago

Allow users to enable contact form on the front page if needed. By default, it's disabled (BREAKING CHANGE) but the exampleSite index layout has been updated to enable the CTA by configuration.

Also, generate heading title and message paragraph only if they are configured. This avoids empty space in the CTA.

netlify[bot] commented 1 year ago

Deploy Preview for alpha-church failed.

Name Link
Latest commit c72bff4034cd44c6059d8245f32c6613c61c4a31
Latest deploy log https://app.netlify.com/sites/alpha-church/deploys/652d563b1a532f00089d6467
funkydan2 commented 1 year ago

I've been thinking about this today, as it introduces a breaking change. However, it does fit with the structure of other optional elements on the home page, and I could imagine use cases where the contact form isn't wanted on the homepage. So I'll merge and make a new relase—thanks.