LeaveIt icon indicating copy to clipboard operation
LeaveIt copied to clipboard

Added support for Hugo 0.55

Open mogeko opened this issue 6 years ago • 3 comments

在 0.55 后版本的 Hugo 中 RSS 无法使用,并且在编译时会有如下警告

WARN 2019/06/06 18:06:29 Page's .RSSLink is deprecated and will be removed in a future release. Use the Output Format's link, e.g. something like: 
    {{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}.
WARN 2019/06/06 18:06:29 Page's .URL is deprecated and will be removed in a future release. Use .Permalink or .RelPermalink. If what you want is the front matter URL value, use .Params.url.'

按照他的提示修复了相关功能

mogeko avatar Jun 06 '19 10:06 mogeko

你好,谢谢你的修复,但是我按你的提交修改后还是会出现.url的警告 Page's .URL is deprecated and will be removed in a future release. Use .Permalink or .RelPermalink. If what you want is the front matter URL value, use .Params.url.

不知道是不是除了你提交的3个文件外还有其他地方需要修改?

HuaienYao avatar Jul 29 '19 06:07 HuaienYao

你好,谢谢你的修复,但是我按你的提交修改后还是会出现.url的警告 Page's .URL is deprecated and will be removed in a future release. Use .Permalink or .RelPermalink. If what you want is the front matter URL value, use .Params.url.

不知道是不是除了你提交的3个文件外还有其他地方需要修改?

你好,我在新的文件夹中 clone 了我提交 PR 的那个分支,然后运行 hugo,没有出现你说的情况

深度截图_选择区域_20190729152602

我的 Hugo 版本是 v0.55.6/extended

mogeko avatar Jul 29 '19 07:07 mogeko

你好,谢谢你的修复,但是我按你的提交修改后还是会出现.url的警告 Page's .URL is deprecated and will be removed in a future release. Use .Permalink or .RelPermalink. If what you want is the front matter URL value, use .Params.url. 不知道是不是除了你提交的3个文件外还有其他地方需要修改?

你好,我在新的文件夹中 clone 了我提交 PR 的那个分支,然后运行 hugo,没有出现你说的情况

深度截图_选择区域_20190729152602

我的 Hugo 版本是 v0.55.6/extended

谢谢答复,可能是我的文章front matter里面有用到自定义url的原因。我再试试看看,谢谢

HuaienYao avatar Jul 29 '19 08:07 HuaienYao