devcows / hugo-universal-theme

Universal theme for Hugo, it stands out with its clean design and elegant typography.
https://devcows.github.io/hugo-universal-theme
MIT License
795 stars 567 forks source link

Submit button in contact form doesn't work #206

Closed BenjaminLouis closed 5 years ago

BenjaminLouis commented 5 years ago

Hi ! I used the hugo universal theme for my website ( by the way thanks for this theme). My problem is that It seems that the submit button doesn't work in the contact form as nothing happens when I click on it to activate my formspree email. Maybe There is something I don't see but I don't know how to fix the problem. Thanks

ryanfox1985 commented 5 years ago

hello @BenjaminLouis, the theme is using https://formspree.io, and the Ajax POST is only for premium accounts, recently we update the theme with a flag to decide the POST Ajax or not (by default not Ajax).

If you want to use the free Fromspree account, I recommend to you to update to the theme to the latest version.

ryanfox1985 commented 5 years ago

https://github.com/devcows/hugo-universal-theme/pull/203

ryanfox1985 commented 5 years ago

here is your file: https://www.benjaminlouis-stat.fr/js/front.js and here the changes: https://github.com/devcows/hugo-universal-theme/blob/master/static/js/front.js#L22-L29

BenjaminLouis commented 5 years ago

Hello @ryanfox1985 thanks a lot, it works perfectly now!

ryanfox1985 commented 5 years ago

You are welcome, thanks for the theme usage.