Simplemenu

for Reveal.js

Option selectby: 'data-name'

What it does

Simplemenu links sections to the menu by an attribute, which is defined by selectby. By default it is 'id', but you can also set it to 'data-name' as in this example.

JavaScript

Set the selectby option to 'data-name'.

…
Reveal.initialize({
	simplemenu: {
		selectby: 'data-name',
	},
	plugins: [ Simplemenu ]

HTML Markup

Make sure that the text content of your links is the same as the 'data-name' attribute of your sections. In the example below it is literally "Put some text here".

<div class="menubar">
    <ul class="menu">
        <li>
            <a href="#">Put some text here</a>
        </li>
    </ul>
</div>
<div class="slides">
    <section data-name="Put some text here">
        //...
    </section>
        //...
</div>

That's it!