Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #3 from tenten0213/master

Changed to be able to change cover and language
  • Loading branch information...
commit 2a5fdcb79e6f26a7c59349b2bc258bf4ed86337d 2 parents 88e8e17 + 46d585d
@geraldb geraldb authored
Showing with 10 additions and 4 deletions.
  1. +2 −0  README.markdown
  2. +3 −1 shower.txt
  3. +5 −3 slides.html.erb
View
2  README.markdown
@@ -15,6 +15,8 @@ Note, the package is configured to use the following headers in `slides.html.erb
author: Your Name Here
title: Your Slide Show Title Here
+ cover: Your Slide Show Cover Image Here
+ lang: Your Language Here
## Try It Yourself - How To Use the Template Pack
View
4 shower.txt
@@ -8,6 +8,7 @@
#
# author: Your Name Here
# title: Your Slide Show Title Here
+# cover: Your Slide Show Cover Image Here
#
# Questions? Comments?
# Send them along to the Free Web Slide Show Alternatives (S5, S6, S9 And Friends) Forum/Mailing List.
@@ -27,6 +28,7 @@ themes/ribbon/styles/style.css
# graphics
+# default cover image
pictures/cover.jpg
themes/ribbon/images/grid.png
@@ -56,4 +58,4 @@ themes/ribbon/fonts/PTSans.svg
themes/ribbon/fonts/PTSans.ttf
themes/ribbon/fonts/PTSans.woff
themes/ribbon/fonts/TargetBlank.otf
-themes/ribbon/fonts/TargetBlank.svg
+themes/ribbon/fonts/TargetBlank.svg
View
8 slides.html.erb
@@ -1,5 +1,6 @@
<!DOCTYPE HTML>
-<html lang="en-US">
+<% lang = @headers['lang'] == "- lang not found -" ? "en-US" : @headers['lang'] %>
+<html lang="<%= lang %>">
<head>
<title><%= @headers['title'] %></title>
<meta charset="UTF-8">
@@ -25,7 +26,8 @@
<header>
<h2><%= @headers['title'] %></h2>
</header>
- <img src="pictures/cover.jpg" alt="">
+ <% cover = @headers['cover'] == "- cover not found -" ? "cover.jpg" : @headers['cover'] %>
+ <img src="pictures/<%= cover %>" alt="">
<!-- © John Carey, http://fiftyfootshadows.net/ -->
</section>
</div></div>
@@ -51,4 +53,4 @@
<script src="scripts/script.js"></script>
<!-- Copyright © 2010–2011 Vadim Makeev, http://pepelsbey.net/ -->
</body>
-</html>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.