Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Hugo theme to create WebSlides.js presentations using Markdown.
Hugo-WebSlides is a Hugo theme for authoring WebSlides.js presentations entirely in Markdown, turning plain-text slide files into interactive HTML slideshow decks.
Hugo-WebSlides is an open-source theme for the Hugo static site generator. It takes Markdown files as input and outputs a WebSlides.js-based presentation in HTML, CSS, and JavaScript. The theme is maintained by RCJacH and is published on GitHub under the repository rcjach/hugo-webslides.
--- on its own line.[params.webslides] in config.toml.hugo serve --themesDir ../...Hugo-WebSlides suits developers, technical writers, and Hugo users who want to produce presentation decks without leaving their Markdown workflow. Use it to keep slide content in version control, generate presentations via the Hugo build pipeline, and deploy them as static sites. It is also useful for workshop instructors and conference speakers who need a lightweight, code-friendly alternative to WYSIWYG presentation tools.
---, and run Hugo to generate a presentation.Install Hugo, then clone or add the theme as a git submodule into the themes/hugo-webslides directory. Copy the exampleSite's content folder into your project, edit the Markdown files, and split slides with ---. Configure slideshow options in config.toml under [params.webslides], using the same parameter names as the WebSlides Core API but with the loop, navigateOnScroll, and showIndex options inverted (disabling them via disableLoop, disableNavigateOnScroll, and hideIndex).
Clone the repository into your Hugo site's themes folder, copy the exampleSite content directory into your project, and modify the existing Markdown files.
Place a horizontal ruler --- on its own line between slides in a Markdown file. Each block separated by --- becomes one slide.
Use an HTML comment that starts with a colon followed by the class name or a property assignment. For slide-level properties, specify section class, div class, secondary div class, background class, background image, or background image position; block-level classes can be attached to headings and paragraphs.
The theme exposes WebSlides Core API options under [params.webslides] in config.toml, including banner, slideshow, vertical, autoslide, changeOnClick, disableLoop, minWheelDelta, disableNavigateOnScroll, scrollWait, slideOffset, and hideIndex. Some options are inverted in the theme's configuration.
The installation guide recommends the latest version of Hugo, so using an up-to-date Hugo release is advised.
