-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dbdc915
commit 6a8f300
Showing
10 changed files
with
322 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "themes/hugo-webslides"] | ||
path = themes/hugo-webslides | ||
url = https://github.com/rcjach/hugo-webslides.git |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
title: "{{ replace .Name "-" " " | title }}" | ||
date: {{ .Date }} | ||
draft: true | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
+++ | ||
title = "Hugo-Webslides" | ||
+++ | ||
<!--: .wrap .size-70 ..aligncenter bgimage=images/pencil.jpg --> | ||
|
||
|
||
## **Hugo-Webslides** | ||
|
||
Use markdown to write contents and render with [**WebSlides**](https://webslides.tv) to HTML. | ||
{ .text-intro } | ||
|
||
[{{< svg fa-github >}}Github](https://github.com/RCJacH/hugo-webslides) | ||
|
||
--- | ||
|
||
<!--: .wrap --> | ||
|
||
## **WebSlides Demos** | ||
Here's what you can do with [WebSlides](https://webslides.tv). | ||
|
||
- {{< gallery title="Why WebSlides" href="#slide=10" src="https://webslides.tv/static/images/demos-why.png" >}}Why WebSlides{{< /gallery >}} | ||
- {{< gallery title="Landings" href="https://webslides.tv/demos/landings" src="https://webslides.tv/static/images/demos-landings.png" >}}Landings{{< /gallery >}} | ||
- {{< gallery title="Portfolios" href="https://webslides.tv/demos/portfolios" src="https://webslides.tv/static/images/demos-portfolios.png" >}}Portfolios{{< /gallery >}} | ||
- {{< gallery title="Keynote" href="https://webslides.tv/demos/apple" src="https://webslides.tv/static/images/demos-apple.png" >}}Keynote{{< /gallery >}} | ||
{ .flexblock .gallery } | ||
|
||
--- | ||
<!--: .wrap --> | ||
|
||
## **More Examples** | ||
<small>Note. None of these slides are currently ported to Hugo-Webslides...YET.</small> | ||
|
||
- {{< gallery title="Netflix's Culture" href="https://webslides.tv/demos/netflix-culture" src="https://webslides.tv/static/images/demos-netflix.png" >}}Netflix{{< /gallery >}} | ||
- {{< gallery title="Longform Articles" href="https://webslides.tv/demos/longforms" src="https://webslides.tv/static/images/demos-longforms.png" >}}Longforms{{< /gallery >}} | ||
- {{< gallery title="Interviews" href="https://webslides.tv/demos/interviews" src="https://webslides.tv/static/images/demos-interviews.png" >}}Interviews{{< /gallery >}} | ||
{ .flexblock .gallery } | ||
|
||
|
||
--- | ||
<!-- : .wrap .size-40 --> | ||
|
||
### **Configuration** | ||
|
||
You can modify WebSlides settings directly from your project config.toml. | ||
{ .text-intro } | ||
|
||
~~~toml | ||
[params.webslides] | ||
banner = false | ||
slideshow = true | ||
vertical = false | ||
autoslide = false | ||
changeOnClick = false | ||
disableLoop = false | ||
minWheelDelta = 40 | ||
disableNavigateOnScroll = false | ||
scrollWait = 450 | ||
slideOffset = 50 | ||
hideIndex = false | ||
~~~ | ||
|
||
|
||
--- | ||
<!-- : .wrap --> | ||
|
||
|||v | ||
|
||
### **All from one markdown file** | ||
|
||
Use three dashes "<code>-</code>" to create a separate slide page. | ||
|
||
||| | ||
|
||
~~~md | ||
|
||
Slide1 | ||
|
||
--- | ||
|
||
Slide2 | ||
|
||
~~~ | ||
|
||
--- | ||
<!-- : .wrap --> | ||
|
||
|
||
||| | ||
|
||
~~~ | ||
content | ||
├── home | ||
│ ├── home1.md (weight: 1) | ||
│ └── home2.md (weight: 2) | ||
└── _index.md (initial page) | ||
~~~ | ||
|
||
||| | ||
|
||
### Or not. | ||
|
||
You can combine and arrange files with the weight parameter in front matter, and categorize .md files into different folders. | ||
|
||
--- | ||
<!-- : .aligncenter --> | ||
|
||
## Slide Attributes | ||
|
||
Assign attributes to a slide by using the following notation. | ||
|
||
~~~ | ||
--- | ||
<!-- : .class .class2 ..sub-class bg=bg-class bgimage=(frame|dark|light)|http://image-url/ bgpos=POSITION --> | ||
~~~ | ||
|
||
~~~html | ||
<section id="section-x" class="bg-class slide current" style=""> | ||
<span class="background-POSITION" style="background-image:url('http://image-url/')"></span> | ||
<span class="background frame"></span> | ||
<div class="class class2"> | ||
<div class="sub-class"> | ||
CONTENT | ||
</div> | ||
</div> | ||
</section> | ||
~~~ | ||
--- | ||
<!-- : .wrap --> | ||
|
||
### Assign class to elements | ||
|
||
note: ***depreciated*** with the introduction of [Hugo's native block attribute](https://gohugo.io/news/0.81.0-relnotes#attribute-lists-after-markdown-blocks) | ||
|
||
- {{< flexblock "Headers and Paragraphs" 6 >}} | ||
<span># <!-</span>- : .hClass -<span>-></span>Header<br> | ||
<span><!-</span>- : .pClass -<span>-></span>Paragraph | ||
~~~html | ||
<h1 class="hClass">Header</h1> | ||
<p class="pClass">Paragraph</p> | ||
~~~ | ||
{{< /flexblock >}} | ||
|
||
- {{< flexblock "Lists" 6 >}} | ||
<span><!-</span>- : .listClass -<span>-></span><br> | ||
<span>-</span> list1<br> | ||
<span>-</span> list2 | ||
~~~ | ||
<ul class="listClass"> | ||
<li>list1</li> | ||
<li>list2</li> | ||
</ul> | ||
~~~ | ||
{{< /flexblock >}} | ||
{ .flexblock } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
+++ | ||
title = "Install Now" | ||
weight = 1 | ||
bg = "bg-gradient-h" | ||
+++ | ||
<!-- : .wrap --> | ||
|
||
### **Install Now** | ||
Run from the root of your Hugo site: | ||
{.text-intro} | ||
|
||
~~~ | ||
$ git clone https://github.com/RCJacH/hugo-webslides.git themes/hugo-webslides | ||
~~~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
+++ | ||
weight = 2 | ||
+++ | ||
<!--: .wrap .aligncenter --> | ||
|
||
# Good Karma {.text-landing} | ||
|
||
[**WebSlides**](http://webslides.tv) — HTML presentations made easy. <br> | ||
{.text-intro} | ||
Hypertext and beauty as narrative elements. | ||
|
||
[Twitter](https://twitter.com/webslides) | ||
[Dribble](https://dribbble.com/tags/webslides) | ||
[Github](https://github.com/webslides/webslides) | ||
|
||
--- | ||
<!--: .wrap .fadeInUp bg=bg-black bg=aligncenter bgimage=frame|https://source.unsplash.com/OkAAx4mI2Hc/ --> | ||
|
||
# Everyone {{< svg fa-heart-o >}} Stories | ||
|
||
--- | ||
<!--: .wrap ..content-center --> | ||
|
||
## **Why WebSlides?** | ||
|
||
<blockquote> | ||
<p>"I feel guilty as a web designer when I have to use PowerPoint and Keynote. So I made <a href="https://twitter.com/search?q=%23webslides&src=typd">#WebSlides</a>."</p> | ||
<p><cite> <img class="avatar-40" src="https://raw.githubusercontent.com/webslides/WebSlides/master/static/images/avatar.jpg" alt="Avatar"> <a href="http://twitter.com/jlantunez/">@jlantunez</a>.</cite></p> | ||
</blockquote> | ||
|
||
--- | ||
<!--: .wrap --> | ||
|
||
|||v | ||
|
||
### **WebSlides is really easy** | ||
Each parent <code><section></code> in the #webslides element is an individual slide. | ||
{.text-intro} | ||
|
||
Code is clean, scalable, and well documented. It uses **intuitive markup** with popular naming conventions. There's no need to overuse classes or nesting. **Based on [SimpleSlides](https://github.com/jennschiffer/SimpleSlides), by [Jenn Schiffer](http://jennmoney.biz)** :) | ||
|
||
||| | ||
|
||
<pre><article id="webslides"> | ||
<span class="code-comment"><!-- Slide 1 --></span> | ||
<section> | ||
<h1>Design for trust</h1> | ||
</section> | ||
<span class="code-comment"><!-- Slide 2 --></span> | ||
<section class="bg-primary"> | ||
<div class="wrap"> | ||
<h2>.wrap = container (width: 90%)</h2> | ||
</div> | ||
</section> | ||
</article> | ||
</pre> | ||
|
||
--- | ||
<!--: .wrap --> | ||
|
||
{{< div class="content-left" >}} | ||
## WebSlides was made to inspire people. | ||
{{< /div >}} | ||
|
||
{{< div class="content-left" >}} | ||
There are excellent presentation tools out there. WebSlides is **an open source solution** for telling stories. Hypertext and beauty as narrative elements. | ||
{{< /div >}} | ||
|
||
- {{< flexblock "<span>→</span> Keyboard navigation" >}}with arrow keys.{{< /flexblock >}} | ||
- <div><h2>{{< svg fa-link >}}Go to a specific slide</h2>URL: #slide=number</div> | ||
- <div><h2>{{< svg fa-clock-o >}}Slide counter</h2>Current/Total number.</div> | ||
{.flexblock .features} | ||
|
||
--- | ||
<!--: .wrap --> | ||
|
||
- {{< flexblock "<span>100<sup>%</sup></span> customizable" >}}Well documented.{{< /flexblock >}} | ||
- {{< flexblock "<span>40<sup>+</sup></span> Beautiful Components" >}}Covers, cards, quotes...{{< /flexblock >}} | ||
- <div><h2>{{< svg fa-list >}}Flexible blocks</h2>with auto-fill and equal height.</div> | ||
- <div><h2>{{< svg fa-text-height >}}Vertical rhythm</h2>Use multiples of 8.</div> | ||
- <div><h2>{{< svg fa-language >}}Fade transition</h2>to all slides.</div> | ||
- {{< flexblock "<span>500<sup>+</sup></span>SVG Icons" >}}Font Awesome Kit.{{< /flexblock >}} | ||
{.flexblock .features} | ||
|
||
--- | ||
<!--: .wrap --> | ||
|
||
|||v | ||
|
||
### Support | ||
|
||
Making a beautiful HTML presentation has never been so rewarding. | ||
|
||
- **Demos:** [Landings](https://webslides.tv/demos/landings) · [Portfolios](https://webslides.tv/demos/portfolios.html) | ||
- **Docs:** [Components](https://webslides.tv/demos/components.html) · [Classes](https://webslides.tv/demos/classes.html) | ||
- **Tags:** [Dribble](https://dribbble.com/tags/webslides) · [Instagram](https://instagram.com/webslides) | ||
{.description} | ||
|
||
||| | ||
|
||
[<img class="aligncenter" src="https://raw.githubusercontent.com/webslides/WebSlides/master/static/images/setup.png" alt="WebSlides Files">](https://github.com/webslides/webslides") | ||
|
||
||| | ||
|
||
### Extensible | ||
|
||
The best way to inspire with your content is to connect on a personal level: | ||
|
||
- **Animations:** [Animate.css](https://github.com/daneden/animate.css/). | ||
- **Images:** [Unsplash](http://unsplash.com). | ||
- **Videos:** [Pixabay](https://pixabay.com/en/videos). | ||
{.description} | ||
|
||
--- | ||
<!--: bg=bg-apple bg=aligncenter .wrap bgimage=https://webslides.tv/static/images/tim-cook.png bgpos=right-bottom --> | ||
|
||
## One more thing... | ||
|
||
[Make your keynote — <code>.bg-apple</code>](https://webslides.tv/demos/keynote.html) | ||
{.fadeInUp} |
Binary file not shown.
Submodule hugo-webslides
added at
86ef38