hexo-generator-slidehtml

    0.0.62 • Public • Published

    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

    Aritcle
    Slide

    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

    Install

    npm i hexo-generator-slidehtml

    DownloadsWeekly Downloads

    8

    Version

    0.0.62

    License

    MIT

    Unpacked Size

    33.7 kB

    Total Files

    9

    Last publish

    Collaborators

    • jackey8616