netlify

Website not updating with blogdown & hugo

旧城冷巷雨未停 提交于 2019-12-07 02:48:18
问题 I know this question is likely to get down-voted due to insufficient reproducibility of code leading to the error, but I am so dumbfounded by the error I do not even know where to start in explaining it clearly enough. I therefore apologise in advance. This issue has occurred twice on two separate machines. I created a new site with blogdown in R-Studio using the hugo-academic theme new_site(theme = "gcushen/hugo-academic") Everything works fine, and I start adding some publications (as

Expose API routes with Express when deployed on Netlify

有些话、适合烂在心里 提交于 2019-12-06 05:03:04
问题 I've created a site with create-react-app that I build in ./client/build and serve with express. Using express, I also setup 2 basic API routes that work well in dev (localhost). What I do to deploy on netlify ? I build the client with react-scripts Then I manually set the environment to production to build locally the server with webpack Finally I push my code to my GitLab repo, and it triggers the deploy automatically. Used Netlify deploy's settings : Build command: Not set Publish

Change blog theme (blogdown+netlify)

本秂侑毒 提交于 2019-12-06 01:46:30
I have followed tutorial by Yihui and created a website using blowdown , github and netlify . Now, I want to change theme of my website. The issue is that I have several posts that produces many plots. As a result when I create a new website locally and add my posts, git push fails. I suspect it is because I have too many files. I tried adding posts piece by piece as if I am writing a new post, which worked. But it will take too much time. I suspect others have the same problem. Is there a way to change theme of my website easier? Two ways of changing themes in blogdown, which are documented

Can Netlify redirect traffic from http to https without forcing SSL

蹲街弑〆低调 提交于 2019-12-05 08:02:06
Another question asked quite often by the Netlify community. "Can Netlify redirect traffic from http to https without forcing SSL (TLS)?" Once you have a certificate in place, you can check a box to force TLS. This will both set a redirect from http to https, and add Strict Transport Security headers to all requests. The user does not want to force SSL until everything is setup correctly and they know they will not be changing their setup. November 2018 Update The accepted answer is no longer true Currently, as of November 2018 (since July 2018) all new sites on Netlify are HTTPS with force

Website not updating with blogdown & hugo

早过忘川 提交于 2019-12-05 07:32:32
I know this question is likely to get down-voted due to insufficient reproducibility of code leading to the error, but I am so dumbfounded by the error I do not even know where to start in explaining it clearly enough. I therefore apologise in advance. This issue has occurred twice on two separate machines. I created a new site with blogdown in R-Studio using the hugo-academic theme new_site(theme = "gcushen/hugo-academic") Everything works fine, and I start adding some publications (as markdown documents) by adding these to the /content/publication folder. This works just fine; the site looks

How to handle Contentful content data in Gatsby

試著忘記壹切 提交于 2019-12-05 05:32:20
I'm interested in using Gatsby to build a Netlify static site using content from Contentful Netlify has this nice gettting started Gatsby guide: ​​ https://www.netlify.com/blog/2016/02/24/a-step-by-step-guide-gatsby-on-netlify But I'm a bit unsure of how to bring Contentful into the mix. Do I need to write scripts to convert my Contentful content into Gatsby 'markdown'? Any ideas, ideas, links appreciated! Brandon Since this question was posted, an official Contentful plugin's been added to Gatsby's collection (official as in created by Gatsby team, not Contentful): https://github.com/gatsbyjs

Using Netlify CMS with Hugo - creating posts with galleries

戏子无情 提交于 2019-12-05 03:30:40
问题 I'm new to both Hugo and Netlify, so it's possible I'm simply doing this wrong. I've successfully built and deployed a site with galleries, using Hugo, the Galleria plugin, and deploying to Netlify This has all worked. However, I want to try using the Netlify CMS, and am struggling to set it up to handle the gallery feature (it's doing fine for just writing a text post) I'm not sure if this is a limitation of Netlify CMS, or if I'm doing galleries in a way that isn't suited to static sites.

Expose API routes with Express when deployed on Netlify

旧城冷巷雨未停 提交于 2019-12-04 11:22:39
I've created a site with create-react-app that I build in ./client/build and serve with express . Using express , I also setup 2 basic API routes that work well in dev (localhost). What I do to deploy on netlify ? I build the client with react-scripts Then I manually set the environment to production to build locally the server with webpack Finally I push my code to my GitLab repo, and it triggers the deploy automatically. Used Netlify deploy's settings : Build command: Not set Publish directory: client/build Issue When I try to use one of my API routes, I get an error 404 ... Project My

Netlify deployment “failed during stage 'building site': Build script returned non-zero exit code: 42”

狂风中的少年 提交于 2019-12-04 07:52:07
I have tried to deploy my Jekyll static site to Netlify (via GitHub) and it was unsuccessful. The error message was: "failed during stage 'building site': Build script returned non-zero exit code: 42" The following was the full Netlify log: 5:06:23 PM: Preparing Git Reference refs/heads/master 5:06:23 PM: Starting build script 5:06:23 PM: Installing dependencies 5:06:24 PM: Downloading and installing node v10.16.0... 5:06:25 PM: Downloading https://nodejs.org/dist/v10.16.0/node-v10.16.0-linux-x64.tar.xz... 5:06:25 PM: ########################## 5:06:25 PM: 37.2% 5:06:25 PM: ###################

Netlify form submissions are blank

丶灬走出姿态 提交于 2019-12-04 07:02:42
When I submit my Netlify form the server responds with a 200 status and I get the 'thank you' response page. However, when I check the form submission in the Netlify admin, they are all blank. I've inspected my xhr requests and the data shows in the 'params' section of the browser dev tools. Disclaimer: I work for Netlify. When our service stores blank submissions, it has not received any fields from the submission which were defined in the html version of the form with the same name parameter in its definition as the submission. To start off with, it's useful to know that our service requires