From f702e0b354fb7368bcdbe43355d1f2b638aef820 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Fri, 13 Nov 2020 00:19:36 +0000 Subject: [PATCH] upgrade: Contact widget due to Formspree deprecation see https://github.com/wowchemy/wowchemy-hugo-modules/issues/1940 --- config/_default/config.toml | 7 +++++ content/home/contact.md | 46 ++++++++++++++++------------- exampleSite/content/home/contact.md | 30 +++++++++---------- exampleSite/go.mod | 2 +- exampleSite/go.sum | 4 +-- go.mod | 2 +- go.sum | 6 ++-- netlify.toml | 2 +- 8 files changed, 56 insertions(+), 43 deletions(-) diff --git a/config/_default/config.toml b/config/_default/config.toml index 98fb745..08e410a 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -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" diff --git a/content/home/contact.md b/content/home/contact.md index 25188e2..cdb3055 100644 --- a/content/home/contact.md +++ b/content/home/contact.md @@ -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 - -# Netlify form settings. -[netlify] - captcha = false # Enable CAPTCHA challenge to reduce spam? -+++ +title: Contact +subtitle: +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' +--- diff --git a/exampleSite/content/home/contact.md b/exampleSite/content/home/contact.md index 9d65963..bcfb0d6 100644 --- a/exampleSite/content/home/contact.md +++ b/exampleSite/content/home/contact.md @@ -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 - -# Email form provider -# 0: Disable email form -# 1: Netlify (requires that the site is hosted by Netlify) -# 2: formspree.io -email_form: 2 - -netlify: - # Enable CAPTCHA challenge to reduce spam? - captcha: false +content: + # Automatically link email and phone or display as text? + autolink: true + + # Email form provider + form: + provider: formspree + formspree: + id: test + netlify: + # Enable CAPTCHA challenge to reduce spam? + captcha: false + +design: + columns: '2' --- diff --git a/exampleSite/go.mod b/exampleSite/go.mod index faaff6c..5f5cf83 100644 --- a/exampleSite/go.mod +++ b/exampleSite/go.mod @@ -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 diff --git a/exampleSite/go.sum b/exampleSite/go.sum index b1a9f8e..219d197 100644 --- a/exampleSite/go.sum +++ b/exampleSite/go.sum @@ -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= diff --git a/go.mod b/go.mod index 168970b..30db80d 100644 --- a/go.mod +++ b/go.mod @@ -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 ) diff --git a/go.sum b/go.sum index 2bed858..2bb798b 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/netlify.toml b/netlify.toml index 6437f4c..9863b7b 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ publish = "public" [build.environment] - HUGO_VERSION = "0.75.1" + HUGO_VERSION = "0.78.1" HUGO_ENABLEGITINFO = "true" [context.production.environment]