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

Changes in Pug layout files not updating (with lume --serve) #39

Closed
jaymakes11 opened this issue Feb 16, 2021 · 2 comments
Closed

Changes in Pug layout files not updating (with lume --serve) #39

jaymakes11 opened this issue Feb 16, 2021 · 2 comments
Assignees

Comments

@jaymakes11
Copy link

jaymakes11 commented Feb 16, 2021

Example:

//- _layout.pug

html.no-js(lang="en")
   head
      meta(charset='utf-8')
   body
      div A message from `_layout.pug`
      block pageContent


//- home.pug

extends _layout.pug
block pageContent
   h1 Home

Making a change in home.pug triggers an update. Making a change in _layout.pug does not trigger an update.

When making a change in _layout.pug, the cli does say "Changes detected. Building... Done", but the browser does not reload and Lume doesn't seem to actually rebuild (manually reloading the browser does not show the update).

@oscarotero
Copy link
Member

Mmm, ok. Looks like pug caches the layouts loaded with extends. I'll try to fix it.
Meanwhile, you can use a frontmatter to configure your layout. Look this example: https://github.com/lumeland/test/blob/master/pug/pug-example.pug

@oscarotero oscarotero self-assigned this Feb 16, 2021
oscarotero added a commit that referenced this issue Feb 21, 2021
@oscarotero
Copy link
Member

Ok, this bug is fixed in 0.15.1.

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

2 participants