-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Sidebar elements #7
Comments
Sure, it's a little convoluted but very flexible :) It should possibly be documented. In `_demo/pages/01.home/home.md, line 24 (which I don't seem to be able to link to directly), there is: features:
items:
'@taxonomy.pagetype': 'feature'
order:
by: default which is defining a Grav collection called 'features', made up of every page tagged 'feature' in the taxonomy vocabulary 'pagetype', so any page with Let's take the page you can see in the screenshot, spotlight:
image: 'images/pic04.jpg' # spotlight.jpg
headline: 'Interdum felis blandit praesent sed augue'
subheading: 'Nunc commodo accumsan eget id nisi eu col volutpat magna'
blurb: 'Feugiat accumsan lorem eu ac lorem amet ac arcu phasellus tortor enim mi mi nisi praesent adipiscing. Integer mi sed nascetur cep aliquet augue varius tempus lobortis porttitor lorem et accumsan consequat adipiscing lorem.'
# button:
# text: 'Learn More' This is where that info is pulled from. So the direct answer to your question is You could redefine that collection 'features' in the homepage if you want, using a taxonomy query, a fixed list of pages, or any of the methods available for defining a Grav collection. If you look at how this works in Twig, you can see That template checks for A bit quick but I hope that explains it. |
Great. Thanks a alot 😘 |
Hi! Sorry but i dont understand your previous explanation. Could you write me exact code to put in home yaml section to run sidebar in home page? Becasue in demo pages home-sidebars is inactivated (and no code for this) and i spend few hours to figured out how to activated it with no result. Thanks in advance! |
Great! I manage to solve the issue I had with this: thanks for the explanation, @hughbris |
In your live demo there are this side elements:
![image](https://user-images.githubusercontent.com/2002916/69820388-4b8cb000-1201-11ea-8d80-da9b4431522a.png)
But in the
_demo
I can not see how to do this. Is it possible to set the images? Also dont understand that forintro
.The text was updated successfully, but these errors were encountered: