diff --git a/exampleSite/config/_default/config.toml b/exampleSite/config/_default/config.toml index 0bed061..3db87f3 100644 --- a/exampleSite/config/_default/config.toml +++ b/exampleSite/config/_default/config.toml @@ -8,6 +8,7 @@ hasCJKLanguage = true summaryLength = 70 +googleAnalytics = "" copyright = "©{year}, All Rights Reserved" timeout = 10000 enableEmoji = true diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 9ae1725..1a9474d 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -92,9 +92,6 @@ commento = false scriptSrc = "" # "https://isso.example.com/js/embed.min.js" dataAttrs = "" # "data-isso='https://isso.example.com' data-isso-require-author='true'" -[marketing] - googleAnalytics = "" - [socialOptions] email = "mailto:your@email.com" facebook = "http://example.org/" @@ -108,4 +105,6 @@ commento = false tumblr = "" linkedin = "" pinterest = "" - stack-exchange = "" \ No newline at end of file + stack-exchange = "" + telegram = "" + steam = "" \ No newline at end of file diff --git a/exampleSite/content/pt/dir/fourth.md b/exampleSite/content/pt/dir/fourth.md index eaa8726..60e354a 100644 --- a/exampleSite/content/pt/dir/fourth.md +++ b/exampleSite/content/pt/dir/fourth.md @@ -9,35 +9,67 @@ series: - categories: - +featured_image: "feature1/golang.png" plugins: -- highlight - zoom -- notes -- math -highlightTheme: monokai revealTheme: bagie reveal: - - main: + - main: - sub: - | - # this is a very long sentence - ## hiasedyasywey - ### weqryojasodjyh - #### awes - ```javascript - var a = 1; - function abc() { - return 100; - } - ``` + # Hugo + ## The world’s fastest framework for building websites - sub: - | - hey there? - how are + Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again. - main: - sub: - | - - [robot-lung](https://github.com/dzello/revealjs-themes#robot-lung) (this one) - - [sunblind](https://github.com/dzello/revealjs-themes#sunblind) + # Reveal.js + ## 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. --- diff --git a/exampleSite/content/pt/first.md b/exampleSite/content/pt/first.md index a2267d5..a19c620 100644 --- a/exampleSite/content/pt/first.md +++ b/exampleSite/content/pt/first.md @@ -9,4 +9,14 @@ series: - categories: - +featured_image: "feature2/owl.png" +reveal: + - main: + - sub: + - | + test 1 + - main: + - sub: + - | + test 2 --- diff --git a/exampleSite/content/pt/second.md b/exampleSite/content/pt/second.md index e0ac0d5..9325099 100644 --- a/exampleSite/content/pt/second.md +++ b/exampleSite/content/pt/second.md @@ -9,4 +9,14 @@ series: - categories: - +featured_image: "feature1/reindeer.png" +reveal: + - main: + - sub: + - | + test 1 + - main: + - sub: + - | + test 2 --- diff --git a/exampleSite/content/pt/third.md b/exampleSite/content/pt/third.md index 1b80c7d..84efef2 100644 --- a/exampleSite/content/pt/third.md +++ b/exampleSite/content/pt/third.md @@ -9,4 +9,59 @@ series: - 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} } } } \\] --- diff --git a/layouts/partials/svgs/social/steam.svg b/layouts/partials/svgs/social/steam.svg new file mode 100644 index 0000000..44329f0 --- /dev/null +++ b/layouts/partials/svgs/social/steam.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/svgs/social/telegram.svg b/layouts/partials/svgs/social/telegram.svg new file mode 100644 index 0000000..47fe140 --- /dev/null +++ b/layouts/partials/svgs/social/telegram.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/pt/single.html b/layouts/pt/single.html index c0f88d9..7482359 100644 --- a/layouts/pt/single.html +++ b/layouts/pt/single.html @@ -2,24 +2,40 @@
{{ range $.Params.reveal }} -
- {{ range .main }} - {{ range .sub }} -
- -
+
+ {{ range $k, $v := . }} + + {{ if eq $k "main" }} + {{ range $v }} + {{ range .sub }} +
+ +
+ {{ end }} {{ end }} + + {{ else if eq $k "fragment" }} + + {{ $result := "" }} + {{ range $v }} + {{ range .sub }} + {{ $result = (print $result "" (. | markdownify) "") }} + {{ end }} + {{ end }} + +
+ +
+ {{ end }} + {{ end }}
{{ end }} - -
Single Horizontal Slide
-
-
Vertical Slide 1
-
Vertical Slide 2
-
+