summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2023-09-27 18:47:44 +0200
committerMike Vink <mike1994vink@gmail.com>2023-09-27 18:47:44 +0200
commitf38d4b768d51cbe70a8bd1a56584d6202b57556f (patch)
tree1576f78e29fc60517a6bb2acfa9192977beca7d0 /themes
hugo initmain
Diffstat (limited to 'themes')
-rw-r--r--themes/vinkland/LICENSE21
-rw-r--r--themes/vinkland/README.md7
-rw-r--r--themes/vinkland/archetypes/default.md5
-rw-r--r--themes/vinkland/assets/css/#main.css#28
l---------themes/vinkland/assets/css/.#main.css1
-rw-r--r--themes/vinkland/assets/css/main.css28
-rw-r--r--themes/vinkland/assets/js/main.js1
-rw-r--r--themes/vinkland/hugo.toml8
-rw-r--r--themes/vinkland/layouts/_default/index.html29
-rw-r--r--themes/vinkland/layouts/_default/list.html8
-rw-r--r--themes/vinkland/layouts/_default/single.html10
-rw-r--r--themes/vinkland/layouts/partials/footer.html1
-rw-r--r--themes/vinkland/layouts/partials/terms.html23
-rw-r--r--themes/vinkland/static/favicon.icobin0 -> 15406 bytes
-rw-r--r--themes/vinkland/theme.toml31
15 files changed, 201 insertions, 0 deletions
diff --git a/themes/vinkland/LICENSE b/themes/vinkland/LICENSE
new file mode 100644
index 0000000..8aa2645
--- /dev/null
+++ b/themes/vinkland/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) [year] [fullname]
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/themes/vinkland/README.md b/themes/vinkland/README.md
new file mode 100644
index 0000000..7cec74e
--- /dev/null
+++ b/themes/vinkland/README.md
@@ -0,0 +1,7 @@
+# Theme Name
+
+## Features
+
+## Installation
+
+## Configuration
diff --git a/themes/vinkland/archetypes/default.md b/themes/vinkland/archetypes/default.md
new file mode 100644
index 0000000..c6f3fce
--- /dev/null
+++ b/themes/vinkland/archetypes/default.md
@@ -0,0 +1,5 @@
++++
+title = '{{ replace .File.ContentBaseName "-" " " | title }}'
+date = {{ .Date }}
+draft = true
++++
diff --git a/themes/vinkland/assets/css/#main.css# b/themes/vinkland/assets/css/#main.css#
new file mode 100644
index 0000000..3a4f968
--- /dev/null
+++ b/themes/vinkland/assets/css/#main.css#
@@ -0,0 +1,28 @@
+:root {
+ --bg: #fafafa;
+ --fg: #2f343f;
+ --hl: #4084d6;
+ --hl2: #ed4737;
+}
+
+body {
+ color: var(--fg);
+
+ font-family: C059;
+ margin: 0 auto;
+ max-width: 800px;
+ flex-direction: column;
+}
+
+header {
+ margin-bottom: 1rem;
+}
+
+footer {
+ margin-top: 1rem;
+}
+
+a {
+ color: #00e;
+ text-decoration: none;
+}
diff --git a/themes/vinkland/assets/css/.#main.css b/themes/vinkland/assets/css/.#main.css
new file mode 120000
index 0000000..1cd5859
--- /dev/null
+++ b/themes/vinkland/assets/css/.#main.css
@@ -0,0 +1 @@
+mike@lemptop.2768:1693838219 \ No newline at end of file
diff --git a/themes/vinkland/assets/css/main.css b/themes/vinkland/assets/css/main.css
new file mode 100644
index 0000000..2427214
--- /dev/null
+++ b/themes/vinkland/assets/css/main.css
@@ -0,0 +1,28 @@
+:root {
+ --bg: #fafafa;
+ --fg: #2f343f;
+ --hl: #4084d6;
+ --hl2: #ed4737;
+}
+
+body {
+ color: var(--fg);
+
+ font-family: C059;
+ margin: 0 auto;
+ max-width: 800px;
+ flex-direction: column;
+}
+
+header {
+ margin-bottom: 1rem;
+}
+
+footer {
+ margin-top: 1rem;
+}
+
+a {
+ color: #00e;
+ text-decoration: none;
+}
diff --git a/themes/vinkland/assets/js/main.js b/themes/vinkland/assets/js/main.js
new file mode 100644
index 0000000..e2aac52
--- /dev/null
+++ b/themes/vinkland/assets/js/main.js
@@ -0,0 +1 @@
+console.log('This site was generated by Hugo.');
diff --git a/themes/vinkland/hugo.toml b/themes/vinkland/hugo.toml
new file mode 100644
index 0000000..1f4fc2f
--- /dev/null
+++ b/themes/vinkland/hugo.toml
@@ -0,0 +1,8 @@
+baseURL = 'https://example.org/'
+languageCode = 'en-us'
+title = 'My New Hugo Site'
+
+[module]
+ [module.hugoVersion]
+ extended = false
+ min = "0.116.0"
diff --git a/themes/vinkland/layouts/_default/index.html b/themes/vinkland/layouts/_default/index.html
new file mode 100644
index 0000000..c17e5c2
--- /dev/null
+++ b/themes/vinkland/layouts/_default/index.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html lang="{{ or site.Language.LanguageCode site.Language.Lang }}" dir="{{ or site.Language.LanguageDirection `ltr` }}">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0">
+ <title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
+
+ {{- with resources.Get "css/main.css" }}
+ {{- if eq hugo.Environment "development" }}
+ <link rel="stylesheet" href="{{ .RelPermalink }}">
+ {{- else }}
+ {{- with . | minify | fingerprint }}
+ <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
+ {{- end }}
+ {{- end }}
+ {{- end }}
+</head>
+<body>
+ <header>
+ <h1>{{ site.Title }}</h1>
+ </header>
+ <main>
+ test
+ </main>
+ <footer>
+ {{ partial "footer.html" . }}
+ </footer>
+</body>
+</html>
diff --git a/themes/vinkland/layouts/_default/list.html b/themes/vinkland/layouts/_default/list.html
new file mode 100644
index 0000000..50fc92d
--- /dev/null
+++ b/themes/vinkland/layouts/_default/list.html
@@ -0,0 +1,8 @@
+{{ define "main" }}
+ <h1>{{ .Title }}</h1>
+ {{ .Content }}
+ {{ range .Pages }}
+ <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
+ {{ .Summary }}
+ {{ end }}
+{{ end }}
diff --git a/themes/vinkland/layouts/_default/single.html b/themes/vinkland/layouts/_default/single.html
new file mode 100644
index 0000000..7e286c8
--- /dev/null
+++ b/themes/vinkland/layouts/_default/single.html
@@ -0,0 +1,10 @@
+{{ define "main" }}
+ <h1>{{ .Title }}</h1>
+
+ {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
+ {{ $dateHuman := .Date | time.Format ":date_long" }}
+ <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
+
+ {{ .Content }}
+ {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
+{{ end }}
diff --git a/themes/vinkland/layouts/partials/footer.html b/themes/vinkland/layouts/partials/footer.html
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/themes/vinkland/layouts/partials/footer.html
@@ -0,0 +1 @@
+
diff --git a/themes/vinkland/layouts/partials/terms.html b/themes/vinkland/layouts/partials/terms.html
new file mode 100644
index 0000000..47cf6e4
--- /dev/null
+++ b/themes/vinkland/layouts/partials/terms.html
@@ -0,0 +1,23 @@
+{{- /*
+For a given taxonomy, renders a list of terms assigned to the page.
+
+@context {page} page The current page.
+@context {string} taxonomy The taxonony.
+
+@example: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
+*/}}
+
+{{- $page := .page }}
+{{- $taxonomy := .taxonomy }}
+
+{{- with $page.GetTerms $taxonomy }}
+ {{- $label := (index . 0).Parent.LinkTitle }}
+ <div>
+ <div>{{ $label }}:</div>
+ <ul>
+ {{- range . }}
+ <li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
+ {{- end }}
+ </ul>
+ </div>
+{{- end }}
diff --git a/themes/vinkland/static/favicon.ico b/themes/vinkland/static/favicon.ico
new file mode 100644
index 0000000..67f8b77
--- /dev/null
+++ b/themes/vinkland/static/favicon.ico
Binary files differ
diff --git a/themes/vinkland/theme.toml b/themes/vinkland/theme.toml
new file mode 100644
index 0000000..3ba3164
--- /dev/null
+++ b/themes/vinkland/theme.toml
@@ -0,0 +1,31 @@
+name = 'Theme name'
+license = 'MIT'
+licenselink = 'https://github.com/owner/repo/LICENSE'
+description = 'Theme description'
+
+# The home page of the theme, where the source can be found
+homepage = 'https://github.com/owner/repo'
+
+# If you have a running demo of the theme
+demosite = 'https://owner.github.io/repo'
+
+# Taxonomy terms
+tags = ['blog', 'company']
+features = ['some', 'awesome', 'features']
+
+# If the theme has multiple authors
+authors = [
+ {name = 'Name of author', homepage = 'Website of author'},
+ {name = 'Name of author', homepage = 'Website of author'}
+]
+
+# If the theme has a single author
+[author]
+ name = 'Your name'
+ homepage = 'Your website'
+
+# If porting an existing theme
+[original]
+ author = 'Name of original author'
+ homepage = 'Website of original author'
+ repo = 'https://github.com/owner/repo'