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

Unable to disable sidebar with Gemini #630

Closed
JOduMonT opened this issue Feb 26, 2019 · 7 comments
Closed

Unable to disable sidebar with Gemini #630

JOduMonT opened this issue Feb 26, 2019 · 7 comments
Labels

Comments

@JOduMonT
Copy link

I saw #3421 and @ivan-nginx kindly respond to my question here
but I still going through the issue

Expected

Having a single column page with Gemini Scheme when my header have : sidebar: false

---
layout: page
title: Title of this Page
sidebar: false
---

Current result

I still have a 2column page even I declare sidebar: false in the header of my page


  1. Do Gemini Scheme support sidebar: false ?
  2. What I'm missing ?
@stevenjoezhang
Copy link
Contributor

Nope, sidebar option in front matter is not supported

@ivan-nginx
Copy link
Member

ivan-nginx commented Feb 26, 2019

@stevenjoezhang #93
@JOduMonT i think it's because layout: page. Only for posts maybe this option support for now.

@JOduMonT
Copy link
Author

Non of these works ;(

---
layout: page
title: Title of this Page
sidebar: false
---
---
layout: post
title: Title of this Post
sidebar: false
---
---
title: Title of this Post
sidebar: false
---

It's might simply not my day

@ivan-nginx
Copy link
Member

Oh, actually this option not for show or hide sidebar. It's for Muse/Mist shemes to produce automatically slide-in/slide-out sidebar when post will opened. Detailed description here: #93 (comment)
It's for this setting:

hexo-theme-next/_config.yml

Lines 247 to 252 in 6128602

# Sidebar Display, available values (only for Muse | Mist):
# - post expand on posts automatically. Default.
# - always expand for all pages automatically.
# - hide expand only when click on the sidebar toggle icon.
# - remove totally remove sidebar including sidebar toggle.
display: post

But i think we can add just show/hide sidebar on Pisces/Gemini shemes with same option.


I only don't understand why u want not to show sidebar on specified page?

@JOduMonT
Copy link
Author

oh, to make kind of landing page
since the concept of landing page is to minimize the distraction and to bring the user to make a specific action, the sidebar act as a distraction

@stevenjoezhang
Copy link
Contributor

@JOduMonT Add this to your markdown file:

<style>.sidebar-inner { display: none !important; }</style>

@ivan-nginx ivan-nginx changed the title unable to disable sidebar with Gemini Unable to disable sidebar with Gemini Mar 17, 2019
@lock
Copy link

lock bot commented Mar 17, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Mar 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants