taikii / whiteplain

Simple and Functional Hugo theme.
https://themes.gohugo.io/whiteplain/
MIT License
132 stars 44 forks source link

use global hugo function, url deprecated, rsslink deprecated #21

Closed nonumeros closed 5 years ago

nonumeros commented 5 years ago

The hugo dev team modified quite a few things with version 0.55

Page's .Hugo is deprecated and will be removed in a future release. Use the global hugo function.

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.

and

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 }}.

the last one is tricky, but don't despair, this pull request fixes it all of them for you. :)

one important thing to remember, v 0.55 parted considerably from v 0.54

taikii commented 5 years ago

@nonumeros Thanks great PR! I modified only a part of RSS.

nonumeros commented 5 years ago

Thanks great PR!

You're welcome

I modified only a part of RSS.

Excellent. Way to go!