diff options
author | EuAndreh <eu@euandre.org> | 2020-10-10 19:29:58 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-10-10 19:30:12 -0300 |
commit | d37970ccd647b89a790c0944611f3e3be1f05eaf (patch) | |
tree | 3e19e8b77ddee7a3c3db057bcc75568e212efecb /_layouts/slides.html | |
parent | Fix home page entry listing (diff) | |
download | euandre.org-d37970ccd647b89a790c0944611f3e3be1f05eaf.tar.gz euandre.org-d37970ccd647b89a790c0944611f3e3be1f05eaf.tar.xz |
Use Jekyll to output slides HTML files
Diffstat (limited to '_layouts/slides.html')
-rw-r--r-- | _layouts/slides.html | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/_layouts/slides.html b/_layouts/slides.html new file mode 100644 index 0000000..839fe2a --- /dev/null +++ b/_layouts/slides.html @@ -0,0 +1,65 @@ +<!DOCTYPE html> +<html lang="{{ page.lang }}"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> + <link rel="alternate" type="application/atom+xml" href="{% link {{ site.t.slides.feed.url[page.lang] }} %}" hreflang="{{ page.lang}}" title="{{ site.t.slides.feed.title[page.lang] }}" /> + + <title>{{ page.title }} - EuAndreh</title> + + <meta property="og:site_name" content="{{ site.title }}" /> + <meta name="author" content="{{ site.author.name }}" /> + <meta property="og:locale" content="{{ page.lang }}" /> + <meta property="og:title" content="{{ page.title | xml_escape }}" /> + {% capture raw_description %} + {% if page.description %} + {{ page.description }} + {% else %} + {{ site.t.description[page.lang] }} + {% endif %} + {% endcapture %} + {% assign description = raw_description | strip_html | strip %} + <meta name="description" content="{{ description }}" /> + <meta property="og:description" content="{{ description }}" /> + + <link rel="canonical" href="{{ page.url | absolute_url }}" /> + <meta property="og:url" content="{{ page.url | absolute_url }}" /> + + <meta property="og:type" content="article" /> + <meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}" /> + + <link rel="stylesheet" href="/vendor/reveal.js/dist/reset.css"> + <link rel="stylesheet" href="/vendor/reveal.js/dist/reveal.css"> + <link rel="stylesheet" href="/vendor/reveal.js/dist/theme/black.css" id="theme"> + <link rel="stylesheet" href="/vendor/reveal.js/plugin/highlight/monokai.css" id="highlight-theme"> + <link rel="stylesheet" href="/slides.css"> + </head> + <body> + <div class="reveal"> + <div class="slides"> + <section data-markdown + data-separator="^---$" + data-separator-notes="^\?\?\?$"> + <textarea data-template> +{{ content }} + </textarea> + </section> + </div> + </div> + + <script src="/vendor/reveal.js/dist/reveal.js"></script> + <script src="/vendor/reveal.js/plugin/notes/notes.js"></script> + <script src="/vendor/reveal.js/plugin/markdown/markdown.js"></script> + <script src="/vendor/reveal.js/plugin/highlight/highlight.js"></script> + <script> + Reveal.initialize({ + hash: true, + controls: false, + slideNumber: "c/t", + transition: "none", + progress: false, + plugins: [ RevealMarkdown, RevealHighlight, RevealNotes ] + }); + </script> + </body> +</html> |