【问题标题】:Hugo warnings for R blogdown with hugo (academic theme): Do I need to do anything?带有雨果(学术主题)的 R 博客的雨果警告:我需要做些什么吗?
【发布时间】:2020-02-19 06:22:07
【问题描述】:

我每次在 blogdown 中构建时都会收到警告

在 RStudio 中,我运行代码:

blogdown::serve_site()

网站呈现正常,但我收到以下警告。

Building sites … WARN 2020/02/19 17:13:53 Page.Hugo is deprecated and will be removed in a future release. Use the global hugo function.
WARN 2020/02/19 17:13:53 Page.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 2020/02/19 17:13:53 .File.TranslationBaseName on zero object. Wrap it in if or with: {{ with .File }}{{ .TranslationBaseName }}{{ end }}
WARN 2020/02/19 17:13:53 Page.Dir is deprecated and will be removed in a future release. Use .File.Dir
WARN 2020/02/19 17:13:53 Page.UniqueID is deprecated and will be removed in a future release. Use .File.UniqueID
WARN 2020/02/19 17:13:54 Page.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

我只是想知道,我是否需要做任何事情,或者这些问题会通过以下方式解决:

  1. R 中的 blogdown 包?或
  2. 雨果学术他们?或
  3. 两者?或
  4. 其他人/事???

谢谢! :)

【问题讨论】:

    标签: r hugo blogdown


    【解决方案1】:

    警告消息的目的是通知您,您的网站正在使用已被或将被弃用并从 Hugo 的未来版本中删除的函数或引用变量。如果它们在从 Hugo 中删除之前没有更改,您的网站可能无法构建。

    现在,回答您的问题:除非您手动编辑了布局文件或更改了 Academic 主题,否则 Academic 的开发人员将(应该)解决这些警告。您需要做的是确保更新主题when new releases are available

    【讨论】:

      猜你喜欢
      • 2018-09-04
      • 1970-01-01
      • 2017-12-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多