summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/_markup/render-heading.html6
-rw-r--r--layouts/_default/baseof.html19
-rw-r--r--layouts/_default/home.html3
-rw-r--r--layouts/_default/single.html4
4 files changed, 32 insertions, 0 deletions
diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html
new file mode 100644
index 0000000..7035d68
--- /dev/null
+++ b/layouts/_default/_markup/render-heading.html
@@ -0,0 +1,6 @@
+<h{{ .Level }} {{ if le .Level 3 }} id="{{ .Anchor | safeURL }}" {{ end }}>
+{{ if le .Level 3 }}
+ <a href="#{{ .Anchor | safeURL }}">#</a>
+{{ end }}
+{{ .Text | safeHTML }}
+</h{{ .Level }}>
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..d9b2212
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html lang="{{ .Site.Language }}">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>{{ if not .IsHome }}{{ .Title | title }} - {{ end }}{{ .Site.Title }}</title>
+ <link rel="stylesheet" type="text/css" href="/style.css">
+ <link rel="icon" href="/favicon.ico">
+</head>
+<body>
+ {{ partial "header.html" . }}
+ <main>
+ {{ block "main" . }}
+ {{ .Content }}
+ {{ end }}
+ {{ partial "footer.html" . }}
+ </main>
+</body>
+</html>
diff --git a/layouts/_default/home.html b/layouts/_default/home.html
new file mode 100644
index 0000000..94674b6
--- /dev/null
+++ b/layouts/_default/home.html
@@ -0,0 +1,3 @@
+{{ define "main" }}
+ {{ partial "all-posts.html" . }}
+{{ end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..4cfd224
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,4 @@
+{{ define "main" }}
+ <h1>{{ .Title }}</h1>
+ {{ .Content }}
+{{ end }}