Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 

hexo-generator-slidehtml

npm version

A hexo plugin to generate slide html when build / generating hexo project.

Usage

Normally hexo would generate index.html in folder. This will generate a slide.html in same folder for you. Simply visit https://[yousite]/path/to/your/article/slide.html to quickly have a presentation.

If you have a article with a simple post settup.

---
title: Hello World
slidehtml: true
---

this will generate a slide page for it.

Demo

Because hexo would update posts link everytime after edit it.
So plz everyone intertesting in demo, just reference this project's site, every post in it have different setup.
You can find the post's source in branch gh-pages-build. 
And each post add a tail url or /slide.html can check its slide.

Website

Config

slidehtml: 
  // Merge title as first slide page.
  titleMerge: true
  // For reveal.js's page separator, remember escape special character like '\' .
  horizontalSeparator: '^\\n---\\n',
  verticalSeparator: '^\\n--\\n'

Installation

npm i hexo-generator-slidehtml

Post Attribute

These attribute in post can override plugin's global setup.

---
slidehtml:
  titleMerge: true
  horizontalSeparator: ''
  verticalSeparator: ''
---

Be advice that: plugin Config useing YAML as format. so it's need escape char() for special char.
But post settup is Markdown format, so escape char() only focus on markdown itself.

License

MIT

About

A hexo plugin to generate slide html when build / generating hexo project.

Topics

Resources

Releases

No releases published

Packages

No packages published