commit eebfde5c9a188fa4e048ed6bda34ac400d53b8b2 Author: Gabriel Date: Wed Aug 17 14:50:07 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/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..5539334 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,18 @@ + + + + {{partial "head" .}} + + + {{partial "header" .}}
+
{{.Content}}
+ + +
+ {{partial "footer" .}} + \ No newline at end of file diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml new file mode 100644 index 0000000..fb893ab --- /dev/null +++ b/layouts/_default/rss.xml @@ -0,0 +1,25 @@ + + + {{ .Title }} + {{ .Permalink }} + {{.Params.description}} + + Hugo -- gohugo.io{{ with .Site.LanguageCode }} + {{.}}{{end}} + {{ with .OutputFormats.Get "RSS" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{ 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 }} + + + {{- .Content | html -}} + + {{ end }} + + diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..4cfb656 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,12 @@ + + + + {{partial "head" .}} + + + {{partial "header" .}}
+
{{.Content}}
+ +
+ {{partial "footer" .}} + \ No newline at end of file diff --git a/layouts/articles/rss.xml b/layouts/articles/rss.xml new file mode 100644 index 0000000..e00a1f8 --- /dev/null +++ b/layouts/articles/rss.xml @@ -0,0 +1,23 @@ + + + {{.Title}} + {{ .Permalink }} + {{.Params.description}} + Hugo -- gohugo.io{{ with .Site.LanguageCode }} + {{.}}{{end}} + {{ with .OutputFormats.Get "RSS" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{ 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/embed/index.html b/layouts/embed/index.html new file mode 100644 index 0000000..589e6ec --- /dev/null +++ b/layouts/embed/index.html @@ -0,0 +1,37 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..fe0077f --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,13 @@ + + + + {{partial "head" .}} + + + {{partial "header" .}}
+
{{.Content}}
+ + +
+ {{partial "footer" .}} + \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..f3afd56 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..fb9cbaa --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,3 @@ + + +{{.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..4686be9 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,9 @@ +
+

{{.Site.Title }}

+ +
\ No newline at end of file diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html new file mode 100644 index 0000000..7ced6d5 --- /dev/null +++ b/layouts/partials/sidebar.html @@ -0,0 +1,5 @@ +

Sidebar

+ +

Recent Content

+ +

Featured

diff --git a/layouts/podcast/rss.xml b/layouts/podcast/rss.xml new file mode 100644 index 0000000..54a66c6 --- /dev/null +++ b/layouts/podcast/rss.xml @@ -0,0 +1,45 @@ + + + {{ .Title }} + {{ .Permalink }} + {{.Params.description}} + {{ if .Params.image}} + + + {{else}} + + + {{end}} + Hugo -- gohugo.io + {{ with .Site.LanguageCode }} + {{.}} + {{end}} + {{ with .OutputFormats.Get "RSS" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{ 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 }} + {{ 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..359cd25 --- /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/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/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..170bd12 --- /dev/null +++ b/static/css/theme.css @@ -0,0 +1,55 @@ +body{ + --theme-primary-color:black; + --theme-secondary-color:white; + --theme-accent-color:gold; + background-color: var(--theme-primary-color); + color:var(--theme-secondary-color); + width:100vw; + margin:0; + display:flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: center; +} + +main,aside{ + border:1px solid white; + display:flex; + flex-direction: column; + margin:1.5rem; + padding:1rem; +} +main{ + min-width: 40%; + max-width: 60rem; +} +aside{ + min-width: 30rem; +} +header,footer{ + width:100vw; + display:flex; + flex-direction: row; + flex-wrap: wrap; + align-items: center; + justify-content: center; +} +nav{ + display:flex; + flex-direction: row; + flex-wrap: wrap; + margin-left:10%; +} +nav>a{ + margin:1rem; +} + +a, +hr{ + color:var(--theme-accent-color); +} +hr{ + width:100%; + margin-top:1.5rem; + margin-bottom:1.5rem; +} \ No newline at end of file diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..a9247c1 --- /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 = "Freedom" +license = "MIT" +licenselink = "https://codeberg.org/gabe/Freedom/blob/master/LICENSE" +description = "" +homepage = "https://codeberg.org/gabe/Freedom" +tags = [] +features = [] +min_version = "0.41.0" + +[author] + name = "Gabriel" + homepage = "https://gabe.rocks" + +# If porting an existing theme +[original] + name = "" + homepage = "" + repo = ""