diff options
Diffstat (limited to 'themes/stingray/layouts')
-rw-r--r-- | themes/stingray/layouts/404.html | 0 | ||||
-rw-r--r-- | themes/stingray/layouts/_default/baseof.html | 15 | ||||
-rw-r--r-- | themes/stingray/layouts/_default/list.html | 12 | ||||
-rw-r--r-- | themes/stingray/layouts/_default/single.html | 0 | ||||
-rw-r--r-- | themes/stingray/layouts/index.html | 11 | ||||
-rw-r--r-- | themes/stingray/layouts/partials/footer.html | 3 | ||||
-rw-r--r-- | themes/stingray/layouts/partials/head.html | 12 | ||||
-rw-r--r-- | themes/stingray/layouts/partials/header.html | 0 | ||||
-rw-r--r-- | themes/stingray/layouts/partials/metadata.html | 0 |
9 files changed, 53 insertions, 0 deletions
diff --git a/themes/stingray/layouts/404.html b/themes/stingray/layouts/404.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/themes/stingray/layouts/404.html diff --git a/themes/stingray/layouts/_default/baseof.html b/themes/stingray/layouts/_default/baseof.html new file mode 100644 index 0000000..a935536 --- /dev/null +++ b/themes/stingray/layouts/_default/baseof.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + {{- partial "head.html" . -}} + <body> + <header> + {{- partial "header.html" . -}} + </header> + <main id="content"> + {{- block "main" . }}{{- end }} + </main> + <footer> + {{- partial "footer.html" . -}} + </footer> + </body> +</html> diff --git a/themes/stingray/layouts/_default/list.html b/themes/stingray/layouts/_default/list.html new file mode 100644 index 0000000..2a2cd11 --- /dev/null +++ b/themes/stingray/layouts/_default/list.html @@ -0,0 +1,12 @@ +{{ define "main" }} +<h1>{{ .Title }}</h1> +{{ range .Pages.ByPublishDate.Reverse }} +<p> + <h3><a class="title" href="{{ .RelPermalink }}">{{ .Title }}</a></h3> + {{ partial "metadata.html" . }} + <a class="summary" href="{{ .RelPermalink }}"> + <p>{{ .Summary }}</p> + </a> +</p> +{{ end }} +{{ end }}
\ No newline at end of file diff --git a/themes/stingray/layouts/_default/single.html b/themes/stingray/layouts/_default/single.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/themes/stingray/layouts/_default/single.html diff --git a/themes/stingray/layouts/index.html b/themes/stingray/layouts/index.html new file mode 100644 index 0000000..4bc1983 --- /dev/null +++ b/themes/stingray/layouts/index.html @@ -0,0 +1,11 @@ +{{ define "main" }} +<div id="home-jumbotron" class="jumbotron"> + <div class="text-center"> + <h1 class="title">{{ .Site.Title }}</h1> + {{ .Description }} + </div> + <div> + {{ .Content }} + </div> +</div> +{{ end }}
\ No newline at end of file diff --git a/themes/stingray/layouts/partials/footer.html b/themes/stingray/layouts/partials/footer.html new file mode 100644 index 0000000..5768ad1 --- /dev/null +++ b/themes/stingray/layouts/partials/footer.html @@ -0,0 +1,3 @@ +<p class="text-center"> + (c) 2022 <a class="h-card" href="https://rayhammer.dev">RayHammer</a> +</p>
\ No newline at end of file diff --git a/themes/stingray/layouts/partials/head.html b/themes/stingray/layouts/partials/head.html new file mode 100644 index 0000000..4a0ff2d --- /dev/null +++ b/themes/stingray/layouts/partials/head.html @@ -0,0 +1,12 @@ +<head prefix="og: https://ogp.me/ns#"> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css"> + <link rel="stylesheet" type="text/css" href="/css/main.css"> + <meta property="og:type" content="website"> + {{ $title := print .Site.Title " | " .Title }} + {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} + <title>{{ $title }}</title> + <link rel="me" href="mailto:mail@rayhammer.dev" /> + <link rel="me" href="https://github.com/rayhammer" /> +</head>
\ No newline at end of file diff --git a/themes/stingray/layouts/partials/header.html b/themes/stingray/layouts/partials/header.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/themes/stingray/layouts/partials/header.html diff --git a/themes/stingray/layouts/partials/metadata.html b/themes/stingray/layouts/partials/metadata.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/themes/stingray/layouts/partials/metadata.html |