Skip to content

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

@jcflack

Description

@jcflack

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions