Template Example

This presentation shows how to take advantage of reveal-hugo’s slide template feature.

Hello

Here’s an example of using a template called blue, defined in the front matter of this presentation’s _index.md file.

The template can contain any valid slide customization params:

using System;

namespace HelloWorldApp { 
    
    class Geeks { 
        
        static void Main(string[] args) { 
            
            // statement printing Hello World! 
            Console.WriteLine("Hello World!"); 
            
            // To prevent the screen from running and closing quickly 
            Console.ReadKey(); 
        } 
    } 
}

Then add it to any slide using the slide shortcode:

{{< slide template="blue" >}}

Templates can be specified in config.toml as well, for reusability across multiple presentations.

[params.reveal_hugo.templates.grey]
background = "#424242"
transition = "convex"

THE END