slug

From IndieWeb


A slug is a series of words in a permalink URL, usually at the end, that are from or representative of the name or text of a post, and thus part of an overall URL design. Slugs are often automatically generated based on the post name, replacing spaces with hyphens and accented characters with English alphabet characters, sometimes edited by the author.

Generally this article needs to be expanded with material from URL_design#Topic, and leave behind summaries in-place there.

Why

You should use good optional slugs in your permalinks because URLs are part of the user interface (UI).

As long as people share URLs in plain text communications (which is likely forever), URLs are a part of the language people read, and thus adding relevant or key words to a permalink helps the reader decide whether a link is worth viewing or not.

Why optional

All slugs SHOULD only be optional for the reader/browser, or why slugs MUST NOT be a required part of your permalinks:

How

See: URL_design#Topic and use it to expand this section with how to tips.

How not to

IndieWeb Examples

Add yourself!

Add yourself hereโ€ฆ (see this for more details)

Software Examples

  • WordPress creates a slug automatically but lets you edit it.

Other Examples

Interesting illustrative examples from other sites.

Brainstorming

See Also