upgrade: Contact widget due to Formspree deprecation

see https://github.com/wowchemy/wowchemy-hugo-modules/issues/1940
This commit is contained in:
George Cushen 2020-11-13 00:19:36 +00:00
parent 391db20c75
commit f702e0b354
8 changed files with 56 additions and 43 deletions

View file

@ -47,6 +47,13 @@ ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "
home = [ "HTML", "RSS", "JSON", "WebAppManifest" ]
section = [ "HTML", "RSS" ]
[mediaTypes."application/manifest+json"]
suffixes = ["webmanifest"]
[outputFormats.WebAppManifest]
mediaType = "application/manifest+json"
rel = "manifest"
# Configure the Markdown renderer.
[markup]
defaultMarkdownHandler = "goldmark"

View file

@ -1,24 +1,30 @@
+++
# Contact widget.
widget = "contact" # See https://sourcethemes.com/academic/docs/page-builder/
headless = true # This file represents a page section.
active = true # Activate this widget? true/false
weight = 130 # Order that this section will appear.
---
# An instance of the Contact widget.
# Documentation: https://sourcethemes.com/academic/docs/page-builder/
widget: contact
title = "Contact"
subtitle = ""
# This file represents a page section.
headless: true
# Automatically link email and phone?
autolink = true
# Order that this section appears on the page.
weight: 130
# Email form provider
# 0: Disable email form
# 1: Netlify (requires that the site is hosted by Netlify)
# 2: formspree.io
email_form = 2
title: Contact
subtitle:
# Netlify form settings.
[netlify]
captcha = false # Enable CAPTCHA challenge to reduce spam?
+++
content:
# Automatically link email and phone or display as text?
autolink: true
# Email form provider
form:
provider: netlify
formspree:
id:
netlify:
# Enable CAPTCHA challenge to reduce spam?
captcha: false
design:
columns: '2'
---

View file

@ -3,9 +3,6 @@
# Documentation: https://sourcethemes.com/academic/docs/page-builder/
widget: contact
# Activate this widget? true/false
active: true
# This file represents a page section.
headless: true
@ -15,16 +12,19 @@ weight: 130
title: Contact
subtitle:
# Automatically link email and phone or display as text?
autolink: true
content:
# Automatically link email and phone or display as text?
autolink: true
# Email form provider
# 0: Disable email form
# 1: Netlify (requires that the site is hosted by Netlify)
# 2: formspree.io
email_form: 2
# Email form provider
form:
provider: formspree
formspree:
id: test
netlify:
# Enable CAPTCHA challenge to reduce spam?
captcha: false
netlify:
# Enable CAPTCHA challenge to reduce spam?
captcha: false
design:
columns: '2'
---

View file

@ -2,4 +2,4 @@ module github.com/wowchemy/starter-academic/exampleSite
go 1.15
require github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201111005443-165dcd6c3eab // indirect
require github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201113000901-bc07e3e614dc // indirect

View file

@ -1,2 +1,2 @@
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201109174124-1ed538027a75 h1:NbluAtKcpfNcsMGuVEjy5tFbwJMu50m/flJXS8RtUtI=
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201109174124-1ed538027a75/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8=
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201113000901-bc07e3e614dc h1:CEU/1wcms1ETNl7MWY4OPGSCI89nvnZK288QzCTWnNY=
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201113000901-bc07e3e614dc/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8=

2
go.mod
View file

@ -4,5 +4,5 @@ go 1.15
require (
github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic v0.0.0-20201109174124-1ed538027a75 // indirect
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201111005443-165dcd6c3eab
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201113000901-bc07e3e614dc
)

6
go.sum
View file

@ -1,3 +1,3 @@
github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic v0.0.0-20201016182837-be0fa17ac006/go.mod h1:TU3QDPUdBSQnvDP5QVCwjAkBIdVMS/bKFA8jr3eI5AY=
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201102170205-80fce98e72a9 h1:Xlur4C1LriYTITcDsTo5Sl/eyxyspJhccS0EYXcRacA=
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201102170205-80fce98e72a9/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8=
github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic v0.0.0-20201109174124-1ed538027a75/go.mod h1:TU3QDPUdBSQnvDP5QVCwjAkBIdVMS/bKFA8jr3eI5AY=
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201113000901-bc07e3e614dc h1:CEU/1wcms1ETNl7MWY4OPGSCI89nvnZK288QzCTWnNY=
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201113000901-bc07e3e614dc/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8=

View file

@ -3,7 +3,7 @@
publish = "public"
[build.environment]
HUGO_VERSION = "0.75.1"
HUGO_VERSION = "0.78.1"
HUGO_ENABLEGITINFO = "true"
[context.production.environment]