Andy-set-studio / learneleventyfromscratch.com

In this Eleventy course, we go from a completely empty directory to a full-blown marketing site for a design agency, and along the way, we dive really deep into Eleventy and front-end development best practices.
https://learneleventyfromscratch.com/
120 stars 28 forks source link

Nunjucks code snippet not rendered #1

Closed davidwittenbrink closed 2 years ago

davidwittenbrink commented 2 years ago

Hi!

First of all: thanks for the amazing course. I'm currently at Lesson 19 and noticed an inline code snippet that isn't rendered correctly. In this line {{ assetHash }} is not rendered in the HTML output: https://github.com/andy-piccalilli/learneleventyfromscratch.com/blob/c11b053c94bc3922a6ccd52e56744d847147ace6/docs/lesson/19.md#L364

My guess is that VuePress tries to interpret {{ assetHash }}. I don't have any experience with VuePress but I noticed that code snippets are often wrapped in ::: v-pre [ snippet ] ::: blocks. Could it be that this is missing here?

Here is a screenshot of the problem: Screenshot showing that the inline code snippet is not rendered correctly

I will set up the project and see if I can fix this in a PR if you want.

Andy-set-studio commented 2 years ago

Ah yes, I threw those v-pre around in a desperate attempt to get it running. Thanks for the PR—I'll take a look now