aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFélix Sipma <felix.sipma@no-log.org>2018-02-06 15:15:46 +0100
committerFélix Sipma <felix.sipma@no-log.org>2018-02-06 15:15:46 +0100
commit80ba9bedbf4d00f5f95299be0db29be301174e48 (patch)
treec41fb41d4d0d14b3e0591d79feae356b9ee14b41
parent7ee3570d018bdd671182b0fcd344276738c4f826 (diff)
add default layout
-rw-r--r--content/_index.md9
-rw-r--r--layouts/_default/baseof.html16
-rw-r--r--layouts/index.html11
3 files changed, 28 insertions, 8 deletions
diff --git a/content/_index.md b/content/_index.md
new file mode 100644
index 0000000..593c322
--- /dev/null
+++ b/content/_index.md
@@ -0,0 +1,9 @@
+---
+title: "Accueil"
+---
+
+# Site en construction...
+
+## Date d'inauguration du fournil: mardi 13 février
+
+## Horaires d'ouverture: 16h30-19h30 du mardi au samedi</h2>
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..a3091e2
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr-fr">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
+ <title>{{ block "title" . }}{{ .Site.Title }} - {{ .Title }}{{ end }}</title>
+ <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
+ <link href="css/fournil.css" rel="stylesheet" type="text/css">
+ </head>
+ <body>
+ {{ block "main" . }}
+ {{ end }}
+ {{ block "footer" . }}
+ {{ end }}
+ </body>
+</html>
diff --git a/layouts/index.html b/layouts/index.html
index f0ee5b0..ef838a0 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,14 +1,9 @@
-{{ partial "header.html" . }}
-
+{{ define "main" }}
<div class="container-fluid">
<div class="vertical-align">
<div class="banner">
- <h1>Site en construction...</h1>
- <h2>Date d'inauguration du fournil: mardi 13 février</h2>
- <h2>Horaires d'ouverture: 16h30-19h30 du mardi au samedi</h2>
+ {{ .Content }}
</div>
</div>
</div>
-
-
-{{ partial "footer.html" }}
+{{ end }}