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

fix templates compatibility #20

Closed
fuxiaohei opened this Issue Mar 2, 2016 · 4 comments

Comments

Projects
None yet
1 participant
@fuxiaohei
Member

fuxiaohei commented Mar 2, 2016

make sure 0.9.0 and 0.8.x template runnable

  • check global vars
  • fix template functions
  • list changes

@fuxiaohei fuxiaohei added this to the 0.9.11 milestone Mar 2, 2016

@fuxiaohei

This comment has been minimized.

Member

fuxiaohei commented Mar 4, 2016

incompatible changes


static path

changestatic/xxx to /xxx

nav hover status

old

{{range .Nav}}
    {{.IsHover}}is hovered{{end}}
{{end}}

new, use $.Hover to get global hover flag

{{range .Nav}}
    {{eq .Hover $.Hover}}is hovered{{end}}
{{end}}
@fuxiaohei

This comment has been minimized.

Member

fuxiaohei commented Mar 4, 2016

incompatible changes


URL field

*Post.Url & *Page.Url change to *Post.URL & *Page.URL

same to *Post.Author.Url(URL), *Page.Author.Url(URL)

same to *Pager.PrevUrl(PrevURL) and *Pager.NextUrl(URL)

@fuxiaohei

This comment has been minimized.

Member

fuxiaohei commented Mar 4, 2016

incompatible changes


Comment

old

{{.Comment.Disqus.Site}}

new

{{.Comment.Disqus}}
@fuxiaohei

This comment has been minimized.

Member

fuxiaohei commented Mar 6, 2016

9e238be

fix all

@fuxiaohei fuxiaohei closed this Mar 6, 2016

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