vienna
vienna copied to clipboard
.URL deprecated,and .RSSLink deprecated on v 0.55
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 Thanks! Is this backward compatible?
Helloi @keichi let me check again for yours. How far back do you need it?
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.
The RSS link in the header seems to be broken. Can you take a look?
The RSS link in the header seems to be broken
I'll check it
@keichi double check the RSS for me. Thanks. Can't believe I missed that one.
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