Giter VIP home page Giter VIP logo

hugo-webslides's Introduction

Screenshot

Hugo-WebSlides

Hugo-WebSlides is a theme for writing beautiful WebSlides presentations in markdown with Hugo.

Features:

  • Based on WebSlides.js
  • Create slides with Markdown.
  • Assign classes to elements without html.
  • Shortcodes for components.

Future Implementation:

  • More component shortcodes!
  • Hugo-WebSlides rendition of original demos.
  • Separate slides within the same project.

Demo

Checkout the latest demo of what you can create with this theme.

Getting Started

Requirements

Installation of Hugo (latest version recommended)

Get the theme

Run from the root of your Hugo site:

$ git clone https://github.com/rcjach/hugo-webslides.git themes/hugo-webslides

Alternatively, you can include this repository as a git submodule. This makes it easier to update this theme if you have your Hugo site in git as well:

$ git submodule add https://github.com/rcjach/hugo-webslides.git themes/hugo-webslides

Preview the theme

Hugo-WebSlides ships with an fully configured example site. For a quick preview:

cd exampleSite/
hugo serve  --themesDir ../..

Then visit http://localhost:1313/ in your browser to view the example site.

Configuration

The following config.toml is used for the example site.

baseurl         = "/"
theme           = "hugo-webslides"
languageCode    = "en-us"
title           = "A Hugo theme for creating Webslides.js presentations"

[params]
  author = "RCJacH"
  homepage = "RCJacH.github.io"

[params.webslides]
  banner = false
  slideshow = true
  vertical = false
  autoslide = false
  changeOnClick = false
  disableLoop = false
  minWheelDelta = 40
  disableNavigateOnScroll = false
  scrollWait = 450
  slideOffset = 50
  hideIndex = false

[blackfriday]
extensionsmask = ["autoHeaderIds"]

Checkout WebSlides Core-API options for an explanation of what different parameters do.

Note that some parameters is inverted in this theme, for example loop -> disableLoop, navigateOnScroll -> disableNavigateOnScroll, showIndex -> hideIndex.

Adding content

For minimum work, simply copy the content folder of the exampleSite to your project, and modify the existing md files to your need.

Split slides by using horizontal ruler ---.

Slide 1

---

Slider 2

Assign properties

Use HTML comment with a colon to add properties to a slide or an element.

Slide properties

You can assign the following properties to each slide:

  • section class
  • div class
  • secondary div class
  • background class
  • background-image
  • background-image-position
<!-- : sectionClass .divClass ..secondaryClass bg=backgroundClass bgimage=background-image bgpos=background-image-position -->

Multiple classes can be assigned.

<!-- : .divClass1 .divClass2 ..secondaryDivClass1 ..secondaryDivClass2 bg=backgroundClass1 bg=backgroundClass2 -->

Block properties

You can assign classes to blocks as well.

### <!-- : .headerClass -->Header
<!-- : .paragraphClass -->Paragraph

hugo-webslides's People

Contributors

rcjach avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.