laozhu / hugo-nuo

🎨 A responsive light & clean hugo theme for blogger.
https://laozhu.me
MIT License
427 stars 150 forks source link

the tweet shortcode cann't work #139

Open wangjiaxuan666 opened 5 years ago

wangjiaxuan666 commented 5 years ago

I write a markdown which has the line code {{< tweet 1162763799960739841 >}} but i recieve the warning, it didn't work

salmanulfarzy commented 5 years ago

Could you please share your log ?

wangjiaxuan666 commented 5 years ago

Thank you very much This is the situation of my problem:

when I insert the shortcode {{< tweet 1162763799960739841 >}}in the bolg post, the error message.

the message is

> blogdown:::serve_site()
Building sites 鈥?WARN 2019/08/29 17:20:03 Page's .Hugo is deprecated and will be removed in a future release. Use the global hugo function.
WARN 2019/08/29 17:20:03 make non-relative ref/relref page reference(s) in page %q absolute, e.g. {{< ref "/blog/my-post.md" >}}
Total in 10076 ms
Error: Error building site: "D:\myweb2\nuo\content\post\2019-08-17-the-scrna-sequence-analysis-pipe-and-theory.md:1:1": timed out initializing value. This is most likely a circular loop in a shortcode
Building sites 鈥?WARN 2019/08/29 17:20:13 Page's .Hugo is deprecated and will be removed in a future release. Use the global hugo function.
WARN 2019/08/29 17:20:13 make non-relative ref/relref page reference(s) in page %q absolute, e.g. {{< ref "/blog/my-post.md" >}}
ERROR 2019/08/29 17:20:14 Failed to get JSON resource "https://api.twitter.com/1/statuses/oembed.json?id=1162763799960739841&dnt=false": Get https://api.twitter.com/1/statuses/oembed.json?id=1162763799960739841&dnt=false: dial tcp 31.13.72.54:443: connectex: No connection could be made because the target machine actively refused it.
Total in 11457 ms
Error: Error building site: "D:\myweb2\nuo\content\post\2019-08-17-the-scrna-sequence-analysis-pipe-and-theory.md:1:1": timed out initializing value. This is most likely a circular loop in a shortcode
系统找不到指定的路径。
Error in shell(cmd, mustWork = TRUE, intern = intern) : 
  '"C:\Users\woney\AppData\Roaming\Hugo\hugo.exe" -b / -D -F -d "public" --themesDir themes -t hugo-nuo' execution failed with error code 1

BUT, when i delete the shortcode {{< tweet 1162763799960739841 >}}, the hugo creat website successfully. this is message:

> blogdown:::serve_site()
Building sites 鈥?WARN 2019/08/29 17:21:03 Page's .Hugo is deprecated and will be removed in a future release. Use the global hugo function.
WARN 2019/08/29 17:21:03 make non-relative ref/relref page reference(s) in page %q absolute, e.g. {{< ref "/blog/my-post.md" >}}

                   | EN   
+------------------+-----+
  Pages            |  58  
  Paginator pages  |   2  
  Non-page files   |  12  
  Static files     | 165  
  Processed images |   0  
  Aliases          |  12  
  Sitemaps         |   1  
  Cleaned          |   0  

Total in 275 ms
To stop the server, run servr::daemon_stop(1) or restart your R session
Serving the directory D:\myweb2\nuo at http://127.0.0.1:4321

I didn't change the tweet shortcode , maybe , I want to view it but i can't where the tweet shortcode hide.