Skip to content

Permalink not generated from front matter in pug template #286

Closed
@svillegascreative

Description

@svillegascreative

I'm relatively new to Pug, so I may be missing something, but haven't been able to find an answer to this.

I've got a pretty bare-bones project so far, and wrote up a couple of posts using Pug. They've been working fine, until I tried resetting permalinks in the front matter; other front matter values seem to work fine (e.g. layout).

// my-sample-post.pug
---
title: My Sample Post
layout: default
permalink: link
---

p This is some text

Running eleventy in the terminal, I get:

Writing site/<link/> from ./src/my-sample-post.pug

I tried changing the permalink to permalink: link.html, but I get:

Writing site/<link class="html" /> from .src/my-sample-post.pug

So it looks like the permalink is being processed as Pug, not YAML. Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions