mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
24 lines
No EOL
751 B
JavaScript
24 lines
No EOL
751 B
JavaScript
const Header = props => {
|
|
|
|
({Logo, ListContainer, CategoriesList} = Telescope.components);
|
|
|
|
const logoUrl = Telescope.settings.get("logoUrl");
|
|
const siteTitle = Telescope.settings.get("title", "Telescope");
|
|
const tagline = Telescope.settings.get("tagline");
|
|
|
|
return (
|
|
<header className="header">
|
|
<div className="logo">
|
|
<Logo logoUrl={logoUrl} siteTitle={siteTitle} />
|
|
{tagline ? <h2 className="tagline">{tagline}</h2> : "" }
|
|
</div>
|
|
<div className="nav">
|
|
<ListContainer collection={Categories} publication="categories" component={CategoriesList} limit={0}/>
|
|
</div>
|
|
<LogInButtons />
|
|
<a href={FlowRouter.path("postNew")}>New Post</a>
|
|
</header>
|
|
)
|
|
}
|
|
|
|
module.exports = Header; |