Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare deprecated stuff (post v0.55) #185

Open
divinerites opened this issue Apr 8, 2019 · 2 comments
Open

Prepare deprecated stuff (post v0.55) #185

divinerites opened this issue Apr 8, 2019 · 2 comments

Comments

@divinerites
Copy link

In the soon-to-be-released hugo v0.55 we have some WARNING about deprecated stuff :

  • .URL should be replaced by .Permalink (global, except .URL from shortcut menu obv) - see Tip: Use Permalink/RelPermalink instead of URL #123 too.
  • replace .Hugo.Version by site.Hugo.Version
  • replace .Hugo.Generator by site.Hugo.Generator
  • adapt attachement.html shortcode (wrap {{ with .Page.File }} around .File.BaseFileName)
+	{{ with .Page.File }}
		{{if eq .BaseFileName "_index"}}
			{{$.Scratch.Add "filesName" "files"}}
		{{else}}
			{{$.Scratch.Add "filesName" (printf "%s.files" .BaseFileName)}}
		{{end}}
+	{{ end }}
@xenophenes
Copy link

@divinerites What is the fix for the .File.BaseFileName deprecation errors popping up for header.html and body-aftercontent.html?

{{ range where .Site.Pages "File.BaseFileName" $header }}

&&

{{ range where .Site.Pages "File.BaseFileName" $footer }}

@Marthym
Copy link
Collaborator

Marthym commented Oct 7, 2019

#198 Fix some requirements for 0.55 some others need attention. Help was accepted to fix this theme

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

No branches or pull requests

3 participants