summaryrefslogtreecommitdiffhomepage
path: root/themes/hugo-bearblog/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'themes/hugo-bearblog/layouts')
m---------themes/hugo-bearblog0
-rw-r--r--themes/hugo-bearblog/layouts/404.html6
-rw-r--r--themes/hugo-bearblog/layouts/_default/baseof.html43
-rw-r--r--themes/hugo-bearblog/layouts/_default/list.html38
-rw-r--r--themes/hugo-bearblog/layouts/_default/single.html20
-rw-r--r--themes/hugo-bearblog/layouts/index.html3
-rw-r--r--themes/hugo-bearblog/layouts/partials/custom_body.html3
-rw-r--r--themes/hugo-bearblog/layouts/partials/custom_head.html3
-rw-r--r--themes/hugo-bearblog/layouts/partials/favicon.html2
-rw-r--r--themes/hugo-bearblog/layouts/partials/footer.html1
-rw-r--r--themes/hugo-bearblog/layouts/partials/header.html4
-rw-r--r--themes/hugo-bearblog/layouts/partials/nav.html7
-rw-r--r--themes/hugo-bearblog/layouts/partials/seo_tags.html13
-rw-r--r--themes/hugo-bearblog/layouts/partials/style.html173
-rw-r--r--themes/hugo-bearblog/layouts/robots.txt2
15 files changed, 318 insertions, 0 deletions
diff --git a/themes/hugo-bearblog b/themes/hugo-bearblog
deleted file mode 160000
-Subproject efc24bc5e95f0ccb88051e1a7d95e8a1404e953
diff --git a/themes/hugo-bearblog/layouts/404.html b/themes/hugo-bearblog/layouts/404.html
new file mode 100644
index 0000000..c6b3dfd
--- /dev/null
+++ b/themes/hugo-bearblog/layouts/404.html
@@ -0,0 +1,6 @@
+{{ define "title" }}404{{ end }}
+
+{{ define "main" }}
+<h1>404</h1>
+<h2>ʕノ•ᴥ•ʔノ ︵ ┻━┻</h2>
+{{ end }}
diff --git a/themes/hugo-bearblog/layouts/_default/baseof.html b/themes/hugo-bearblog/layouts/_default/baseof.html
new file mode 100644
index 0000000..6bce2dc
--- /dev/null
+++ b/themes/hugo-bearblog/layouts/_default/baseof.html
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
+
+<head>
+ <meta http-equiv="X-Clacks-Overhead" content="GNU Terry Pratchett" />
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ {{- partial "favicon.html" . -}}
+ <title>{{- block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{- end }}</title>
+
+ {{- partial "seo_tags.html" . -}}
+ <meta name="referrer" content="no-referrer-when-downgrade" />
+
+ {{ with .OutputFormats.Get "rss" -}}
+ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+ {{ end -}}
+
+ {{- partial "style.html" . -}}
+
+ <!-- A partial to be overwritten by the user.
+ Simply place a custom_head.html into
+ your local /layouts/partials-directory -->
+ {{- partial "custom_head.html" . -}}
+</head>
+
+<body>
+ <header>
+ {{- partial "header.html" . -}}
+ </header>
+ <main>
+ {{- block "main" . }}{{- end }}
+ </main>
+ <footer>
+ {{- partial "footer.html" . -}}
+ </footer>
+
+ <!-- A partial to be overwritten by the user.
+ Simply place a custom_body.html into
+ your local /layouts/partials-directory -->
+ {{- partial "custom_body.html" . -}}
+</body>
+
+</html>
diff --git a/themes/hugo-bearblog/layouts/_default/list.html b/themes/hugo-bearblog/layouts/_default/list.html
new file mode 100644
index 0000000..443cd2f
--- /dev/null
+++ b/themes/hugo-bearblog/layouts/_default/list.html
@@ -0,0 +1,38 @@
+{{ define "main" }}
+<content>
+ {{ if .Data.Singular }}
+ <h3 style="margin-bottom:0">filtering for "{{ .Title }}"</h3>
+ <small>
+ <a href="{{ "blog" | relURL }}">remove filter</a>
+ </small>
+ {{ end }}
+ <ul class="blog-posts">
+ {{ range .Pages }}
+ <li>
+ <span>
+ <i>
+ <time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
+ {{ strings.ToLower (.Date.Format (default "02 Jan, 2006" .Site.Params.dateFormat)) }}
+ </time>
+ </i>
+ </span>
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ </li>
+ {{ else }}
+ <li>
+ No posts yet
+ </li>
+ {{ end }}
+ </ul>
+ {{ if .Data.Singular }}
+ {{else}}
+ <small>
+ <div>
+ {{ range .Site.Taxonomies.tags }}
+ <a href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a>&nbsp;
+ {{ end }}
+ </div>
+ </small>
+ {{ end }}
+</content>
+{{ end }}
diff --git a/themes/hugo-bearblog/layouts/_default/single.html b/themes/hugo-bearblog/layouts/_default/single.html
new file mode 100644
index 0000000..346c9bc
--- /dev/null
+++ b/themes/hugo-bearblog/layouts/_default/single.html
@@ -0,0 +1,20 @@
+{{ define "main" }}
+{{ if eq .Type "blog" }}{{ if not .Params.menu }}
+<h1>{{ .Title }}</h1>
+<p>
+ <i>
+ <time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
+ {{ strings.ToLower (.Date.Format (default "02 Jan, 2006" .Site.Params.dateFormat)) }}
+ </time>
+ </i>
+</p>
+{{ end }}{{ end }}
+<content>
+ {{ .Content }}
+</content>
+<p>
+ {{ range (.GetTerms "tags") }}
+ <a href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
+ {{ end }}
+</p>
+{{ end }}
diff --git a/themes/hugo-bearblog/layouts/index.html b/themes/hugo-bearblog/layouts/index.html
new file mode 100644
index 0000000..9983b08
--- /dev/null
+++ b/themes/hugo-bearblog/layouts/index.html
@@ -0,0 +1,3 @@
+{{ define "main" }}
+{{ .Content }}
+{{ end }}
diff --git a/themes/hugo-bearblog/layouts/partials/custom_body.html b/themes/hugo-bearblog/layouts/partials/custom_body.html
new file mode 100644
index 0000000..951fb15
--- /dev/null
+++ b/themes/hugo-bearblog/layouts/partials/custom_body.html
@@ -0,0 +1,3 @@
+ <!-- A partial to be overwritten by the user.
+ Simply place a custom_body.html into
+ your local /layouts/partials-directory -->
diff --git a/themes/hugo-bearblog/layouts/partials/custom_head.html b/themes/hugo-bearblog/layouts/partials/custom_head.html
new file mode 100644
index 0000000..4c53c40
--- /dev/null
+++ b/themes/hugo-bearblog/layouts/partials/custom_head.html
@@ -0,0 +1,3 @@
+<!-- A partial to be overwritten by the user.
+ Simply place a custom_head.html into
+ your local /layouts/partials-directory -->
diff --git a/themes/hugo-bearblog/layouts/partials/favicon.html b/themes/hugo-bearblog/layouts/partials/favicon.html
new file mode 100644
index 0000000..ccf1a5d
--- /dev/null
+++ b/themes/hugo-bearblog/layouts/partials/favicon.html
@@ -0,0 +1,2 @@
+{{ with .Site.Params.favicon }}
+<link rel="shortcut icon" href="{{ . | absURL }}" />{{ end }}
diff --git a/themes/hugo-bearblog/layouts/partials/footer.html b/themes/hugo-bearblog/layouts/partials/footer.html
new file mode 100644
index 0000000..8eca955
--- /dev/null
+++ b/themes/hugo-bearblog/layouts/partials/footer.html
@@ -0,0 +1 @@
+{{ if ne .Site.Params.hideMadeWithLine true }}Made with <a href="https://github.com/janraasch/hugo-bearblog/">Hugo ʕ•ᴥ•ʔ Bear</a>{{ end }}
diff --git a/themes/hugo-bearblog/layouts/partials/header.html b/themes/hugo-bearblog/layouts/partials/header.html
new file mode 100644
index 0000000..9bb5112
--- /dev/null
+++ b/themes/hugo-bearblog/layouts/partials/header.html
@@ -0,0 +1,4 @@
+<a href="{{ "" | relURL }}" class="title">
+ <h2>{{ .Site.Title }}</h2>
+</a>
+<nav>{{- partial "nav.html" . -}}</nav>
diff --git a/themes/hugo-bearblog/layouts/partials/nav.html b/themes/hugo-bearblog/layouts/partials/nav.html
new file mode 100644
index 0000000..f4fabed
--- /dev/null
+++ b/themes/hugo-bearblog/layouts/partials/nav.html
@@ -0,0 +1,7 @@
+<a href="{{ "" | relURL }}">Home</a>
+{{ range .Site.Menus.main }}
+<a href="{{ .URL }}">{{ .Name }}</a>
+{{ end }}
+{{ with .Site.GetPage "/blog" }}
+<a href="{{ "blog" | relURL }}">Blog</a>
+{{ end }}
diff --git a/themes/hugo-bearblog/layouts/partials/seo_tags.html b/themes/hugo-bearblog/layouts/partials/seo_tags.html
new file mode 100644
index 0000000..0b01f8b
--- /dev/null
+++ b/themes/hugo-bearblog/layouts/partials/seo_tags.html
@@ -0,0 +1,13 @@
+<!-- Primary Meta Tags -->
+<meta name="title" content="{{ with .Title }}{{ . }}{{ else }}{{ .Site.Title }}{{ end }}" />
+<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" />
+<meta name="keywords" content="{{ if .IsPage}}{{ range $index, $tag := .Params.tags }}{{ $tag }},{{ end }}{{ else }}{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}{{ printf "%s," $term }}{{ end }}{{ end }}{{ end }}" />
+
+<!-- Open Graph / Facebook -->
+{{ template "_internal/opengraph.html" . }}
+
+<!-- Twitter -->
+{{ template "_internal/twitter_cards.html" . }}
+
+<!-- Microdata -->
+{{ template "_internal/schema.html" . }}
diff --git a/themes/hugo-bearblog/layouts/partials/style.html b/themes/hugo-bearblog/layouts/partials/style.html
new file mode 100644
index 0000000..122a641
--- /dev/null
+++ b/themes/hugo-bearblog/layouts/partials/style.html
@@ -0,0 +1,173 @@
+<style>
+ body {
+ font-family: Verdana, sans-serif;
+ margin: auto;
+ padding: 20px;
+ max-width: 720px;
+ text-align: left;
+ background-color: #fff;
+ word-wrap: break-word;
+ overflow-wrap: break-word;
+ line-height: 1.5;
+ color: #444;
+ }
+
+ h1,
+ h2,
+ h3,
+ h4,
+ h5,
+ h6,
+ strong,
+ b {
+ color: #222;
+ }
+
+ a {
+ color: #3273dc;
+ /*color: #ff5e6c;*/
+ }
+
+ .title {
+ text-decoration: none;
+ border: 0;
+ }
+
+ .title span {
+ font-weight: 400;
+ }
+
+ nav a {
+ margin-right: 10px;
+ }
+
+ textarea {
+ width: 100%;
+ font-size: 16px;
+ }
+
+ input {
+ font-size: 16px;
+ }
+
+ content {
+ line-height: 1.6;
+ }
+
+ table {
+ width: 100%;
+ }
+
+ img {
+ max-width: 100%;
+ }
+
+ code {
+ padding: 2px 5px;
+ background-color: #f2f2f2;
+ }
+
+ pre code {
+ color: #222;
+ display: block;
+ padding: 20px;
+ white-space: pre-wrap;
+ font-size: 14px;
+ overflow-x: auto;
+ }
+
+ div.highlight pre {
+ background-color: initial;
+ color: initial;
+ }
+
+ div.highlight code {
+ background-color: unset;
+ color: unset;
+ }
+
+ blockquote {
+ border-left: 1px solid #999;
+ color: #222;
+ padding-left: 20px;
+ font-style: italic;
+ }
+
+ footer {
+ padding: 25px;
+ text-align: center;
+ }
+
+ .helptext {
+ color: #777;
+ font-size: small;
+ }
+
+ .errorlist {
+ color: #eba613;
+ font-size: small;
+ }
+
+ /* blog posts */
+ ul.blog-posts {
+ list-style-type: none;
+ padding: unset;
+ }
+
+ ul.blog-posts li {
+ display: flex;
+ }
+
+ ul.blog-posts li span {
+ flex: 0 0 130px;
+ }
+
+ ul.blog-posts li a:visited {
+ color: #8b6fcb;
+ }
+
+ @media (prefers-color-scheme: dark) {
+ body {
+ background-color: #333;
+ color: #ddd;
+ }
+
+ h1,
+ h2,
+ h3,
+ h4,
+ h5,
+ h6,
+ strong,
+ b {
+ color: #eee;
+ }
+
+ a {
+ color: #8cc2dd;
+ }
+
+ code {
+ background-color: #777;
+ }
+
+ pre code {
+ color: #ddd;
+ }
+
+ blockquote {
+ color: #ccc;
+ }
+
+ textarea,
+ input {
+ background-color: #252525;
+ color: #ddd;
+ }
+
+ .helptext {
+ color: #aaa;
+ }
+ }
+
+</style>
diff --git a/themes/hugo-bearblog/layouts/robots.txt b/themes/hugo-bearblog/layouts/robots.txt
new file mode 100644
index 0000000..0326f5c
--- /dev/null
+++ b/themes/hugo-bearblog/layouts/robots.txt
@@ -0,0 +1,2 @@
+User-Agent: *
+Sitemap: {{ "sitemap.xml" | absURL }}