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

Jekyll Schema should allow arbitrary paths in any permalink #3483

Closed
kohlschuetter opened this issue Dec 27, 2023 · 1 comment · Fixed by #3484
Closed

Jekyll Schema should allow arbitrary paths in any permalink #3483

kohlschuetter opened this issue Dec 27, 2023 · 1 comment · Fixed by #3484
Labels
issue:bug Report errors or unexpected behavior (auto-generated by issue forms)

Comments

@kohlschuetter
Copy link
Contributor

kohlschuetter commented Dec 27, 2023

Area with issue?

JSON Schema

✔️ Expected Behavior

All permalinks should be supported

❌ Actual Behavior

Error:
String does not match the pattern of "^((/(:(year|short_year|month|i_month|short_month|long_month|day|i_day|y_day|w_year|week|w_day|short_day|long_day|hour|minute|second|title|slug|categories|slugified_categories|output_ext))+)+|date|pretty|ordinal|weekdate|none)(/?)$".

YAML or JSON file that does not work.

in _config.yml (for jekyll)

defaults:
  - scope:
      path: ''          # An empty string here means all files in the project
      type: posts
    values:
      layout: post
      comments: true    # Enable comments in posts.
      toc: true         # Display TOC column in posts.
      # DO NOT modify the following parameter unless you are confident enough
      # to update the code of all other post links in this project.
      #permalink: /posts/:title/
      permalink: /posts/:year/:month/:day/:title/

IDE or code editor.

Other

Are you making a PR for this?

Yes, I will create a PR.

@kohlschuetter kohlschuetter added the issue:bug Report errors or unexpected behavior (auto-generated by issue forms) label Dec 27, 2023
@kohlschuetter
Copy link
Contributor Author

kohlschuetter added a commit to kohlschuetter/schemastore that referenced this issue Dec 27, 2023
Allow "global" permalinks to contain arbitrary prefixes, such that
/posts/:year/:month/:day/:title/ is considered valid.
github-actions bot pushed a commit that referenced this issue Dec 29, 2023
Co-authored-by: madskristensen <madskristensen@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue:bug Report errors or unexpected behavior (auto-generated by issue forms)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant