summaryrefslogtreecommitdiff
path: root/templates/partials
diff options
context:
space:
mode:
authorRochDLY <roch.delannay@gmail.com>2023-11-07 15:08:43 +0100
committerRochDLY <roch.delannay@gmail.com>2023-11-07 15:08:43 +0100
commitd83836a971f54982bfcde5750834dfe4da369dc1 (patch)
tree55e8ac3e204ad4bf708fde2700d75dfc261f3c17 /templates/partials
downloadpandoc-site-d83836a971f54982bfcde5750834dfe4da369dc1.tar.gz
pandoc-site-d83836a971f54982bfcde5750834dfe4da369dc1.tar.bz2
pandoc-site-d83836a971f54982bfcde5750834dfe4da369dc1.zip
git init du carnet généré avec make et pandoc
Diffstat (limited to 'templates/partials')
-rw-r--r--templates/partials/footer.html9
-rw-r--r--templates/partials/head.html22
-rw-r--r--templates/partials/header.html3
-rw-r--r--templates/partials/nav.html7
4 files changed, 41 insertions, 0 deletions
diff --git a/templates/partials/footer.html b/templates/partials/footer.html
new file mode 100644
index 0000000..74dc87f
--- /dev/null
+++ b/templates/partials/footer.html
@@ -0,0 +1,9 @@
+<footer>
+ <div>
+ ${if(rights)}
+ <p>${rights-short} ${author-meta}</p>
+ ${endif}
+ <p>Créé avec Pandoc et Make</p>
+ <a href="/pages/colophon.html">Colophon</a>
+ </div>
+</footer> \ No newline at end of file
diff --git a/templates/partials/head.html b/templates/partials/head.html
new file mode 100644
index 0000000..2514919
--- /dev/null
+++ b/templates/partials/head.html
@@ -0,0 +1,22 @@
+<meta charset="utf-8"/>
+
+<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
+
+<title>${if(pagetitle)}${pagetitle}${endif}</title>
+
+${if(author)}
+<meta name="author" content="${author}" />
+${endif}
+
+${if(description-meta)}
+<meta name="description" content="${description-meta}" />
+${endif}
+
+${if(date)}
+<meta name="dcterms.date" content="${date-meta}" />
+${endif}
+
+<meta name="generator" content="Pandoc, GNU make" />
+<!-- pandoc - https://pandoc.org/ -->
+<!-- gnu make - https://www.gnu.org/software/make/ -->
+<link rel="stylesheet" href="/css/styles.css" />
diff --git a/templates/partials/header.html b/templates/partials/header.html
new file mode 100644
index 0000000..bbe014c
--- /dev/null
+++ b/templates/partials/header.html
@@ -0,0 +1,3 @@
+<header class="main-header">
+ ${partials/nav.html()}
+</header> \ No newline at end of file
diff --git a/templates/partials/nav.html b/templates/partials/nav.html
new file mode 100644
index 0000000..264edea
--- /dev/null
+++ b/templates/partials/nav.html
@@ -0,0 +1,7 @@
+<nav class="navbar">
+ <div>
+ <a href="/">Accueil</a>
+ <a href="/pages/publications.html">Publications savantes</a>
+ <a href="/pages/cours.html">Cours</a>
+ </div>
+</nav> \ No newline at end of file