Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize the navbar without ejecting the default theme #120

Closed
ghys opened this issue Apr 18, 2018 · 2 comments
Closed

Customize the navbar without ejecting the default theme #120

ghys opened this issue Apr 18, 2018 · 2 comments
Labels
type: feature request Request to add a new feature

Comments

@ghys
Copy link
Contributor

ghys commented Apr 18, 2018

Is there a way to override only the Navbar component and avoid ejecting the default theme?
My case is, I don't want the site's title displayed on the top-left because I have a full-size logo:

<span class="site-name"
v-if="$site.title"
:class="{ 'can-hide': $site.themeConfig.logo }">
{{ $title }}
</span>

...but I'd also like to keep it defined because it appears in <title>. Thanks!

@ulivz ulivz added the type: feature request Request to add a new feature label Apr 18, 2018
@brianjorden
Copy link

One option or borderline workaround could be to inject some CSS of .site-name { display: none; } that could be done via the headers in config.js by importing a tiny CSS file.

@yyx990803
Copy link
Member

You can do that with override.styl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request Request to add a new feature
Projects
None yet
Development

No branches or pull requests

4 participants