commit d80d36151bf4f5c6a6cdcb940a7bf95dfdf3d4a9
Author: Gabriel <gabriel@libresolutions.network>
Date:   Wed Aug 17 14:47:54 2022 -0400

    start

diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..147d594
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2022 YOUR_NAME_HERE
+
+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/archetypes/default.md b/archetypes/default.md
new file mode 100644
index 0000000..ac36e06
--- /dev/null
+++ b/archetypes/default.md
@@ -0,0 +1,2 @@
++++
++++
diff --git a/layouts/404.html b/layouts/404.html
new file mode 100644
index 0000000..e69de29
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..5f8e2ec
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+    {{- partial "head.html" . -}}
+    <body>
+        {{- partial "header.html" . -}}
+        <div id="content">
+        {{- block "main" . }}{{- end }}
+        </div>
+        {{- partial "footer.html" . -}}
+    </body>
+</html>
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..183147d
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+    {{partial "head" .}}
+    <body>
+            {{partial "profile" .}}
+            <aside id="posts">
+            {{range .Pages}}
+                {{partial "post" .}}
+                <hr>
+            {{end}}
+        </aside>
+    </body>
+</html>
\ No newline at end of file
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml
new file mode 100644
index 0000000..c97819c
--- /dev/null
+++ b/layouts/_default/rss.xml
@@ -0,0 +1,20 @@
+<rss version="2.0">
+  <channel>
+	<title>{{.Title}}</title>
+	<link>{{ .Permalink }}</link>
+	<description>{{.Params.description}}</description>
+	<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
+	<language>{{.}}</language>{{end}}
+	{{ range .Pages }}
+	<item>
+		<title>{{ .Title }}</title>
+		<link>{{ .Permalink }}</link>
+		<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
+		{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
+		<guid>{{ .Permalink }}</guid>
+		<description>{{- .Summary | html -}}</description>
+        <content:encoded>{{- .Content | html -}}</content:encoded>
+	</item>
+	{{ end }}
+	</channel>
+</rss>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..85054da
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<html>
+    {{partial "head" .}}
+    <body>
+            {{partial "profile" .}}
+    </body>
+</html>
\ No newline at end of file
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..7b0cb8a
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+    {{partial "head" .}}
+    <body>
+        {{partial "profile" .}}
+        <aside id="posts">
+                {{range first 10 .Site.RegularPages}}
+                {{partial "post" .}}
+                <hr>
+            {{end}}
+        </aside>
+    </body>
+</html>
\ No newline at end of file
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..e69de29
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
new file mode 100644
index 0000000..0ae3841
--- /dev/null
+++ b/layouts/partials/head.html
@@ -0,0 +1,7 @@
+<head>
+<meta charset="utf-8" />
+<title>{{.Title}}</title>
+<link rel="stylesheet" href="/css/theme.css">
+<link rel="stylesheet" href="/style2.css">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+</head>
\ No newline at end of file
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..e69de29
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
new file mode 100644
index 0000000..a2f61e1
--- /dev/null
+++ b/layouts/partials/nav.html
@@ -0,0 +1,9 @@
+<nav>{{ range .Site.Sections }}
+<a href="{{.Permalink}}">
+    <img src="{{.Params.icon}}">
+    <h2>{{.Title}}</h2>
+    {{if .Params.icon}}
+    {{end}}
+</a>
+{{end}}
+</nav>
diff --git a/layouts/partials/post.html b/layouts/partials/post.html
new file mode 100644
index 0000000..0314c64
--- /dev/null
+++ b/layouts/partials/post.html
@@ -0,0 +1,10 @@
+<article class="post">
+<a href="{{.Permalink}}"><h2>{{.Title}}</h2></a>
+{{if .Date }}
+<p>{{.Date  | time.Format "Jan 02 2006"}}</p>
+{{end}}
+{{if .Params.video}}<video controls autoplay muted loop><source src="{{.Params.video}}"></video>{{end}}
+{{if .Params.audio}}<audio controls><source src="{{.Params.audio}}"></audio>{{end}}
+{{if .Params.image}}<img src="{{.Params.image}}">{{end}}
+<p>{{.Summary}}</p>
+</article>
\ No newline at end of file
diff --git a/layouts/partials/profile.html b/layouts/partials/profile.html
new file mode 100644
index 0000000..b47bd1d
--- /dev/null
+++ b/layouts/partials/profile.html
@@ -0,0 +1,37 @@
+<main id="profile">
+    <div>
+        <a href="/">
+       <img id='profilephoto' src="{{.Site.Data.details.profilephoto}}">
+        </a>
+        <div>
+            <h1><a href="/">{{.Site.Data.details.name}}</a></h1>
+            <p>{{.Site.Data.details.bio}}</p>
+        {{if .Site.Data.details.contact}}
+        {{range .Site.Data.details.contact}}
+            <a href="{{.value}}">{{.name}}</a>
+        {{end}}
+{{end}}
+        </div>
+    </div>
+    {{ if .Site.Data.details.links }}
+    <div>
+        <h3>Links:</h3>
+    </div>
+    <div>
+        {{range .Site.Data.details.links}}
+        <a href="{{.linkurl}}">{{.linkname}}</a><br>
+        {{end}}
+    </div>
+    {{end}}
+    {{partial "nav" .}}
+    {{ if .Content}}
+    <article>
+        {{.Content}}
+    </article>
+    <hr>
+
+    <div>
+        <p><a href="">Valor</a> made by <a href="https://gabe.rocks">Gabriel</a></p>
+    </div>
+{{end}}
+</main>
\ No newline at end of file
diff --git a/layouts/podcast/rss.xml b/layouts/podcast/rss.xml
new file mode 100644
index 0000000..e6d57c6
--- /dev/null
+++ b/layouts/podcast/rss.xml
@@ -0,0 +1,40 @@
+<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:content="http://purl.org/rss/1.0/modules/content/">
+    <channel>
+        <title>{{ .Title }}</title>
+        <link>{{ .Permalink }}</link>
+        <description>{{.Params.description}}</description>
+        {{ if .Params.image}}
+            <image href=" {{.Params.image}}"/>
+            <itunes:image href=" {{.Params.image}}"/>
+        {{else}}
+            <image href="/logo.png"/>
+            <itunes:image href="/logo.png"/>
+        {{end}}
+        <generator>Hugo -- gohugo.io</generator>
+            <language>en-ca</language>
+        {{ range .Pages }}
+            <item>
+                <title>{{ .Title }}</title>
+                <link>{{ .Permalink }}</link>
+                <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
+                {{ with .Site.Author.email }}
+                    <author>{{.}}
+                        {{ with $.Site.Author.name }}
+                            ({{.}})
+                        {{end}}
+                    </author>
+                {{end}}
+                <guid>{{ .Permalink }}</guid>
+                {{ if .Params.image}}
+                    <image href="{{.Params.image}}"/>
+                    <itunes:image href="{{.Params.image}}"/>
+                {{else}}
+                    <image href="/logo.png"/>
+                    <itunes:image href="/logo.png"/>
+                {{end}}
+                <description>{{- .Summary | html -}}</description>
+                <enclosure url="{{.Site.BaseURL}}{{.Params.audio}}"/>
+            </item>
+        {{ end }}
+    </channel>
+</rss>
diff --git a/layouts/shortcodes/audio.html b/layouts/shortcodes/audio.html
new file mode 100644
index 0000000..6021a76
--- /dev/null
+++ b/layouts/shortcodes/audio.html
@@ -0,0 +1,3 @@
+<audio controls>
+    <source src='{{.Get 0 }}'>
+</audio>
\ No newline at end of file
diff --git a/layouts/shortcodes/embed.html b/layouts/shortcodes/embed.html
new file mode 100644
index 0000000..29d1e04
--- /dev/null
+++ b/layouts/shortcodes/embed.html
@@ -0,0 +1,2 @@
+<iframe src='{{.Get 0 }}'>
+</iframe>
\ No newline at end of file
diff --git a/layouts/shortcodes/image.html b/layouts/shortcodes/image.html
new file mode 100644
index 0000000..60c0c88
--- /dev/null
+++ b/layouts/shortcodes/image.html
@@ -0,0 +1,14 @@
+{{ if .Get "href"}}
+<a href='{{.Get "href"}}'>
+{{end}}
+<img 
+src='{{.Get "src"}}' 
+{{if .Get "alt"}}
+ alt='{{.Get "alt"}}'
+{{end}} 
+{{if .Get "float"}}
+style='float:{{.Get "float"}}'
+{{end}}>
+{{ if .Get "href"}}
+</a>
+{{end}}
diff --git a/layouts/shortcodes/link-preview.html b/layouts/shortcodes/link-preview.html
new file mode 100644
index 0000000..79159db
--- /dev/null
+++ b/layouts/shortcodes/link-preview.html
@@ -0,0 +1,8 @@
+<a href="{{ .Get 0 }}" class="link-preview">
+    <img src='{{.Get 3}}'>
+    <div>
+    <h3>{{ .Get 1 }}</h3>
+    <p>{{.Get 2 }}</p>
+    </div>
+</a>
+
diff --git a/layouts/shortcodes/video.html b/layouts/shortcodes/video.html
new file mode 100644
index 0000000..9bdfe0b
--- /dev/null
+++ b/layouts/shortcodes/video.html
@@ -0,0 +1,3 @@
+<video controls>
+    <source src='{{.Get 0 }}'>
+</video>
\ No newline at end of file
diff --git a/layouts/shortcodes/webtorrent-video.html b/layouts/shortcodes/webtorrent-video.html
new file mode 100644
index 0000000..3a0f888
--- /dev/null
+++ b/layouts/shortcodes/webtorrent-video.html
@@ -0,0 +1,16 @@
+<script src="/webtorrent.js"></script>
+<div id="wtmedia">
+</div>
+<script>
+    const client = new WebTorrent(tracker=false,dht=true,webSeeds=true);
+    const magnetURI = '{{.Get 0}}';
+    client.add(magnetURI, function (torrent) {
+        // Got torrent metadata!
+        console.log('Client is downloading:', torrent.infoHash)
+        torrent.files.forEach(function (file) {
+            // Display the file by appending it to the DOM. Supports video, audio, images, and
+            // more. Specify a container element (CSS selector or reference to DOM node).
+            file.appendTo('#wtmedia')
+        })
+    })
+</script>
diff --git a/layouts/shortcodes/yesterweb.html b/layouts/shortcodes/yesterweb.html
new file mode 100644
index 0000000..fd90118
--- /dev/null
+++ b/layouts/shortcodes/yesterweb.html
@@ -0,0 +1,3 @@
+<a href="https://webring.yesterweb.org/noJS/index.php?d=prev&url=https://yesterweb.org/">Previous</a>
+                        <a href="https://webring.yesterweb.org/noJS/index.php?d=rand&url=https://yesterweb.org/">Random</a>
+                        <a href="https://webring.yesterweb.org/noJS/index.php?d=next&url=https://yesterweb.org/">Next</a>
\ No newline at end of file
diff --git a/readme.md b/readme.md
new file mode 100644
index 0000000..507adc5
--- /dev/null
+++ b/readme.md
@@ -0,0 +1 @@
+More to come
\ No newline at end of file
diff --git a/static/css/theme.css b/static/css/theme.css
new file mode 100644
index 0000000..6ad4fa0
--- /dev/null
+++ b/static/css/theme.css
@@ -0,0 +1,128 @@
+body{
+    --theme-primary-color:black;
+    --theme-secondary-color: white;
+    --theme-accent:rgb(29, 148, 196);
+    --theme-accent2:gold;
+    --theme-accent3:rgb(211, 43, 43);
+    color:var(--theme-secondary-color);
+    background-color: var(--theme-primary-color);
+    display:flex;
+    flex-direction: row;
+    flex-wrap: nowrap;
+    align-items: flex-start;
+    justify-content: space-evenly;
+    width:100vw;
+    margin:0;
+    padding:0;
+    overflow-x: hidden;
+}
+
+
+a,a:visited,hr{
+    color:var(--theme-accent2);
+}
+
+
+hr{
+    width:100%;
+    color:var(--theme-accent);
+    margin-top:1rem;
+    margin-bottom:1rem;
+}
+
+iframe,
+video,
+img,
+audio{
+    max-width:100%;
+    max-height: 30vh;
+    margin:1.5rem;
+}
+#profile{
+    padding:1rem;
+    margin-bottom:1rem;
+    min-width: 20vw;
+    
+}
+
+#posts{
+    padding:1rem;
+    margin-bottom:1rem;
+    min-width: 20vw;
+
+}
+#profile{
+    max-width:50rem;
+}
+#posts{
+width:40vw;
+}
+.post{
+    padding:1rem;
+}
+
+#post>img
+#profile{
+    display:flex;
+    flex-direction: column;
+}
+#profilephoto{
+    margin:1rem;
+    max-width: 10rem;
+    
+    
+}
+#profile>nav,
+#profile>div{
+    width:100%;
+    display:flex;
+    flex-direction: row;
+    align-items: flex-start;
+    justify-content:space-evenly;
+    flex-wrap: wrap;
+}
+#profile>#details{
+    flex-direction: column;
+
+}
+
+nav{
+    display:flex;
+    flex-direction: row;
+    align-items: baseline;
+    justify-content:space-evenly;
+}
+nav>a{
+    margin:1.5rem;
+}
+
+@media screen and (orientation: portrait){
+    body{
+        flex-direction: column;
+
+    font-size:1rem;
+    }
+    #profile,#posts{
+        max-height: none;
+        width:92vw;
+        overflow-y:initial;
+    }
+}
+
+article{
+    display:flex;
+    flex-direction: column;
+    align-items: center;
+}
+
+article p,
+article h3,
+article ul,
+article ol,
+article table{
+    text-align: left;
+    width:100%;
+}
+article img{
+    
+}
\ No newline at end of file
diff --git a/theme.toml b/theme.toml
new file mode 100644
index 0000000..4308ab3
--- /dev/null
+++ b/theme.toml
@@ -0,0 +1,21 @@
+# theme.toml template for a Hugo theme
+# See https://github.com/gohugoio/hugoThemes#themetoml for an example
+
+name = "Valor"
+license = "MIT"
+licenselink = "https://codeberg.org/gabe/Valor/blob/master/LICENSE"
+description = ""
+homepage = "https://codeberg.org/gabe/Valor"
+tags = []
+features = []
+min_version = "0.41.0"
+
+[author]
+  name = "Gabriel"
+  homepage = "https://gabe.rocks"
+
+# If porting an existing theme
+[original]
+  name = ""
+  homepage = ""
+  repo = ""