CaiJimmy / hugo-theme-stack-starter

A quickstart template to create a Hugo blog using hugo-theme-stack
https://demo.stack.jimmycai.com
MIT License
308 stars 104 forks source link

workflows failed to build site with this error occurs. #7

Closed rafidalhaque closed 1 year ago

rafidalhaque commented 1 year ago

workflows failed to build site with this error occurs.

Run hugo --minify --gc
  hugo --minify --gc
  shell: /usr/bin/bash -e {0}
  env:
    GOROOT: /opt/hostedtoolcache/go/1.18.3/x64
hugo: collected modules in 798 ms
Start building sites … 
hugo v0.101.0-466fa43c16709b4483689930a4f9ac8add5c9f66+extended linux/amd64 BuildDate=2022-06-16T07:09:16Z VendorInfo=gohugoio
ERROR 2022/07/17 08:57:05 Failed loading avatar from map["enabled":%!q(bool=true) "local":%!q(bool=true) "src":"static/img/avatar.svg"]
Error: Error building site: logged 1 error(s)
Total in 1172 ms
Error: Process completed with exit code 255.

repo: https://github.com/rafidalhaque/rafidalhaque.github.io

CaiJimmy commented 1 year ago
ERROR 2022/07/17 08:57:05 Failed loading avatar from map["enabled":%!q(bool=true) "local":%!q(bool=true) "src":"static/img/avatar.svg"]

Set avatar.local to false. Files placed under the static folder is not considered local file since they can not be accessed by resource object.

CaiJimmy commented 1 year ago

Or put avatar file to assets/img/avatar.jpg and set src to img/avatar.jpg

rafidalhaque commented 1 year ago

Thanks