-
Notifications
You must be signed in to change notification settings - Fork 146
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 generate list page for all presentations #37
Comments
Thanks for opening the issue. Can you share the Hugo code you're using to build the list of pages? There isn't anything that reveal-hugo does that would get in the way of using Hugo variables like Site and Page, so I'm thinking it's something there. |
So reveal-hugo does not provide a list layout itself? I'm using Kiss theme for the main site. List page is generated with: https://github.com/ribice/kiss/blob/master/layouts/index.html I get an empty Kiss list page when I leave |
reveal-hugo's list layout builds the presentations themselves, from the
_index.md and any other files in the section. There isn't a page that lists
presentations out of the box, but you could create a layout file that does
that and assign that layout in your _index.md file for the page list.
…On Fri, May 24, 2019 at 4:25 PM Margus Kerma ***@***.***> wrote:
So reveal-hugo does not provide a list layout itself? I'm using Kiss theme
for the main site. List page is generated with:
https://github.com/ribice/kiss/blob/master/layouts/index.html
I get an empty Kiss list page when I leave _index.md blank. Adding
`Outputs = ["Reveal"]' to meta generates an empty presentation.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#37>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABKVOPUJLGRORZS5UETMWTPW73D5ANCNFSM4HPP5ZGQ>
.
|
That's what I suspected, thanks! I'll dive into template docs then and try to come up with some sort of solution for an example. |
Got it working. But it's a bit tricky, so might be worth to document it somewhere. Figuring out the sections takes a while.. A working template:
Put it into
You cannot use section.html or list.html because that would break the reveal-hugo rendering of slides. |
@kerma Thanks for sharing what worked for you. I'll add this to the documentation. |
@kerma @dzello - i'm trying to generate a list of all the presentations and it's not working for me. I've followed the instructions to add the slidelist.html Do we need to add the following layout to each and every presentations's frontmatter in _index.md?
Once this is added, where can we access the page with all the slides? @dzello = is it possible to make this feature default, so that the homepage is always treated as the presentation listing page? |
@mayankguptadotcom Good question(s). @jerdog @davidovich do you have any thoughts/insight here? |
Sorry, just scrolled back through. I have no idea @mayankguptadotcom why this wouldn't be working for you. @kerma probably needs to add some thoughts here as they created this. I did this myself manually by putting an
|
@jerdog - same here i'm doing this manually for now too. I'll keep at it, if I'll be able to make it work then will share the solution |
@mayankguptadotcom do you have another theme configured in addition to reveal-hugo? I think that's what I needed to get things working. For example, I have this in my hugo.yaml
I also don't have the extra,
That means I can use the home page template file, i.e. |
I'm trying to render a index page that would list links to all presentations. So far without much luck. This is the tree:
Atm I'm expecting that
/slides/index.html
includes a link to/slides/presentation/
, but whatever I try, nothing seems to work. I only get an empty presentation there. Is this even supported?The text was updated successfully, but these errors were encountered: