-
Notifications
You must be signed in to change notification settings - Fork 39
How to get nice menu at top #21
Comments
So, there are a variety of ways you could make a menu. You can see that I include a "menu" of sorts by AJAX loading in the "footer.html" file and appending it to the bottom of the post. However, |
Yes, I want to build the menu manually, that's ok. I tried shifting the footer to the top and now it works fine unlike the previous version, thanks.
That makes it fixed doesn't it. Is it possible to use a generic html/css template somehow with the above code? Forgive me if it's a silly question, I'm not a coder but I sure would like to solve this question because you've got a great project here. |
If you change it to this:
You could load additional menus by adding another line like this: https://github.com/Xeoncross/jr/blob/master/js/jr.js#L170
|
I'll look into setting a config value to load additional menu/block sections. This is a good idea. |
I added a "block" config section to the |
Thanks for doing this! What if I want a 2 or 3 column template with the nav on the right or left? |
At the moment only two, one column layouts are included. Jr is whatever you make it. With CSS you can style the header, main, or footer into three columns if you want. Or you could edit the It's really up to you. |
So if I want two columns I propose to do this with a generic template -- Copy the header portion into header.html, copy the footer portion into footer.html using your format of tags (section & aside, I don't really know what they actually do though), copy the nav portion into nav.html and add it to the blocks area at the top of jr.js. Now how do I get that nav.html to show on the left side. If I do the following it won't work will it -
Can I add some code to the above to create a column easily? I don't want you spending more than one minute to do this. Just asking if it's easy? |
Taking your code, you could do this.
Then
Also, section, main, header, etc.. are all HTML5 elements. They are nothing special. |
Yes, this is looking good. I'll tell you what I did, trying to simplify it the most. I took the generic template and split it into 3 sections. I placed everything from the top of the template into header.html, everything from below the templates main content area into footer.html, and the main content of the generic template into index.html, changing the html code to markdown in this one only. I commented out the path to the css because the css path is now within header.html. I then loaded index.html into the browser to see what it looked like and everything was there except the styling for index.html. I'm trying to determine why the styling won't take but I'm at a loss right now. The problem seems to be that my template uses a div with a class of "content" for the main area so somehow I've got to get that into the html by changing the following -
I've tried a few changes here but nothing seems to work. Please suggest easiest way. PS - I tried adding a div like you described above and it doesn't seem to work. I just get the markdown printing out on a white page. If I use
instead of
it seems to work. |
I, and everyone else would most likely like a menu somewhere. The template should determine this, so I guess I want to know how to take any html template from the web and use it with jr and then have the menu built and placed in the proper position. To me that's the only thing lacking here for simple websites which is all I make, or am I not seeing the simplicity built in? Maybe I just change the .css file in the templates folder and that's it??
The text was updated successfully, but these errors were encountered: