Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

should be of type string #484

Open
lliuhaomin opened this issue Mar 19, 2021 · 4 comments
Open

should be of type string #484

lliuhaomin opened this issue Mar 19, 2021 · 4 comments

Comments

@lliuhaomin
Copy link

Building sites … WARN 2021/03/19 17:13:44 .File.Path on zero object. Wrap it in if or with: {{ with .File }}{{ .Path }}{{ end }}
Built in 368 ms
Error: Error building site: "D:\workResource\workRecode\2021.3.19 hugo\documentation-release-1.22.0\content\docs\1.14\cli.md:13:1": failed to render shortcode "cli/tools-list": failed to process shortcode: "D:\workResource\workRecode\2021.3.19 hugo\documentation-release-1.22.0\themes\jaeger-docs\layouts\shortcodes\cli\tools-list.html:4:15": execute of template failed: template: shortcodes/cli/tools-list.html:4:15: executing "shortcodes/cli/tools-list.html" at <index site.Data.cli $version>: error calling index: value is nil; should be of type string

@yurishkuro
Copy link
Member

Which Hugo version?

@lliuhaomin
Copy link
Author

0.65

image

@yurishkuro
Copy link
Member

Could be Winwows-related, we do not support building docs on Windows.

I tried latest hugo, works fine on Mac:

$ hugo version
hugo v0.82.0+extended darwin/amd64 BuildDate=unknown

$ make develop
HUGO_PREVIEW=true hugo server \
        --buildDrafts \
        --buildFuture \
	--ignoreCache
Start building sites …
WARN 2021/03/21 20:57:33 .File.Path on zero object. Wrap it in if or with: {{ with .File }}{{ .Path }}{{ end }}

                   | EN
-------------------+------
  Pages            | 305
  Paginator pages  |   0
  Non-page files   |   0
  Static files     |  23
  Processed images |   0
  Aliases          |   0
  Sitemaps         |   1
  Cleaned          |   0

Built in 3523 ms
Watching for changes in /jaegertracing/documentation/{content,data,static,themes}
Watching for config changes in /jaegertracing/documentation/config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

@lliuhaomin
Copy link
Author

lliuhaomin commented Mar 23, 2021

Just look at the website effect, we can start it with docker

The command is as follows:

docker run -v $PWD/documentation:/src -p 1313:1313 klakegg/hugo:0.82.0-ext-alpine server --disableFastRender --bind="0.0.0.0" --baseUrl="192.168.0.41"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants