reveal.js fragment support, steam, telegram social icon added, google analytics support

This commit is contained in:
zzossig 2019-12-03 01:34:00 +09:00
parent e08ce9b022
commit e03a64def1
9 changed files with 162 additions and 37 deletions

View File

@ -8,6 +8,7 @@ hasCJKLanguage = true
summaryLength = 70 summaryLength = 70
googleAnalytics = ""
copyright = "©{year}, All Rights Reserved" copyright = "©{year}, All Rights Reserved"
timeout = 10000 timeout = 10000
enableEmoji = true enableEmoji = true

View File

@ -92,9 +92,6 @@ commento = false
scriptSrc = "" # "https://isso.example.com/js/embed.min.js" scriptSrc = "" # "https://isso.example.com/js/embed.min.js"
dataAttrs = "" # "data-isso='https://isso.example.com' data-isso-require-author='true'" dataAttrs = "" # "data-isso='https://isso.example.com' data-isso-require-author='true'"
[marketing]
googleAnalytics = ""
[socialOptions] [socialOptions]
email = "mailto:your@email.com" email = "mailto:your@email.com"
facebook = "http://example.org/" facebook = "http://example.org/"
@ -109,3 +106,5 @@ commento = false
linkedin = "" linkedin = ""
pinterest = "" pinterest = ""
stack-exchange = "" stack-exchange = ""
telegram = ""
steam = ""

View File

@ -9,35 +9,67 @@ series:
- -
categories: categories:
- -
featured_image: "feature1/golang.png"
plugins: plugins:
- highlight
- zoom - zoom
- notes
- math
highlightTheme: monokai
revealTheme: bagie revealTheme: bagie
reveal: reveal:
- main: - main:
- sub: - sub:
- | - |
# this is a very long sentence # Hugo
## hiasedyasywey ## The worlds fastest framework for building websites
### weqryojasodjyh
#### awes
```javascript
var a = 1;
function abc() {
return 100;
}
```
- sub: - sub:
- | - |
hey there? Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again.
how are
- main: - main:
- sub: - sub:
- | - |
- [robot-lung](https://github.com/dzello/revealjs-themes#robot-lung) (this one) # Reveal.js
- [sunblind](https://github.com/dzello/revealjs-themes#sunblind) ## A framework for easily creating beautiful presentations using HTML.
- [Check out the live demo](https://revealjs.com/#/)
- main:
- sub:
- |
You can easily create presentation documents using Markdown.
- fragment:
- sub:
- |
# here
- sub:
- |
#### you
- sub:
- |
#### go
- main:
- sub:
- |
# POINT OF VIEW
Press *ESC* to enter the slide overview.
Hold down the alt key (ctrl in Linux) and click on any element to zoom towards it using zoom.js. click again to zoom back out.
(NOTE\: Use ctrl + click in Linux)
- fragment:
- sub:
- |
## FRAGMENTS
- sub:
- |
Hit the next arrow...
- sub:
- |
... to step through ...
- sub:
- |
.. a
- sub:
- |
.. a fragmented
- sub:
- |
.. a fragmented slide.
--- ---

View File

@ -9,4 +9,14 @@ series:
- -
categories: categories:
- -
featured_image: "feature2/owl.png"
reveal:
- main:
- sub:
- |
test 1
- main:
- sub:
- |
test 2
--- ---

View File

@ -9,4 +9,14 @@ series:
- -
categories: categories:
- -
featured_image: "feature1/reindeer.png"
reveal:
- main:
- sub:
- |
test 1
- main:
- sub:
- |
test 2
--- ---

View File

@ -9,4 +9,59 @@ series:
- -
categories: categories:
- -
featured_image: "feature2/albatross.png"
plugins:
- highlight
- zoom
- math
highlightTheme: monokai
revealTheme: league
reveal:
- main:
- sub:
- |
## Syntax highlighting
```go
// If an unknown or empty style is provided, AP style is what you get.
func GetTitleFunc(style string) func(s string) string {
switch strings.ToLower(style) {
case "go":
return strings.Title
case "chicago":
return transform.NewTitleConverter(transform.ChicagoStyle)
default:
return transform.NewTitleConverter(transform.APStyle)
}
}
```
- main:
- sub:
- |
## Mathjax 1
\\[\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}
\mathbf{i} & \mathbf{j} & \mathbf{k} \\
\frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\
\frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0
\end{vmatrix} \\]
- main:
- sub:
- |
## Mathjax 2
\\[\begin{aligned}
\dot{x} & = \sigma(y-x) \\
\dot{y} & = \rho x - y - xz \\
\dot{z} & = -\beta z + xy
\end{aligned} \\]
- main:
- sub:
- |
## Mathjax 3
\\[P(E) = {n \choose k} p^k (1-p)^{ n-k} \\]
- main:
- sub:
- |
## Mathjax 4
\\[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} =
1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
{1+\frac{e^{-8\pi}} {1+\ldots} } } } \\]
--- ---

