cloudfour / drizzle

A streamlined tool for developing, documenting and presenting UI pattern libraries.
https://cloudfour.com/thinks/introducing-drizzle/
MIT License
666 stars 32 forks source link

Page titles should have defaults #11

Closed tylersticka closed 8 years ago

tylersticka commented 8 years ago

If {{title}} is undefined, we should use the current collection title, or fall back to the project title. It might also be nice to have the project name appended to the title anyway.

Examples

"Drizzle" represents the project name...

<!-- If {{title}} is defined: -->
<title>Overview - Drizzle</title>

<!-- Else if collection title is defined: -->
<title>Button - Drizzle</title>

<!-- Else: -->
<title>Drizzle</title>
gerardo-rodriguez commented 8 years ago

"Drizzle" represents the project name...

I'm assuming the project name is dynamic and accessible as part of the data?

tylersticka commented 8 years ago

I'm assuming the project name is dynamic and accessible as part of the data?

I'm honestly not sure! If it isn't, then it probably should be. But that may be a separate issue. Probably not the end of the world if this is baked into the template.