Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add explicit permalink/canonical url to front matter #15

Open
lidel opened this issue May 9, 2023 · 1 comment
Open

Add explicit permalink/canonical url to front matter #15

lidel opened this issue May 9, 2023 · 1 comment

Comments

@lidel
Copy link
Member

lidel commented May 9, 2023

As per verbal with @hacdias we want to have explicit URL of the spec in the front matter, and then have generator use the URL.pathname during generation, instead of the directory name.

Goal is to ensure spec URLs never change https://www.w3.org/Provider/Style/URI

@hacdias
Copy link
Member

hacdias commented May 11, 2023

We can already do that, but we cannot include the domain name AFAIK: https://www.11ty.dev/docs/permalinks/. I see two options:

a. Use Eleventy's default to only put the path.
b. Try to customize spec-generator such that it is able of stripping the domain from the permalink.

In either case we probably want spec-generator to scream at you if it's missing in order to enforce explicit permalinks. I don't necessarily see the benefit of including the domain on the frontmatter.

@hacdias hacdias removed their assignment Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: 🥞 Todo
Development

No branches or pull requests

2 participants