View File

@ -0,0 +1 @@
<svg fill="#000000" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" width="{{ .width }}" height="{{ .height }}"><path fill="currentColor" d="M 6 4 C 4.895 4 4 4.895 4 6 L 4 17.326172 L 6.5351562 18.017578 C 7.1301562 16.988578 8.1675781 16.247547 9.3925781 16.060547 L 12.066406 12.851562 C 12.027406 12.572563 12 12.29 12 12 C 12 8.686 14.686 6 18 6 C 21.314 6 24 8.686 24 12 C 24 15.314 21.314 18 18 18 C 17.71 18 17.427437 17.972594 17.148438 17.933594 L 13.939453 20.607422 C 13.645453 22.526422 12.001 24 10 24 C 7.791 24 6 22.209 6 20 C 6 19.982 6.0058594 19.965266 6.0058594 19.947266 L 4 19.400391 L 4 24 C 4 25.105 4.895 26 6 26 L 24 26 C 25.105 26 26 25.105 26 24 L 26 6 C 26 4.895 25.105 4 24 4 L 6 4 z M 18 8 C 15.802706 8 14 9.8027056 14 12 C 14 14.197294 15.802706 16 18 16 C 20.197294 16 22 14.197294 22 12 C 22 9.8027056 20.197294 8 18 8 z M 18 10 C 19.116414 10 20 10.883586 20 12 C 20 13.116414 19.116414 14 18 14 C 16.883586 14 16 13.116414 16 12 C 16 10.883586 16.883586 10 18 10 z M 10 17.5 C 9.215 17.5 8.5224531 17.868547 8.0644531 18.435547 L 10.263672 19.035156 C 10.796672 19.181156 11.111797 19.730672 10.966797 20.263672 C 10.843797 20.707672 10.44 21 10 21 C 9.913 21 9.8253281 20.988844 9.7363281 20.964844 L 7.5351562 20.365234 C 7.7141562 21.571234 8.744 22.5 10 22.5 C 11.381 22.5 12.5 21.381 12.5 20 C 12.5 18.619 11.381 17.5 10 17.5 z"/></svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -0,0 +1 @@
<svg fill="#000000" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="{{ .width }}" height="{{ .height }}"><path fill="currentColor" d="M 26.070313 3.996094 C 25.734375 4.011719 25.417969 4.109375 25.136719 4.21875 L 25.132813 4.21875 C 24.847656 4.332031 23.492188 4.902344 21.433594 5.765625 C 19.375 6.632813 16.703125 7.757813 14.050781 8.875 C 8.753906 11.105469 3.546875 13.300781 3.546875 13.300781 L 3.609375 13.277344 C 3.609375 13.277344 3.25 13.394531 2.875 13.652344 C 2.683594 13.777344 2.472656 13.949219 2.289063 14.21875 C 2.105469 14.488281 1.957031 14.902344 2.011719 15.328125 C 2.101563 16.050781 2.570313 16.484375 2.90625 16.722656 C 3.246094 16.964844 3.570313 17.078125 3.570313 17.078125 L 3.578125 17.078125 L 8.460938 18.722656 C 8.679688 19.425781 9.949219 23.597656 10.253906 24.558594 C 10.433594 25.132813 10.609375 25.492188 10.828125 25.765625 C 10.933594 25.90625 11.058594 26.023438 11.207031 26.117188 C 11.265625 26.152344 11.328125 26.179688 11.390625 26.203125 C 11.410156 26.214844 11.429688 26.21875 11.453125 26.222656 L 11.402344 26.210938 C 11.417969 26.214844 11.429688 26.226563 11.441406 26.230469 C 11.480469 26.242188 11.507813 26.246094 11.558594 26.253906 C 12.332031 26.488281 12.953125 26.007813 12.953125 26.007813 L 12.988281 25.980469 L 15.871094 23.355469 L 20.703125 27.0625 L 20.8125 27.109375 C 21.820313 27.550781 22.839844 27.304688 23.378906 26.871094 C 23.921875 26.433594 24.132813 25.875 24.132813 25.875 L 24.167969 25.785156 L 27.902344 6.65625 C 28.007813 6.183594 28.035156 5.742188 27.917969 5.3125 C 27.800781 4.882813 27.5 4.480469 27.136719 4.265625 C 26.769531 4.046875 26.40625 3.980469 26.070313 3.996094 Z M 25.96875 6.046875 C 25.964844 6.109375 25.976563 6.101563 25.949219 6.222656 L 25.949219 6.234375 L 22.25 25.164063 C 22.234375 25.191406 22.207031 25.25 22.132813 25.308594 C 22.054688 25.371094 21.992188 25.410156 21.667969 25.28125 L 15.757813 20.75 L 12.1875 24.003906 L 12.9375 19.214844 C 12.9375 19.214844 22.195313 10.585938 22.59375 10.214844 C 22.992188 9.84375 22.859375 9.765625 22.859375 9.765625 C 22.886719 9.3125 22.257813 9.632813 22.257813 9.632813 L 10.082031 17.175781 L 10.078125 17.15625 L 4.242188 15.191406 L 4.242188 15.1875 C 4.238281 15.1875 4.230469 15.183594 4.226563 15.183594 C 4.230469 15.183594 4.257813 15.171875 4.257813 15.171875 L 4.289063 15.15625 L 4.320313 15.144531 C 4.320313 15.144531 9.53125 12.949219 14.828125 10.71875 C 17.480469 9.601563 20.152344 8.476563 22.207031 7.609375 C 24.261719 6.746094 25.78125 6.113281 25.867188 6.078125 C 25.949219 6.046875 25.910156 6.046875 25.96875 6.046875 Z"/></svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -2,8 +2,11 @@
<div class="slides"> <div class="slides">
{{ range $.Params.reveal }} {{ range $.Params.reveal }}
<section class="pt"> <section>
{{ range .main }} {{ range $k, $v := . }}
{{ if eq $k "main" }}
{{ range $v }}
{{ range .sub }} {{ range .sub }}
<section data-markdown> <section data-markdown>
<textarea data-template> <textarea data-template>
@ -12,14 +15,27 @@
</section> </section>
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ else if eq $k "fragment" }}
{{ $result := "" }}
{{ range $v }}
{{ range .sub }}
{{ $result = (print $result "<span class='fragment'>" (. | markdownify) "</span>") }}
{{ end }}
{{ end }}
<section data-markdown>
<textarea data-template>
{{ $result }}
</textarea>
</section> </section>
{{ end }} {{ end }}
<section>Single Horizontal Slide</section> {{ end }}
<section>
<section>Vertical Slide 1</section>
<section>Vertical Slide 2</section>
</section> </section>
{{ end }}
</div> </div>
</div> </div>