Skip to main content

More ChatGPT Magic

Posted on

Tagged : She knows about Nunjucks and 11ty!!


My blog posts almost always have tags, except when they don't. When the posts weren't tagged, the word Tagged in italics appeared in the post anyway. Obviously, I wanted to change that to say No tags as a reminder to me to tag if needed and to not just have an empty line after the word Tagged.

First, I asked ChatGPT how to determine if a Nunjucks collection had members. I got back information, but it wasn't specific enough for my dumb a**. I then posted my code in there and asked her how to determine whether there are any tags. I got back Nunjucks code that worked perfectly.

I want to mention ChatGPT one more time to see how this is styled on the search page.

I would have thought (until a month ago) that Nunjucks coding was pretty esoteric and the big guys wouldn't waste their time adding that to the LLM. But I was wrong.

It's like I've got a great teacher to ask whenever I get stuck on something. So far, I don't think this is a bad thing at all.

ChatGPT