vienna icon indicating copy to clipboard operation
vienna copied to clipboard

.URL deprecated,and .RSSLink deprecated on v 0.55

Open nonumeros opened this issue 5 years ago • 7 comments

There are quite a few changes coming up with hugo v 0.55

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.

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

this pull request fixes it for you. I just tested your theme and it's working.

nonumeros avatar Apr 12 '19 07:04 nonumeros

@nonumeros Thanks! Is this backward compatible?

keichi avatar Apr 17 '19 00:04 keichi

Helloi @keichi let me check again for yours. How far back do you need it?

nonumeros avatar Apr 17 '19 03:04 nonumeros

Hey, it's fine if it only works with v0.55. I just want to clarify the minimum required version of hugo in README and theme.toml.

keichi avatar Apr 17 '19 03:04 keichi

The RSS link in the header seems to be broken. Can you take a look?

keichi avatar Apr 17 '19 04:04 keichi

The RSS link in the header seems to be broken

I'll check it

nonumeros avatar Apr 17 '19 06:04 nonumeros

@keichi double check the RSS for me. Thanks. Can't believe I missed that one.

nonumeros avatar Apr 17 '19 08:04 nonumeros

the <a href attribute for the RSS is the tricky part.

But see for example https://github.com/Lednerb/bilberry-hugo-theme/blob/master/exampleSite/config.toml

in which he @lednerb already specified the parameters on the config file from the exampleSite

 [outputs]
    home = [ "HTML", "JSON", "RSS" ]

Anything else @keichi for his use case to have RSS on the site, such as .OutputGetFormats.Get blah blah is superfluous. Of course, one can still have it in place

nonumeros avatar Apr 17 '19 16:04 nonumeros