-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
T2hTime Estimate 2 HoursTime Estimate 2 HoursdiscussShare your constructive thoughts on how to make progress with this issueShare your constructive thoughts on how to make progress with this issuedocumentationImprovements or additions to documentationImprovements or additions to documentationelixirPull requests that update Elixir codePull requests that update Elixir codeenhancementNew feature or enhancement of existing functionalityNew feature or enhancement of existing functionalityhelp wantedIf you can help make progress with this issue, please comment!If you can help make progress with this issue, please comment!priority-2Second highest priority, should be worked on as soon as the Priority-1 issues are finishedSecond highest priority, should be worked on as soon as the Priority-1 issues are finishedresearchResearch required; be specificResearch required; be specifictechnicalA technical issue that requires understanding of the code, infrastructure or dependenciesA technical issue that requires understanding of the code, infrastructure or dependencies
Description
When crafting Search Engine friendly URLs e.g. for a website or blog
we need to include as many useful keywords as practical in the URL up to a length limit; e.g: 64 char
If the blog post / page title is "How To Do What You Love And Get Paid?" (37 char)
The slug could be: "how-to-do-what-you-love-and-get-paid"
This is just:
"How To Do What You Love And Get Paid?"
|> String.replace("?", "") # remove question marks from URLs
|> String.downcase() # Use only lowercase letters
|> String.replace(" ", "-")
> "how-to-do-what-you-love-and-get-paid"But there appears to be more to this: (fairly predictably)
https://stackoverflow.com/questions/39394916/how-to-truncate-a-string-in-elixir
So we need to collect all the requirements, and ideally match what Wordpress are doing.
Then write our own function and publish it!
If you're interested in working on this function, please drop a comment. 💬
Metadata
Metadata
Assignees
Labels
T2hTime Estimate 2 HoursTime Estimate 2 HoursdiscussShare your constructive thoughts on how to make progress with this issueShare your constructive thoughts on how to make progress with this issuedocumentationImprovements or additions to documentationImprovements or additions to documentationelixirPull requests that update Elixir codePull requests that update Elixir codeenhancementNew feature or enhancement of existing functionalityNew feature or enhancement of existing functionalityhelp wantedIf you can help make progress with this issue, please comment!If you can help make progress with this issue, please comment!priority-2Second highest priority, should be worked on as soon as the Priority-1 issues are finishedSecond highest priority, should be worked on as soon as the Priority-1 issues are finishedresearchResearch required; be specificResearch required; be specifictechnicalA technical issue that requires understanding of the code, infrastructure or dependenciesA technical issue that requires understanding of the code, infrastructure or dependencies
Type
Projects
Status
No status
Status
More ToDo ThanCanEver Be Done