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.

Home Page:https://learneleventyfromscratch.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nunjucks code snippet not rendered

davidwittenbrink opened this issue · comments

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.

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