summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon <brandon@btkoch.xyz>2024-10-26 19:51:38 -0400
committerBrandon <brandon@btkoch.xyz>2024-10-26 19:51:38 -0400
commitcd0279d2787bbf265e12e309b8a61489c727bb2a (patch)
tree929cb425266bb2224665c1c989bffebe2d172f4f
create repo
-rw-r--r--LICENSE21
-rw-r--r--README.md7
-rwxr-xr-x_default/baseof.html44
-rw-r--r--_default/single.html6
-rw-r--r--archetypes/default.md5
-rw-r--r--assets/css/main.css22
-rw-r--r--assets/js/main.js1
-rw-r--r--content-old/_index.md9
-rw-r--r--hugo.toml23
-rw-r--r--layouts/_default/baseof.html44
-rw-r--r--layouts/_default/single.html6
-rw-r--r--layouts/index.html5
-rw-r--r--layouts/partials/footer.html1
-rw-r--r--layouts/partials/head.html5
-rw-r--r--layouts/partials/head/css.html9
-rw-r--r--layouts/partials/head/js.html12
-rw-r--r--layouts/partials/header.html10
-rw-r--r--layouts/partials/langmenu.html5
-rw-r--r--layouts/partials/menu.html7
-rw-r--r--layouts/partials/terms.html23
-rw-r--r--layouts/shortcodes/columns.html7
-rw-r--r--layouts/shortcodes/icon.html4
-rw-r--r--static/favicon.icobin0 -> 15406 bytes
-rw-r--r--static/style.css149
-rw-r--r--theme.toml20
25 files changed, 445 insertions, 0 deletions
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..8aa2645
--- /dev/null
+++ b/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/README.md b/README.md
new file mode 100644
index 0000000..7cec74e
--- /dev/null
+++ b/README.md
@@ -0,0 +1,7 @@
+# Theme Name
+
+## Features
+
+## Installation
+
+## Configuration
diff --git a/_default/baseof.html b/_default/baseof.html
new file mode 100755
index 0000000..3a2c806
--- /dev/null
+++ b/_default/baseof.html
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8">
+ <link rel="icon" href="logo.png" width="192" height="192">
+ <link rel="preconnect" href="https://fonts.googleapis.com">
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+ <link href="https://fonts.googleapis.com/css2?family=Balthazar&display=swap" rel="stylesheet">
+ <link rel="stylesheet" href="/style.css">
+ {{ $title := site.Title }}
+ {{ if not .IsHome }}
+ {{ $title = printf "%s | %s" .Title site.Title }}
+ {{ end }}
+ <title>
+ {{ $title }}
+ </title>
+ </head>
+
+
+ <header>
+ <img src="/logo.png">
+ <div class="topnav">
+ {{ partial "menu.html" . }}
+ </div>
+ <br>
+ </header>
+
+ <body>
+ <div class="box">
+ <main>
+ {{ block "main" . }}{{ end }}
+ </main>
+ </div>
+ </body>
+
+ <body>
+ <div class="contact">
+ </div>
+ </body>
+
+ <footer>
+ <p>Designed by <a style="color:#174372;" href="https://btkoch.xyz">Kocher Web Styling</a></p>
+ </footer>
+</html>
diff --git a/_default/single.html b/_default/single.html
new file mode 100644
index 0000000..c7110a4
--- /dev/null
+++ b/_default/single.html
@@ -0,0 +1,6 @@
+{{ define "main" }}
+
+<h1><u>{{ .Title }}</u></h1>
+{{ .Content }}
+
+{{ end }}
diff --git a/archetypes/default.md b/archetypes/default.md
new file mode 100644
index 0000000..c6f3fce
--- /dev/null
+++ b/archetypes/default.md
@@ -0,0 +1,5 @@
++++
+title = '{{ replace .File.ContentBaseName "-" " " | title }}'
+date = {{ .Date }}
+draft = true
++++
diff --git a/assets/css/main.css b/assets/css/main.css
new file mode 100644
index 0000000..166ade9
--- /dev/null
+++ b/assets/css/main.css
@@ -0,0 +1,22 @@
+body {
+ color: #222;
+ font-family: sans-serif;
+ line-height: 1.5;
+ margin: 1rem;
+ max-width: 768px;
+}
+
+header {
+ border-bottom: 1px solid #222;
+ margin-bottom: 1rem;
+}
+
+footer {
+ border-top: 1px solid #222;
+ margin-top: 1rem;
+}
+
+a {
+ color: #00e;
+ text-decoration: none;
+}
diff --git a/assets/js/main.js b/assets/js/main.js
new file mode 100644
index 0000000..e2aac52
--- /dev/null
+++ b/assets/js/main.js
@@ -0,0 +1 @@
+console.log('This site was generated by Hugo.');
diff --git a/content-old/_index.md b/content-old/_index.md
new file mode 100644
index 0000000..652623b
--- /dev/null
+++ b/content-old/_index.md
@@ -0,0 +1,9 @@
++++
+title = 'Home'
+date = 2023-01-01T08:00:00-07:00
+draft = false
++++
+
+Laborum voluptate pariatur ex culpa magna nostrud est incididunt fugiat
+pariatur do dolor ipsum enim. Consequat tempor do dolor eu. Non id id anim anim
+excepteur excepteur pariatur nostrud qui irure ullamco.
diff --git a/hugo.toml b/hugo.toml
new file mode 100644
index 0000000..c4b80f5
--- /dev/null
+++ b/hugo.toml
@@ -0,0 +1,23 @@
+baseURL = 'https://example.org/'
+languageCode = 'en-us'
+title = 'My New Hugo Site'
+
+# [[menus.main]]
+# name = 'Home'
+# pageRef = '/'
+# weight = 10
+#
+# [[menus.main]]
+# name = 'Services Offered'
+# pageRef = '/services'
+# weight = 20
+#
+# [[menus.main]]
+# name = 'Contact'
+# pageRef = '/contact'
+# weight = 30
+
+[module]
+ [module.hugoVersion]
+ extended = false
+ min = "0.116.0"
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..3a2c806
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8">
+ <link rel="icon" href="logo.png" width="192" height="192">
+ <link rel="preconnect" href="https://fonts.googleapis.com">
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+ <link href="https://fonts.googleapis.com/css2?family=Balthazar&display=swap" rel="stylesheet">
+ <link rel="stylesheet" href="/style.css">
+ {{ $title := site.Title }}
+ {{ if not .IsHome }}
+ {{ $title = printf "%s | %s" .Title site.Title }}
+ {{ end }}
+ <title>
+ {{ $title }}
+ </title>
+ </head>
+
+
+ <header>
+ <img src="/logo.png">
+ <div class="topnav">
+ {{ partial "menu.html" . }}
+ </div>
+ <br>
+ </header>
+
+ <body>
+ <div class="box">
+ <main>
+ {{ block "main" . }}{{ end }}
+ </main>
+ </div>
+ </body>
+
+ <body>
+ <div class="contact">
+ </div>
+ </body>
+
+ <footer>
+ <p>Designed by <a style="color:#174372;" href="https://btkoch.xyz">Kocher Web Styling</a></p>
+ </footer>
+</html>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..c7110a4
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,6 @@
+{{ define "main" }}
+
+<h1><u>{{ .Title }}</u></h1>
+{{ .Content }}
+
+{{ end }}
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..46c82c0
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,5 @@
+{{ define "main" }}
+
+{{ .Content }}
+
+{{ end }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..a7cd916
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1 @@
+<p>Copyright {{ now.Year }}. All rights reserved.</p>
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
new file mode 100644
index 0000000..02c2240
--- /dev/null
+++ b/layouts/partials/head.html
@@ -0,0 +1,5 @@
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
+{{ partialCached "head/css.html" . }}
+{{ partialCached "head/js.html" . }}
diff --git a/layouts/partials/head/css.html b/layouts/partials/head/css.html
new file mode 100644
index 0000000..91b928d
--- /dev/null
+++ b/layouts/partials/head/css.html
@@ -0,0 +1,9 @@
+{{- 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 }}
diff --git a/layouts/partials/head/js.html b/layouts/partials/head/js.html
new file mode 100644
index 0000000..18fe842
--- /dev/null
+++ b/layouts/partials/head/js.html
@@ -0,0 +1,12 @@
+{{- with resources.Get "js/main.js" }}
+ {{- if eq hugo.Environment "development" }}
+ {{- with . | js.Build }}
+ <script src="{{ .RelPermalink }}"></script>
+ {{- end }}
+ {{- else }}
+ {{- $opts := dict "minify" true }}
+ {{- with . | js.Build $opts | fingerprint }}
+ <script src="{{ .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous"></script>
+ {{- end }}
+ {{- end }}
+{{- end }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..31d8f14
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,10 @@
+ <header>
+ <img src="/logo.png">
+ <div class="topnav">
+ <h1>{{ site.Title }}</h1>
+ {{ partial "menu.html" (dict "menuID" "main" "page" .) }}
+ {{ partial "langmenu.html" (dict "languages" .) }}
+ <br>
+ </div>
+ <br>
+ </header>
diff --git a/layouts/partials/langmenu.html b/layouts/partials/langmenu.html
new file mode 100644
index 0000000..356b8f2
--- /dev/null
+++ b/layouts/partials/langmenu.html
@@ -0,0 +1,5 @@
+<ul>
+{{ range $.Site.Home.AllTranslations }}
+<li><a href="{{ .RelPermalink }}">{{ .Language.LanguageName }}</a></li>
+{{ end }}
+</ul>
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html
new file mode 100644
index 0000000..bac3fe2
--- /dev/null
+++ b/layouts/partials/menu.html
@@ -0,0 +1,7 @@
+<nav aria-label="Main Navigation">
+ <ul>
+ {{ range .Site.Menus.main }}
+ <li><a href="{{ .URL }}">{{ .Name }}</a></li>
+ {{ end }}
+ </ul>
+</nav>
diff --git a/layouts/partials/terms.html b/layouts/partials/terms.html
new file mode 100644
index 0000000..47cf6e4
--- /dev/null
+++ b/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/layouts/shortcodes/columns.html b/layouts/shortcodes/columns.html
new file mode 100644
index 0000000..536e87e
--- /dev/null
+++ b/layouts/shortcodes/columns.html
@@ -0,0 +1,7 @@
+<div class="md-columns">
+{{ range split .Inner "<--->" }}
+{{ printf "<div class=\"markdown-inner\">" | htmlUnescape | safeHTML }}
+{{ . | safeHTML }}
+{{ printf "</div>" | htmlUnescape | safeHTML }}
+{{ end }}
+</div>
diff --git a/layouts/shortcodes/icon.html b/layouts/shortcodes/icon.html
new file mode 100644
index 0000000..a61fac1
--- /dev/null
+++ b/layouts/shortcodes/icon.html
@@ -0,0 +1,4 @@
+<a href="{{ .Get "link" }}" target="_blank" rel="noopener noreferrer">
+ <img src="{{ .Get "src" }}" alt="{{ .Get "alt" }}" style="width: 30px; height: 30px; font-size: 0; box-shadow: none; display: inline; " />
+</a>
+
diff --git a/static/favicon.ico b/static/favicon.ico
new file mode 100644
index 0000000..67f8b77
--- /dev/null
+++ b/static/favicon.ico
Binary files differ
diff --git a/static/style.css b/static/style.css
new file mode 100644
index 0000000..fa1fd6a
--- /dev/null
+++ b/static/style.css
@@ -0,0 +1,149 @@
+html, body {
+ margin: 0;
+ padding: 0;
+ height: 100%;
+}
+
+header {
+ font-family: '', serif;
+ color: #D9D9D9;
+ text-align: center;
+ background-color: #174372;
+ background-image: linear-gradient( #44688E, #174372 );
+}
+
+aside {
+ font-family: 'Old Standard TT', serif;
+ font-size: 200%;
+ color: #FF4040;
+ text-shadow: 0 0 3px #000000;
+ text-align: center;
+ text-shadow: 1px 1px 1px 1px rgba(0, 0, 0, .5);
+}
+
+p {
+ font-family: 'Old Standard TT', serif;
+ font-size: 15pt;
+}
+
+body {
+ font-family: 'Old Standard TT', serif;
+ background-color: #174372;
+ height: 100vh;
+}
+
+h1, h2, h3, h4, h5, h6 {
+ text-align: center;
+}
+
+li {
+ padding:10px;
+}
+
+footer {
+ background-color: #D9D9D9;
+ color: #174372;
+ text-align: center;
+}
+
+table {
+ margin-left: auto;
+ margin-right: auto;
+ box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
+ border-collapse: collapse;
+ border: 2px solid #174372;
+}
+
+th, td {
+ border: 1px solid #174372;
+ text-align: center;
+ padding: 10px;
+}
+
+.box img {
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
+ width: 50%;
+ box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
+}
+
+.box {
+ background-color: #D9D9D9;
+ color: #174372;
+ margin: auto;
+ width: 60%;
+ padding: 25px;
+ box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
+}
+
+/*
+.column {
+ flex: 1;
+}
+
+.row {
+ display: flex;
+ column-gap: 20px;
+}
+*/
+
+.contact {
+ font-size: 140%;
+ color: #D9D9D9;
+ text-align: center;
+}
+
+.topnav ul {
+ color:#D9D9D9;
+ text-align: center;
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+ overflow: hidden;
+ background-color: #D9D9D9;
+}
+
+.topnav {
+ font-size: 70;
+}
+.topnav li {
+ display: inline-block;
+ color: #174372;
+ margin-left: 20px;
+ margin-right: 20px;
+}
+
+.topnav li a {
+ color: #174372;
+/* display: block; */
+ text-align: center;
+/* padding: 14px 16px; */
+ text-decoration: none;
+ transform: none;
+}
+
+.topnav a:visited {
+ color: #174372;
+}
+
+/* For columns shortcode: */
+.md-columns {
+ display: flex;
+ flex-wrap: wrap;
+ margin-left: -1rem;
+ margin-right: -1rem;
+
+ div {
+ flex: 1 1;
+ margin: 1rem 0;
+ min-width: 100px;
+ max-width: 100%;
+ padding: 0 1rem;
+ }
+
+ .markdown-inner {
+ margin-top: 0;
+ margin-bottom: 0;
+ }
+}
diff --git a/theme.toml b/theme.toml
new file mode 100644
index 0000000..7fc7017
--- /dev/null
+++ b/theme.toml
@@ -0,0 +1,20 @@
+name = 'Portes'
+license = 'GPL'
+licenselink = 'https://www.gnu.org/licenses/gpl-3.0.en.html'
+description = 'Simple theme for a lightweight small business site'
+
+# 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 = ['company']
+features = ['lightweight', 'simple',]
+
+# If the theme has a single author
+[author]
+ name = 'Brandon Kocher'
+ homepage = 'https://btkoch.xyz/'
+