From d80d36151bf4f5c6a6cdcb940a7bf95dfdf3d4a9 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Wed, 17 Aug 2022 14:47:54 -0400 Subject: [PATCH] start --- LICENSE | 20 ++++ archetypes/default.md | 2 + layouts/404.html | 0 layouts/_default/baseof.html | 11 ++ layouts/_default/list.html | 13 +++ layouts/_default/rss.xml | 20 ++++ layouts/_default/single.html | 7 ++ layouts/index.html | 13 +++ layouts/partials/footer.html | 0 layouts/partials/head.html | 7 ++ layouts/partials/header.html | 0 layouts/partials/nav.html | 9 ++ layouts/partials/post.html | 10 ++ layouts/partials/profile.html | 37 +++++++ layouts/podcast/rss.xml | 40 +++++++ layouts/shortcodes/audio.html | 3 + layouts/shortcodes/embed.html | 2 + layouts/shortcodes/image.html | 14 +++ layouts/shortcodes/link-preview.html | 8 ++ layouts/shortcodes/video.html | 3 + layouts/shortcodes/webtorrent-video.html | 16 +++ layouts/shortcodes/yesterweb.html | 3 + readme.md | 1 + static/css/theme.css | 128 +++++++++++++++++++++++ theme.toml | 21 ++++ 25 files changed, 388 insertions(+) create mode 100644 LICENSE create mode 100644 archetypes/default.md create mode 100644 layouts/404.html create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/rss.xml create mode 100644 layouts/_default/single.html create mode 100644 layouts/index.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/head.html create mode 100644 layouts/partials/header.html create mode 100644 layouts/partials/nav.html create mode 100644 layouts/partials/post.html create mode 100644 layouts/partials/profile.html create mode 100644 layouts/podcast/rss.xml create mode 100644 layouts/shortcodes/audio.html create mode 100644 layouts/shortcodes/embed.html create mode 100644 layouts/shortcodes/image.html create mode 100644 layouts/shortcodes/link-preview.html create mode 100644 layouts/shortcodes/video.html create mode 100644 layouts/shortcodes/webtorrent-video.html create mode 100644 layouts/shortcodes/yesterweb.html create mode 100644 readme.md create mode 100644 static/css/theme.css create mode 100644 theme.toml 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 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.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 @@ + + + {{partial "head" .}} + + {{partial "profile" .}} + + + \ 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 @@ + + + {{.Title}} + {{ .Permalink }} + {{.Params.description}} + Hugo -- gohugo.io{{ with .Site.LanguageCode }} + {{.}}{{end}} + {{ range .Pages }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + {{- .Summary | html -}} + {{- .Content | html -}} + + {{ end }} + + 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 @@ + + + {{partial "head" .}} + + {{partial "profile" .}} + + \ 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 @@ + + + {{partial "head" .}} + + {{partial "profile" .}} + + + \ 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 @@ + + +{{.Title}} + + + + \ 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 @@ + 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 @@ +
+

{{.Title}}

+{{if .Date }} +

{{.Date | time.Format "Jan 02 2006"}}

+{{end}} +{{if .Params.video}}{{end}} +{{if .Params.audio}}{{end}} +{{if .Params.image}}{{end}} +

{{.Summary}}

+
\ 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 @@ +
+
+ + + +
+

{{.Site.Data.details.name}}

+

{{.Site.Data.details.bio}}

+ {{if .Site.Data.details.contact}} + {{range .Site.Data.details.contact}} + {{.name}} + {{end}} +{{end}} +
+
+ {{ if .Site.Data.details.links }} +
+

Links:

+
+
+ {{range .Site.Data.details.links}} + {{.linkname}}
+ {{end}} +
+ {{end}} + {{partial "nav" .}} + {{ if .Content}} +
+ {{.Content}} +
+
+ +
+

Valor made by Gabriel

+
+{{end}} +
\ 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 @@ + + + {{ .Title }} + {{ .Permalink }} + {{.Params.description}} + {{ if .Params.image}} + + + {{else}} + + + {{end}} + Hugo -- gohugo.io + en-ca + {{ range .Pages }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }} + {{.}} + {{ with $.Site.Author.name }} + ({{.}}) + {{end}} + + {{end}} + {{ .Permalink }} + {{ if .Params.image}} + + + {{else}} + + + {{end}} + {{- .Summary | html -}} + + + {{ end }} + + 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 @@ + \ 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 @@ + \ 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"}} + +{{end}} +{{.Get "alt"}} +{{ if .Get "href"}} + +{{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 @@ + + +
+

{{ .Get 1 }}

+

{{.Get 2 }}

+
+
+ 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 @@ + \ 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 @@ + +
+
+ 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 @@ +Previous + Random + Next \ 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 = ""