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

ymlfront doesn't delete from $pagestate{$page}{ymlfront} #4

Open
jcflack opened this issue Oct 2, 2014 · 0 comments
Open

ymlfront doesn't delete from $pagestate{$page}{ymlfront} #4

jcflack opened this issue Oct 2, 2014 · 0 comments

Comments

@jcflack
Copy link

jcflack commented Oct 2, 2014

So, if a page has some YAML fields and you change some and delete some, refreshing the wiki shows the changed ones changed but the deleted ones are still there unless the wiki is fully rebuilt.

Seems to me scan() should just empty out $pagestate{$page}{ymlfront} entirely before parsing.

Also (this may not be exactly the same issue, but) I've noticed that after simply changing a YAML field, a simple refresh doesn't always seem to update the corresponding .html file. That is, ikiwiki logs 'building foo.mdwn' but even so, foo.html still has the old value (while pages it is inlined into may show the new value!).

Could this be the result of some optimization where ikiwiki detects that the page content (left after ymlfront strips out the YAML) hasn't changed? Does ymlfront need to do something more so that page regeneration is forced?

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

No branches or pull requests

1 participant