diff --git a/.DS_Store b/.DS_Store index 6b25352..94e76f2 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..4b8be73 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/hugo-webslides"] + path = themes/hugo-webslides + url = https://github.com/rcjach/hugo-webslides.git diff --git a/.hugo_build.lock b/.hugo_build.lock new file mode 100644 index 0000000..e69de29 diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..378642a --- /dev/null +++ b/config.toml @@ -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"] \ No newline at end of file diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..2a97a46 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,154 @@ ++++ +title = "Hugo-Webslides" ++++ + + + +## **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) + +--- + + + +## **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 } + +--- + + +## **More Examples** +Note. None of these slides are currently ported to Hugo-Webslides...YET. + +- {{< 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 } + + +--- + + +### **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 +~~~ + + +--- + + +|||v + +### **All from one markdown file** + +Use three dashes "-" to create a separate slide page. + +||| + +~~~md + +Slide1 + +--- + +Slide2 + +~~~ + +--- + + + +||| + +~~~ +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. + +--- + + +## Slide Attributes + +Assign attributes to a slide by using the following notation. + +~~~ +--- + +~~~ + +~~~html +
+ + +
+
+ CONTENT +
+
+
+~~~ +--- + + +### 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 >}} +# - : .hClass -->Header
+- : .pClass -->Paragraph +~~~html +

Header

+

Paragraph

+~~~ +{{< /flexblock >}} + +- {{< flexblock "Lists" 6 >}} +- : .listClass -->
+- list1
+- list2 +~~~ +
    +
  • list1
  • +
  • list2
  • +
+~~~ +{{< /flexblock >}} +{ .flexblock } diff --git a/content/home/install.md b/content/home/install.md new file mode 100644 index 0000000..95fc431 --- /dev/null +++ b/content/home/install.md @@ -0,0 +1,14 @@ ++++ +title = "Install Now" +weight = 1 +bg = "bg-gradient-h" ++++ + + +### **Install Now** +Run from the root of your Hugo site: +{.text-intro} + +~~~ +$ git clone https://github.com/RCJacH/hugo-webslides.git themes/hugo-webslides +~~~ diff --git a/content/why.md b/content/why.md new file mode 100644 index 0000000..7c78c56 --- /dev/null +++ b/content/why.md @@ -0,0 +1,120 @@ ++++ +weight = 2 ++++ + + +# Good Karma {.text-landing} + +[**WebSlides**](http://webslides.tv) — HTML presentations made easy.
+{.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) + +--- + + +# Everyone {{< svg fa-heart-o >}} Stories + +--- + + +## **Why WebSlides?** + +
+

"I feel guilty as a web designer when I have to use PowerPoint and Keynote. So I made #WebSlides."

+

Avatar @jlantunez.

+
+ +--- + + +|||v + +### **WebSlides is really easy** +Each parent <section> 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)** :) + +||| + +
<article id="webslides">
+  <!-- Slide 1 -->
+  <section>
+    <h1>Design for trust</h1>
+  </section>
+  <!-- Slide 2 -->
+  <section class="bg-primary">
+    <div class="wrap">
+      <h2>.wrap = container (width: 90%)</h2>
+    </div>
+  </section>
+</article>
+
+ +--- + + +{{< 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 " Keyboard navigation" >}}with arrow keys.{{< /flexblock >}} +-

{{< svg fa-link >}}Go to a specific slide

URL: #slide=number
+-

{{< svg fa-clock-o >}}Slide counter

Current/Total number.
+{.flexblock .features} + +--- + + +- {{< flexblock "100% customizable" >}}Well documented.{{< /flexblock >}} +- {{< flexblock "40+ Beautiful Components" >}}Covers, cards, quotes...{{< /flexblock >}} +-

{{< svg fa-list >}}Flexible blocks

with auto-fill and equal height.
+-

{{< svg fa-text-height >}}Vertical rhythm

Use multiples of 8.
+-

{{< svg fa-language >}}Fade transition

to all slides.
+- {{< flexblock "500+SVG Icons" >}}Font Awesome Kit.{{< /flexblock >}} +{.flexblock .features} + +--- + + +|||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} + +||| + +[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} + +--- + + +## One more thing... + +[Make your keynote — .bg-apple](https://webslides.tv/demos/keynote.html) +{.fadeInUp} diff --git a/themes/.DS_Store b/themes/.DS_Store new file mode 100644 index 0000000..5cfe10a Binary files /dev/null and b/themes/.DS_Store differ diff --git a/themes/hugo-webslides b/themes/hugo-webslides new file mode 160000 index 0000000..86ef389 --- /dev/null +++ b/themes/hugo-webslides @@ -0,0 +1 @@ +Subproject commit 86ef38925f97e866ea491314d690bc4c57302b6a