doucou19961205 2016-07-05 18:46
浏览 33
已采纳

雨果-多种语言支持错误

I cloned a Hugo project, but when I try to compile it I get errors like this:

function "i18n" not defined

This function is related to multilingual support. I noticed a similar situation happened here, and I tried to follow the fix, which was specified as:

go get github.com/spf13/hugo
cd $GOPATH/src/github.com/spf13/hugo
git remote add abourget git@github.com:abourget/hugo
git checkout -b multilingual abourget/master
go install -v

But this didn't work, because the branch doesn't seem to exist anymore, and I can't find any more comments about it. Does anyone know how this feature might be added?

  • 写回答

2条回答 默认 最新

  • dsbifvcxr458755493 2016-09-11 11:40
    关注

    The multilingual support is now merged into Hugo master, but not yet released. It will be in Hugo 0.17 that will, hopefully, be out in not too long.

    In the meantime, you can build it yourself, and read the documentation at https://github.com/spf13/hugo/blob/master/docs/content/content/multilingual.md

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?