forked from IUTInfoMontp-M2101/cours
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoursXX.pug
45 lines (44 loc) · 1.31 KB
/
coursXX.pug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
-
root = "https://vpoupet.github.io/myriad/slides";
// root = "http://localhost:63342/myriad/slides";
theme = "myriad";
language = "fr";
context = "M2101 - Architecture et programmation bas niveau";
author = "Victor Poupet";
date = "";
doctype html
block preamble
html(lang=language)
head
block header
meta(charset="UTF-8")
if page_title
title !{page_title}
else
title !{title.replace('<br>', ' ')}
link(rel="stylesheet" href=`${root}/slides.css`)
link(rel="stylesheet" href=`${root}/themes/${theme}/${theme}.css`)
link(rel="stylesheet" href="highlight.css")
body
if title
section.title
h1 !{title}
if subtitle
h2 !{subtitle}
.context !{context}
.author !{author}
time !{date}
block document
block footer
script(src="highlight.pack.js")
script(language="Javascript")
| document.addEventListener('DOMContentLoaded', (event) => {
| hljs.configure({
| languages: [], // disable automatic language detection
| });
| document.querySelectorAll('code').forEach((block) => {
| hljs.highlightBlock(block);
| });
| });
script(src=`${root}/slides.js`)
script(src=`${root}/themes/${theme}/${theme}.js`)