Skip to content

Commit bdb1b7b

Browse files
committed
up
1 parent 46051a4 commit bdb1b7b

File tree

3 files changed

+41
-30
lines changed

3 files changed

+41
-30
lines changed

_includes/questions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
## Questions? Comments? {#questions}
33

44
Questions? Comments? Send them along to the
5-
[Free Web Slide Show Alternatives (S5, S6, S9, Slidy And Friends) Forum/Mailing List](http://groups.google.com/group/webslideshow).
5+
[wwwmake forum/mailing list](http://groups.google.com/group/wwwmake).
66
Thanks!
7+

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<div id="nav">
2222

2323
<a href="index.html">Home</a> |
24-
<a href="http://groups.google.com/group/webslideshow">What's New? &middot; Forum (Questions? Comments?)</a> |
24+
<a href="http://groups.google.com/group/wwwmake">What's New? &middot; Forum (Questions? Comments?)</a> |
2525
<a href="https://github.com/slideshow-templates">Template Repos</a>
2626

2727
</div>

index.md

Lines changed: 38 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,32 +20,36 @@ Create your own templates (use `headers`, `slides`, `name`, etc.)
2020

2121
## Headers {#headers}
2222

23-
Use `@headers` to reference headers (such as title, author, etc.) from your slide source
23+
Use `headers` to reference headers (such as title, author, etc.) from your slide source
2424
(or from your `slideshow.yml` configuration) in your templates.
2525

2626
Example:
2727

28-
~~~
29-
<meta name="author" content="<%= @headers['author']%>">
28+
```
29+
{% raw %}
30+
<meta name="author" content="{{ headers['author'] }}">
3031
31-
<title><%= @headers['title'] %> | by <%= @headers['author']%></title>
32-
~~~
32+
<title>{{ headers['title'] }} | by {{ headers['author'] }}</title>
33+
{% endraw %}
34+
```
3335

3436
Example 2:
3537

36-
~~~
38+
```
39+
{% raw %}
3740
<div class='slide'>
38-
<h1><%= @headers['title'] %></h1>
39-
<h2><%= @headers['subtitle'] %></h2>
40-
<h3><%= @headers['author']%></h3>
41-
<h4><%= @headers['company']%></h4>
41+
<h1>{{ headers['title'] }}</h1>
42+
<h2>{{ headers['subtitle'] }}</h2>
43+
<h3>{{ headers['author'] }}</h3>
44+
<h4>{{ headers['company'] }}</h4>
4245
</div>
43-
~~~
46+
{% endraw %}
47+
```
4448

4549

4650
## Slides {#slides}
4751

48-
Use `@slides` to reference your slides. A `slide` includes the following fields:
52+
Use `slides` to reference your slides. A `slide` includes the following fields:
4953

5054
* `content`
5155
* `header` => Optional Header
@@ -55,37 +59,43 @@ Use `@slides` to reference your slides. A `slide` includes the following fields:
5559

5660
Example:
5761

58-
~~~
59-
<% @slides.each do |slide| %>
62+
```
63+
{% raw %}
64+
{% for slide in slides %}
6065
<div class='slide'>
61-
<%= slide.content %>
66+
{{ slide.content }}
6267
</div>
63-
<% end %>
64-
~~~
68+
{% endfor %}
69+
{% endraw %}
70+
```
6571

6672
Example 2:
6773

68-
~~~
69-
<% @slides.each do |slide| %>
70-
<div class='slide <%= slide.classes %>'>
71-
<header><%= slide.header %></header>
74+
```
75+
{% raw %}
76+
{% for slide in slides %}
77+
<div class='slide {{ slide.classes }}'>
78+
<header>{{ slide.header }}</header>
7279
<section>
73-
<%= slide.content_without_header %>
80+
{{ slide.content_without_header }}
7481
</section>
7582
</div>
76-
<% end %>
77-
~~~
83+
{% endfor %}
84+
{% endraw %}
85+
```
7886

7987

8088
## Filename {#filename}
8189

82-
Use `@name` to reference the basename of the passed in file e.g. `microformats.text` becomes `microformats`.
90+
Use `name` to reference the basename of the passed in file e.g. `microformats.text` becomes `microformats`.
8391

8492
Example:
8593

86-
~~~
87-
<link rel="stylesheet" href="<%= "#{@name}.css" %>">
88-
~~~
94+
```
95+
{% raw %}
96+
<link rel="stylesheet" href="{{name}}.css">
97+
{% endraw %}
98+
```
8999

90100

91101
{% include questions.md %}

0 commit comments

Comments
 (0)