-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
How to disable sidebar for a folder or single page? [solved] #92
Comments
Don't underatand u: how to disable sidebar from data? |
@ivan-nginx Disable sidebar for a single folder or page, such as In this case http://blog.eson.org/games/2048/ . I want to disable sidebar for all pages under |
how about |
@sli1989 |
@xu-song sorry for the misleading. you can see the above PR. |
sorry, what PR stands for? @sli1989 The following is my heading config in ---
sidebar: false
---
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>2048</title> @sli1989 My Hexo and NexT are Latest Master branch. |
Pull Request, you can try to know it using google search. |
@xu-song It has not been merged into the latest branch yet, please take a wait. |
@tsanie Thanks for your prompt reply. Your commit truly works for markdown file. But it does not work for html. Can u take another commit if possible.
---
sidebar: false
---
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>2048</title> |
Wait, which html, do you mean that you've written the html file in the Please use the And you can surround the html tags by using |
Is there a special render for html? Or It works now. Just the same config as |
If there is no more problem, please close this issue. |
Is there a god way to customize subfolder configuration? like ----update blog/─┬─_config.yml # hexo config
├─theme───next
│ ├──_config.yml # theme config -- main
│
├─source/
├── _post/
├── folderA
│ ├── _config.yml # theme config -- overwrite main_config
│ ├── a.md
│ ├── folderB
│ └── b.md
│
├── folderB
│ ├── _config.yml # theme config -- overwrite main_config We can put the following config in
Maybe it is a bit complicated. |
Sorry, I cannot quite understand what's your meaning. Could you give some detail examples? |
@xu-song Yeah, it is a bit complicated, and it should be a feature of Hexo. Maybe you can ask Hexo for the question. |
@xu-song can u explain why u need this? In short words. For example: i want this feature because i need to... |
|
Customize what? |
just like you If you ask me why need The above schema is just one choice of batch_configuration, surely not the best. But batch_config is better than config one by one. |
I asking u because i think there are all already can be customized. I just don't understand what exactly u need to customize. For example, i want 2 different sites with 2 different Hexo & NexT configs to work under 1 Hexo
|
I think I have express my need clearly. If not , you can read again. And I don't like your style @ivan-nginx If user's desired pattern conflicts with your roadmap, u can argue. |
We can put the following config in
No, we not put the following into theme config because it must be write in post's front-matter which must generate Hexo.
Maybe. Or maybe not. U firstly ask for hide sidebar feature (and i still in shocked why it can be need) and this feature was added. Issue will be closed due already implemented feature in the head. |
You prefer 500 posts with 500 heading. Okay
or
or
.... |
And u prefer 500 posts with 500 configs?) |
In many cases, 1-5 batch_configuration works. |
Wow! I see now. Let explain situation:
I don't see any logic. Go as another corner: U want to see sidebar or not want? U need sidebar? If u need, turn it on and all be done. And u just now talking something about: i want sidebar, but don't need it on 25% in my site pages, right? So, u can disable sidebar for pages and use pages as this 25% of your posts. And else exists some plugins to customize (add) other types insted of
Yeah, i write this comment while u just added your 1 explain, something like «Is there a god way to customize subfolder configuration?». You know, God customization can do only by God, because he's God, i think. We are not Gods here and can't to do special for u all of u need and wish, for free. Again: this feature in this key hard to implement right now. But i see what u mean and in generally this good (not god) idea and will be backloged in our simple peoples heads. 😄 |
thanks |
I agree and want to create new issue
Expected behavior
disable sidebar in some folder or single page
Actual behavior
sidebar is enable in all pages
Steps to reproduce the behavior
Node.js and NPM Information
Hexo Information
Hexo version
NexT Information
NexT Version:
NexT Scheme:
NexT Configuration:
Other Information
aa
The text was updated successfully, but these errors were encountered: