luizdepra / hugo-coder

A minimalist blog theme for hugo.
MIT License
2.65k stars 1.05k forks source link

cannot build or serve blog following quickstart instructions #876

Open Denyreal opened 5 months ago

Denyreal commented 5 months ago

Describe the problem:

Hi there. Hope you're doing well. This blog looks amazing thanks to its auhtor and contributos. i wanted to give it a try but i got issues.

Steps to reproduce:

  1. git clone https://github.com/luizdepra/hugo-coder.git
  2. cd hugo-coder
  3. make demo

    Observed Results:

I got an error when :

hugo serve the blog then i can tweak my config.toml settings.

Relevant code exceptions or logs

Note: Please copy/paste text of the messages, no screenshots of logs please.

cd blog.example hugo server --buildDrafts

// hugo server -D --themesDir=../.. --source=exampleSite --bind 0.0.0.0
Start building sites … 
hugo v0.111.3+extended linux/amd64 BuildDate=2023-07-26T00:00:00+00:00 VendorInfo=Fedora:0.111.3-4.fc39
ERROR 2024/01/06 11:50:14 Failed to get JSON resource "https://publish.twitter.com/oembed?dnt=false&url=https%3A%2F%2Ftwitter.com%2FSanDiegoZoo%2Fstatus%2F1453110110599868418": Get "https://publish.twitter.com/oembed?dnt=false&url=https%3A%2F%2Ftwitter.com%2FSanDiegoZoo%2Fstatus%2F1453110110599868418": dial tcp: lookup publish.twitter.com: no such host
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"]
ERROR 2024/01/06 11:50:20 Failed to get JSON resource "https://publish.twitter.com/oembed?dnt=false&url=https%3A%2F%2Ftwitter.com%2FSanDiegoZoo%2Fstatus%2F1453110110599868418": Get "https://publish.twitter.com/oembed?dnt=false&url=https%3A%2F%2Ftwitter.com%2FSanDiegoZoo%2Fstatus%2F1453110110599868418": dial tcp: lookup publish.twitter.com: no such host
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"]
Error: Error building site: logged 2 error(s)
Built in 6035 ms
make: *** [Makefile:9: demo] Error 255
luizdepra commented 5 months ago

It seems the error isn't related to the theme, but to Hugo itself. Try updating your Hugo version. Maybe something related to the Twitter Shortcode is broken.