Skip to content

Conversation

@mogeko
Copy link

@mogeko mogeko commented Jun 6, 2019

在 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.'

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

@HuaienYao
Copy link

你好,谢谢你的修复,但是我按你的提交修改后还是会出现.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个文件外还有其他地方需要修改?

@mogeko
Copy link
Author

mogeko commented Jul 29, 2019

你好,谢谢你的修复,但是我按你的提交修改后还是会出现.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

@HuaienYao
Copy link

你好,谢谢你的修复,但是我按你的提交修改后还是会出现.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的原因。我再试试看看,谢谢

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants