Skip to content

Suffix support? #45

Description

@hakunin

Hi, it would be nice if there was a global suffix support.

This is how I imagine it could work API-wise:

Root level, producing MyApp.

<DocumentTitle title="null" suffix="MyApp" separator=" | ">
 ...
</DocumentTitle>

Inside a specific page, producing Index | MyApp.

<DocumentTitle title="null" suffix="MyApp" separator=" | ">
   <DocumentTitle title="Index">...<DocumentTitle>
</DocumentTitle>

There could be also custom format function for those who need more power:

<DocumentTitle title="null" format={(value) => value ? value+' | MyApp' : 'MyApp'}>
   ...
</DocumentTitle>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions