Skip to content

Webc file breaking permalink in directory data? #50

Closed
@robjwood

Description

@robjwood

Operating system

Windows 10

Eleventy

@11ty/eleventy@beta

Describe the bug

I'm getting an error in the terminal when I add a .webc file to a '/pages' directory.

Reproduction steps

I have a directory called '/pages/' with .md files inside it. There is a data file in this directory:

{
  "layout": "page.njk",
  "tags": "pages",
  "permalink": "/{{ page.fileSlug }}/"
}

This works fine

BUT

I added a .webc file into that directory with just this markup:

---
layout: base.njk
title: Results
---

I then get the following error in the terminal:

Original error stack trace: TypeError: link.slice is not a function

Has anyone experienced the same thing?

Expected behavior

I would expect the .webc file to render a page relative to the site route, just like the .md files do.

Reproduction URL

No response

Screenshots

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingduplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions