Skip to content

Docker 経由で Hugo new するとエラーが出る(Hugo のバージョン?) #39

@ikngtty

Description

@ikngtty

エラー発生手順

README 通りに進んで以下を実行。

$ docker run --rm -v $(pwd):/app geek-space-blog hugo new ${type}/${title}.md

エラー内容

ERROR 2020/03/31 13:03:01 Current theme does not support Hugo version 0.40.1. Minimum version required is 0.46
ERROR 2020/03/31 13:03:01 Failed to add template "theme/404.html" in path "/app/themes/bilberry-hugo-theme/layouts/404.html": template: /app/themes/bilberry-hugo-theme/layouts/404.html:33: function "hugo" not defined
ERROR 2020/03/31 13:03:01 Failed to add template "theme/_default/author.terms.html" in path "/app/themes/bilberry-hugo-theme/layouts/_default/author.terms.html": template: /app/themes/bilberry-hugo-theme/layouts/_default/author.terms.html:33: function "hugo" not defined
ERROR 2020/03/31 13:03:01 Failed to add template "theme/_default/category.terms.html" in path "/app/themes/bilberry-hugo-theme/layouts/_default/category.terms.html": template: /app/themes/bilberry-hugo-theme/layouts/_default/category.terms.html:33: function "hugo" not defined
ERROR 2020/03/31 13:03:01 Failed to add template "theme/_default/list.html" in path "/app/themes/bilberry-hugo-theme/layouts/_default/list.html": template: /app/themes/bilberry-hugo-theme/layouts/_default/list.html:33: function "hugo" not defined
ERROR 2020/03/31 13:03:01 Failed to add template "theme/_default/single.html" in path "/app/themes/bilberry-hugo-theme/layouts/_default/single.html": template: /app/themes/bilberry-hugo-theme/layouts/_default/single.html:33: function "hugo" not defined
ERROR 2020/03/31 13:03:01 Failed to add template "theme/_default/tag.terms.html" in path "/app/themes/bilberry-hugo-theme/layouts/_default/tag.terms.html": template: /app/themes/bilberry-hugo-theme/layouts/_default/tag.terms.html:33: function "hugo" not defined
ERROR 2020/03/31 13:03:01 Failed to add template "theme/index.html" in path "/app/themes/bilberry-hugo-theme/layouts/index.html": template: /app/themes/bilberry-hugo-theme/layouts/index.html:33: function "hugo" not defined
ERROR 2020/03/31 13:03:01 Failed to add template "_text/theme/index.json" in path "/app/themes/bilberry-hugo-theme/layouts/index.json": template: theme/index.json:19: unexpected "=" in operand
ERROR 2020/03/31 13:03:02 _text/theme/index.json : template: theme/index.json:19: unexpected "=" in operand
/app/content/article/the-strongest-programming-language.md created

なんか Hugo のバージョンがどうこう言ってる。

困ること

エラーが発生しつつも目的のマークダウンは生成されるので、記事作成者としては特にない。
なんか怖いだけ。

「記事の出来を確認したい -> 手元で動かそう」って人がいた時に、このせいで動かなくなるかも(未確認)。

デプロイ環境は Docker 使ってないので関係ない?(@peacock0803sz に要確認)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions