jonathanjanssens / hugo-casper3-demo

Demo site for casper3 hugo theme
https://hugo-casper3-demo.pages.dev
MIT License
25 stars 23 forks source link

Site not running after hugo server -D due to failed JSON resource #6

Closed nathan-gt closed 2 years ago

nathan-gt commented 3 years ago

Error log:

WARN 2021/04/16 11:22:15 Markup type mmark is deprecated and will be removed in a future release. See https://gohugo.io//content-management/formats/#list-of-content-formats
2021/04/16 11:22:15 mmark: failed: ` if or .Params.math .Site.Params.math ': open  if or .Params.math .Site.Params.math : The system cannot find the file specified.
2021/04/16 11:22:15 mmark: failed: ` partial "math.html" . ': open  partial "math.html" . : The filename, directory name, or volume label syntax is incorrect.
2021/04/16 11:22:15 mmark: failed: ` end ': open  end : The system cannot find the file specified.
ERROR 2021/04/16 11:22:15 Failed to get JSON resource "https://api.instagram.com/oembed/?url=https://www.instagram.com/p/BGvuInzyFAe/&maxwidth=640&omitscript=true": Failed to retrieve remote file: Bad Request
If you feel that this should not be logged as an ERROR, you can ignore it by adding this to your site config:
ignoreErrors = ["error-remote-getjson"]

It seems the demo uses the resource https://www.instagram.com/p/BGvuInzyFAe/&maxwidth=640&omitscript=true which seems to not exist anymore.

To make the demo run, follow the instructions suggested by the error log to add

ignoreErrors = ["error-remote-getjson"]

to the config file, although this doesn't fix the actual problem, i don't know from what file that error comes from.

jonathanjanssens commented 2 years ago

Thanks for pointing this out, I've pulled in changes from the official demo repo so this project should build correctly now.