summaryrefslogtreecommitdiff
path: root/themes/markskitchen/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'themes/markskitchen/layouts')
-rw-r--r--themes/markskitchen/layouts/404.html0
-rw-r--r--themes/markskitchen/layouts/_default/baseof.html9
-rw-r--r--themes/markskitchen/layouts/_default/list.html15
-rw-r--r--themes/markskitchen/layouts/_default/single.html21
-rw-r--r--themes/markskitchen/layouts/index.html3
-rw-r--r--themes/markskitchen/layouts/partials/footer.html3
-rw-r--r--themes/markskitchen/layouts/partials/head.html48
-rw-r--r--themes/markskitchen/layouts/partials/header.html13
8 files changed, 112 insertions, 0 deletions
diff --git a/themes/markskitchen/layouts/404.html b/themes/markskitchen/layouts/404.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/themes/markskitchen/layouts/404.html
diff --git a/themes/markskitchen/layouts/_default/baseof.html b/themes/markskitchen/layouts/_default/baseof.html
new file mode 100644
index 0000000..c4963da
--- /dev/null
+++ b/themes/markskitchen/layouts/_default/baseof.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+ {{- partial "head.html" . -}}
+ <body>
+ {{- partial "header.html" . -}}
+ {{- block "main" . }}{{- end }}
+ {{- partial "footer.html" . -}}
+ </body>
+</html>
diff --git a/themes/markskitchen/layouts/_default/list.html b/themes/markskitchen/layouts/_default/list.html
new file mode 100644
index 0000000..9388e7d
--- /dev/null
+++ b/themes/markskitchen/layouts/_default/list.html
@@ -0,0 +1,15 @@
+{{ define "head" }}
+<link rel="stylesheet" href='{{ "css/list.css" | absURL }}'>
+{{ end }}
+
+{{ define "main" }}
+<main id="main">
+ <ul>
+ {{ range .Pages }}
+ <li>
+ <a class="link" href="{{ .RelPermalink }}">{{ .Title }} --- <i>{{ .PublishDate.Format "January 2, 2006"}}</i></a>
+ </li>
+ {{ end }}
+ </ul>
+</main>
+{{ end }}
diff --git a/themes/markskitchen/layouts/_default/single.html b/themes/markskitchen/layouts/_default/single.html
new file mode 100644
index 0000000..52e9c13
--- /dev/null
+++ b/themes/markskitchen/layouts/_default/single.html
@@ -0,0 +1,21 @@
+{{ define "head" }}
+<link rel="stylesheet" href='{{ "css/single.css" | absURL }}'>
+{{ end }}
+
+{{ define "main" }}
+<main id="main" class="post">
+ <h1>{{ .Title }}</h1>
+ <div><i>{{ .PublishDate.Format "January 2, 2006"}}</i></div>
+ <article class="content">
+ {{ .Content }}
+ </article>
+ {{ if ne .Params.tags nil }}
+ <div>
+ <b>Keywords: </b>
+ {{ range .Params.tags }}
+ <a class="link" href='{{ "tags" | absURL }}/{{ . | urlize }}'>#{{ . }}</a>
+ {{ end }}
+ </div>
+ {{ end }}
+</main>
+{{ end }}
diff --git a/themes/markskitchen/layouts/index.html b/themes/markskitchen/layouts/index.html
new file mode 100644
index 0000000..422469a
--- /dev/null
+++ b/themes/markskitchen/layouts/index.html
@@ -0,0 +1,3 @@
+{{ define "head" }}
+<link rel="stylesheet" href='{{ "css/index.css" | absURL }}'>
+{{ end }}
diff --git a/themes/markskitchen/layouts/partials/footer.html b/themes/markskitchen/layouts/partials/footer.html
new file mode 100644
index 0000000..19c1837
--- /dev/null
+++ b/themes/markskitchen/layouts/partials/footer.html
@@ -0,0 +1,3 @@
+<footer>
+ <div>Mark Powers &lt;<span class="email">mark</span>&gt; &#169; 2022 </div>
+</footer>
diff --git a/themes/markskitchen/layouts/partials/head.html b/themes/markskitchen/layouts/partials/head.html
new file mode 100644
index 0000000..3bd261e
--- /dev/null
+++ b/themes/markskitchen/layouts/partials/head.html
@@ -0,0 +1,48 @@
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+ <!-- author -->
+ <meta name="author" content="{{ .Site.Author.name }}">
+
+ <!-- description -->
+ {{ if .Description }}
+ <meta name="description" content="{{ .Description }}">
+ {{ else if and .IsPage .Summary }}
+ <meta name="description" content="{{ .Summary }}">
+ {{ else }}
+ <meta name="description" content="{{ .Site.Params.description }}">
+ {{ end }}
+
+ <!-- favicon -->
+ <link rel="icon" href="{{ .Site.Params.favicon | absURL }}">
+
+ <!-- keywords -->
+ {{ if .Keywords }}
+ <meta name="keywords" content="{{ range $key, $value := .Keywords }} {{ $value }} {{ end }}">
+ {{ end }}
+
+ <!-- permalink -->
+ <link rel="canonical" href="{{ .Permalink }}">
+
+ <!-- rss -->
+ {{ range .AlternativeOutputFormats -}}
+ {{ printf `
+ <link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+ {{ end -}}
+
+ <!-- schema -->
+ {{ template "_internal/schema.html" . }}
+
+ <!-- style -->
+ <link media="screen" rel="stylesheet" href='{{ "css/common.css" | absURL }}'>
+
+ <!-- title -->
+ {{ if .IsHome }}
+ <title>{{ .Site.Title }}</title>
+ {{ else }}
+ <title>{{ .Title }} - {{ .Site.Title }}</title>
+ {{ end }}
+
+ {{ block "head" . }}{{ end }}
+</head>
diff --git a/themes/markskitchen/layouts/partials/header.html b/themes/markskitchen/layouts/partials/header.html
new file mode 100644
index 0000000..97fec62
--- /dev/null
+++ b/themes/markskitchen/layouts/partials/header.html
@@ -0,0 +1,13 @@
+<header id="header">
+ <h1>
+ <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
+ </h1>
+
+ <nav>
+ {{ range .Site.Menus.main }}
+ <span class="nav-bar-item">
+ <a class="link" href="{{ .URL | safeURL }}">{{ .Name }}</a>
+ </span>
+ {{ end }}
+ </nav>
+</header>