How do I make the sidebar appear? #645
-
Hello, I do not have any coding or Web development background. However, I can not get the sidebar to show. I uploaded a sidebar.md to the shared folder (content as in the example in the git hub documentation) , and also to the blog folder, but they don't show up on the website. Samegoes for header and footer respectively . Is there anything I have forgotten? Do I have to edit the page.md for activating the Sidebar? Code of sidebar.md:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
learning by doing is fantastic, but can be a steep curve I will throw you a few crumbs to help the learning.... it looks like you are doing everything correctly again - well done... try berlin theme which includes sidebar layout (see berlin-default.html) and the basic code that brings it in p.s: you should of course include a check to make sure a sidebar page exists - or your site may break when there was none |
Beta Was this translation helpful? Give feedback.
-
Check what's written in the documentation of themes. If a theme doesn't mention a sidebar, then it does not support it out-of-the-box. Datenstrom Yellow targets small websites, with less features and fewer distractions. As we're getting closer to updating themes, we might add theme(s) with two column-layout. It's a feature we are looking to provide. See also #531. |
Beta Was this translation helpful? Give feedback.
learning by doing is fantastic, but can be a steep curve
I will throw you a few crumbs to help the learning....
it looks like you are doing everything correctly again - well done...
on a brief investigation - it looks like the default theme doesnt include sidebar... ( fyi @markseu )
{...or navigation-tree as you discovered already}
try berlin theme which includes sidebar layout (see berlin-default.html)
and the basic code that brings it in
<?php echo $this->yellow->page->getPage("sidebar")->getContent() ?>
p.s: you should of course include a check to make sure a sidebar page exists - or your site may break when there was none