How can I set the title to empty? And can i change the title mid-presentation?
Starting out with patat. -- Very cool!
(1) I was wondering how I can remove the title of my presentation? In lib/Patat/Presentation/Display.hs I found the expression
if null title then mempty else...
But my Haskell is not very good, so I don't know how can I set in the document metadata the title to "null".
(2) Also, when I change the title metadata field in the source for a later slide the rendering shows always the last set title for the whole presentation. Is there any way to change the title in the output for only one slide?
Many thanks for any help in advance.
Thanks for opening this issue!
-
You can use something like:
--- title: null patat: ... ... Your presentationHowever, this is not really an intentional feature and I saw that this still leaves one blank line before the slide content, which maybe isn't great.
-
Also, when I change the title metadata field in the source for a later slide
I don't really understand this-- there should only be one metadata block. Do you have an example?
Changing the title in the presentation for only one slide currently isn't possible.
I'm also not sure if this is worth adding-- maybe it would be better to allow configuring the contents and visibility of the top and bottom bar, e.g. something along the lines of:
topBar: '{title} {slide} / {totalSlides}'And then you'd be able to change this for a single slide using a per-slide config block (see option 3 here).
- You can use something like:
--- title: null . . .
Thanks. Good to know. Of course, an intentional feature would be even better. ;-)
Also, when I change the title metadata field in the source for a later slide...
I don't really understand this.
Well I just added another block
---
title: title for this slide
...
at the beginning of a slide, but I guessI should have used the <!--config syntax.
I'm also not sure if this is worth adding-- maybe it would be better to allow configuring the contents and visibility of the top and bottom bar, e.g. something along the lines of:
topBar: '{title} {slide} / {totalSlides}'
Totally, wholeheartedly agree! Having topbar/bottombar attributes would be fantabulous!