Thinkmill / Thinkmill/keystatic

Pass the whole object to the `generate` property of a slug field

Open
#1,076 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
2.4k
Forks
159
Avg merge
21h 41m
Merged PRs (30d)
2

Description

Hey! Awesome product and tool. Really. Great job. I will consider donating a few coffees later on :)

As for the feature request, I think it would be nice if we could generate an entry's slug based on all its fields (language, for example). It should be fairly easy to implement.

Thanks!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the repository for the slug field and its generate property, then inspect how the current value is passed to generation. Check for existing slug-related tests or examples and determine how the full entry object should be exposed for fields such as language. Done means a slug can be generated from more than the current field value without breaking existing usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
content
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.