Open Eevoo opened 5 years ago
Wintersmith has adopted the jade-->pug name change; in some cases IIRC it looks for .jade and .pug extensions and treats them the same, but I have not recently looked through the source.
However, I can tell you that changing 'article.jade' to 'article.pug' on your test article (in the line specifying the template) fixed this issue for me, and AFAIK all future templates should use .pug as the file extension.
If you have a bash-like terminal, you can quickly change this in your contents folder using find and sed like so:
find contents -type f -exec sed -i '/template:/s/\.jade/.pug/' {} \;
You can also take care of any remaining .jade extensions in your templates with:
find templates/ -type f -iname "*.jade" | sed 's|\([^ ]\+\).jade|\1.jade \1.pug|g' | xargs -n2 mv
I recommend keeping your work in git and branching before making these changes, just in case something unsupported in these commands in your CLI borks your work, so you can undo them easily if necessary.
If you have a small site, doing it by hand is of course easy enough.
I probably missed some communication but it seems updating Wintersmith from 2.4.1 to 2.5.0 breaks builds/previews for existing articles. For example, I have an article that begins with the following sample text:
When I attempt to preview the site with articles like that, the local server starts and runs, but when I attempt to view one of the pages, I get the following error:
My searching the internet failed, along with my spot checking of some github issues. Any suggestions on changes to make to the markdown files and/or wintersmith config that can make this happy?
Thanks for any advice you can provide!