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

index.pug file changes not being written on index.html in --serve mode #35

Closed
silviajoy opened this issue Feb 4, 2021 · 2 comments
Closed

Comments

@silviajoy
Copy link

silviajoy commented Feb 4, 2021

I have this folder structure:

_dist
_includes
	head.pug
config.js
index.pug
pug.pug

I noticed that changes made to the pug.pug file are detected and also written on _dest/pug/index.html, while changes made to index.pug file are detected, but not actually written on _dest/index.html file

_config.js:

import lume from "https://deno.land/x/lume@v0.14.0/mod.js";
import pug from "https://deno.land/x/lume/plugins/pug.js";

const site = lume({
    dest: "_dist",
    prettyurls: true,
  });
site.use(pug());

export default site;

index.pug:

//- index.pug
doctype html
html
  include _includes/head.pug
  body
    h1 My Site!
    p Welcome to my super lame site!

pug.pug:

//- pug.pug
doctype html
html
  include _includes/head.pug
  body
    h1 Pug

_includes/head.pug

head
    title Hello Pug

P.S.
I noticed everything works just fine if the index is a markdown file, the problem gets out only on index.pug file

@silviajoy silviajoy changed the title index.pug file not being written on index.html in --serve mode index.pug file changes not being written on index.html in --serve mode Feb 4, 2021
@oscarotero
Copy link
Member

oscarotero commented Feb 4, 2021

Hi.
It looks like the pug plugin is from a different version. Could you try to import the same version of the pug plugin?
In _config.js, instead:

import pug from "https://deno.land/x/lume/plugins/pug.js";

change to

import pug from "https://deno.land/x/lume@0.14.0/plugins/pug.js";

you can do it automatically running lume update.

Anyway, I need to make some changes to ensure that different plugins versions can work together. Thanks for notify this.

@oscarotero
Copy link
Member

I just released v0.15 that should fix this bug. To update your project:

lume upgrade
lume update

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