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

How to add menu to custom navigation page ? #1638

Closed
RocStone opened this issue Apr 29, 2017 · 11 comments
Closed

How to add menu to custom navigation page ? #1638

RocStone opened this issue Apr 29, 2017 · 11 comments

Comments

@RocStone
Copy link

RocStone commented Apr 29, 2017

Normal page will get a awesome menu in sidebar like this

urn scniz 0 wq6sl 9v r

But I add a custom navigation page like this

080b2 t_ 33 c qw3c1

And the page at here do not have menu

s usefkt x9mhvcc5mq_zg

Please teach me how to add menu at this custom page.

Thank you for helping me ! Wish you happy every day !

Expected behavior (预期行为)

Actual behavior (实际行为)

Steps to reproduce the behavior (重现步骤)

NexT Information

Add the ✔ sign before an item which is affected by this behavior.

NexT Version:

  • Master
  • Latest Release
  • Old version -

NexT Scheme:

  • All schemes
  • Muse
  • Mist
  • Pisces

Other Information (Like Browser, System, Screenshots)

@RocStone RocStone changed the title Add menu to custom navigation page How to add menu to custom navigation page ? Apr 29, 2017
@ivan-nginx
Copy link
Collaborator

ivan-nginx commented Apr 29, 2017

@RocStone this custom page may add in layout/_custom/sidebar.swig. You can add any html there. See Part 3. Custom layout code how to use it.

If u talking about social links with icons, u may add it simply in config file:

social:
  GitHub: https://github.com/RocStone

Of course, u can add any link you want here:

social:
  AnyName: https://site.com

If issue resolved, close it.

@RocStone
Copy link
Author

@ivan-nginx
i modified _macro/sidebar.swig,
w9smj4sqilbn7rc albzon

and now custom page can get a menu even it is not in the folder of _post
18b w_ 8v94bn _0p zfx q

But it brings another problem.
8 40se 7cpwtwd2_ ok3ex

Menu button is so close to site overview button, i think this is because css doesn't work some how
And when i clike site overview button, it doesn't work.
Yout can try it at here https://rocstone.github.io/chatter/

Thank you so much for helping me !

@ivan-nginx
Copy link
Collaborator

@RocStone what u are doing? I don't understand. U want to appear TOC for Pages too, not only for Posts?

@RocStone
Copy link
Author

RocStone commented Apr 30, 2017

you are right. @ivan-nginx

@ivan-nginx
Copy link
Collaborator

@RocStone for now TOC not work for Pages, only for Posts. But, if u want to do something, u may see on source/js/src folder and post-details.js file. But take care, most of files there are interrelated.

Also, if u can do TOC for Pages, i'll be glad pull request from u.


If issue resolved, close it.

@RocStone
Copy link
Author

RocStone commented May 3, 2017

@ivan-nginx
I can switch now.
w71l wnk g ktk_eq 55 c4
kfqu9 u dj 22h9s2cmz qp
by modify layout/_layout.swig ,I added three lines of code before
9yj g0ip3hnzpjvzklcn169
you can verify it at http://rocstone.github.io/chatter/

but still here is problem, these two labels are too close
m wrwwdrqwtf2qga7g7ai7h
By compare information of two different page in developer mode, i found these
q84 0_ 92 x3xann a8y
8uswmw sujn0hn07ul 55n
So it is so strange, both of the pages have main.css, but second one can't have a padding.

Well, I am very glad to push, but i know nothing of node.js, and i am busy with my undergraduate paper, so i maybe will try it sereral month latter. I appreciate your help. Wish you are always happy and luck.

@ivan-nginx
Copy link
Collaborator

@RocStone issue is solved?

@cogitoxin
Copy link

same problem here and still waiting for answer

@youmofangke
Copy link

反映一个问题,当语句块 行数比较大时(上百),首页的行号会溢出

@RocStone
Copy link
Author

RocStone commented May 5, 2017

@ivan-nginx not solved totally, the as i showed above, there are too close, pretty ugly.

@ivan-nginx
Copy link
Collaborator

@RocStone i mean there is pull feature for this: #1649

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants