File tree Expand file tree Collapse file tree 2 files changed +42
-37
lines changed Expand file tree Collapse file tree 2 files changed +42
-37
lines changed Original file line number Diff line number Diff line change 7
7
progress : true ,
8
8
history : true ,
9
9
center : true ,
10
+ embedded : true ,
11
+ disableLayout : false ,
10
12
plugins : [ RevealMarkdown , RevealHighlight ] ,
11
13
} ) ;
12
14
</ script >
Original file line number Diff line number Diff line change 1
1
{{- define "main" -}}
2
2
<!-- Hide header & footer until slides are ready -->
3
- < div style =" display: none; ">
3
+ < div class =" hide ">
4
4
< div id ="slide-header-footer ">
5
- {{ if .Title }}
6
- < div class ="header-left "> {{- .Title - }}</ div >
7
- {{ end }}
8
- {{ if $.Site. Copyright }}
9
- < div class ="footer-left "> {{ $.Site .Copyright | safeHTML }} {{ now.Year }}</ div >
10
- {{ end }}
5
+ {{- if .Title - }}
6
+ < div class ="header-left "> {{ .Title }}</ div >
7
+ {{- end - }}
8
+ {{- if site. Copyright - }}
9
+ < div class ="footer-left "> {{ site .Copyright | safeHTML }} {{ now.Year }}</ div >
10
+ {{- end - }}
11
11
</ div >
12
12
</ div >
13
13
14
- < div class ="reveal ">
15
- < div class ="slides ">
16
- <!-- Title slide -->
17
- {{ if .Title }}
18
- < section >
19
- < h1 > {{- .Title -}}</ h1 >
20
- < p >
21
- {{ with .Date }}
22
- {{ .Format "2006-01-02" }}
23
- {{ end }}
24
- {{ with .Params.Author }}
25
- |
26
- {{ . }}
27
- {{ end }}
28
- </ p >
29
- {{ if .Description }}
30
- < p style ="font-style: italic; ">
31
- {{ .Description | plainify }}
32
- </ p >
33
- {{ end }}
34
- </ section >
35
- {{ end }}
14
+ < div class ="highlight-wrapper ">
15
+ < div class ="reveal ">
16
+ < div class ="slides ">
17
+ <!-- Title slide -->
18
+ {{- if .Title }}
19
+ < section >
20
+ < h1 > {{ .Title }}</ h1 >
21
+ {{- if or .Date .Params.Author }}
22
+ < p >
23
+ {{- with .Date -}}
24
+ < span > {{ .Format "2006-01-02" }}</ span >
25
+ {{- end -}}
36
26
27
+ {{- with .Params.Author -}}
28
+ < span > | {{ . }}</ span >
29
+ {{- end -}}
30
+ </ p >
31
+ {{- end }}
37
32
38
- <!-- Content slides -->
39
- < section data-markdown data-separator ="^\n---\n$ " data-separator-vertical ="^\n--\n$ ">
40
- {{- .RawContent -}}
41
- </ section >
33
+ {{- with .Description }}
34
+ < p class ="post-description "> {{ . }}</ p >
35
+ {{- end }}
36
+ </ section >
37
+ {{- end }}
42
38
43
- <!-- End slide -->
44
- < section >
45
- < h2 > Thank you</ h2 >
46
- </ section >
39
+
40
+ <!-- Content slides -->
41
+ < section data-markdown data-separator ="^\n---\n$ " data-separator-vertical ="^\n--\n$ ">
42
+ {{ .RawContent }}
43
+ </ section >
44
+
45
+ <!-- End slide -->
46
+ < section >
47
+ < h2 > Thank you</ h2 >
48
+ </ section >
49
+ </ div >
47
50
</ div >
48
51
</ div >
49
52
{{- end -}}
You can’t perform that action at this time.
0 commit comments