Skip to content

Inconsistent reloading of site on updating frontmatter  #1001

@yash-chowdhary

Description

@yash-chowdhary
  • MarkBind Version:
    MarkBind 2.9.1

What did you do? Please include the actual source code causing the issue.

  • Created a MarkBind site using the default template: markbind init --template default
  • Edited index.md to use the default layout on that page by replacing header: header.md with layout: default.
  • Executed markbind serve
  • index.html w/o header live-reloads correctly.
  • Replaced default layout(layout: default) with header in frontmatter (header: header.md)
  • index.html live-reloads with the header, as expected
  • Retried using the default layout on that page by replacing header: header.md with layout: default

(same results with footer: footer.md)

<frontmatter>
  layout: default
  pageNav: 2
  pageNavTitle: "Chapters of This Page"
  siteNav: site-nav.md
</frontmatter>

What did you expect to happen?
The default layout to take over and the original header/footer in header.md/footer.md to not take effect.

What actually happened? Please include the actual, raw output.
The header/footer doesn't get removed.
However, if I disconnect the sever and re-run markbind build / markbind serve, the change is reflected i.e. the default layout is rendered instead of the header in header.md.

If this behaviour is intentional, perhaps we can document it under Frontmatter or Page Layouts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions