commit d703c1bfad445133f7136e5279cb62a2c399db39 Author: Marty Sluijtman Date: Wed Aug 10 15:27:44 2022 +0200 Initial commit diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml new file mode 100644 index 0000000..13acfb8 --- /dev/null +++ b/.github/workflows/upload.yml @@ -0,0 +1,32 @@ +name: CI + +# Controls when the action will run. +on: + # Triggers the workflow on push to master (including merged PRs) + push: + branches: [ master ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + update: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + - name: Updating website. + uses: appleboy/ssh-action@master + with: + host: lukesmith.xyz + username: lugo + key: ${{ secrets.lugo_ssh }} + passphrase: ${{ secrets.lugo_pass }} + port: 22 + script: | + cd /var/www/lugo + git stash + git pull --force origin master diff --git a/README.md b/README.md new file mode 100644 index 0000000..c3a728d --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Voidcruiser Hugo theme + +Hacked together based on the CSS I used before hugo andm a whole bunch of examples on the internet diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..69aefcf --- /dev/null +++ b/config.toml @@ -0,0 +1,11 @@ +title = "Website Name" +baseURL = 'https://example.org' +yggURL = 'http://[201:1bf3:e688:a7ba:48f0:761a:c187:3550]' +onion = 'https://example.org' +i2p = 'https://example.org' +languageCode = 'en-us' + +[params] + # "relatedtext" is the text that appears above the tag list at the bottom of pages. + #relatedtext = "Related:" + favicon = "/favicon.ico" diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..872f160 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,13 @@ +{{ partial "header.html" . -}} +

{{ .Title }}

+
+
+{{ .Content -}} +
    +{{- range.Pages }} +
  • {{ .Title }}
  • +{{ end -}} +
+
+
+{{- partial "footer.html" . }} diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml new file mode 100644 index 0000000..9269333 --- /dev/null +++ b/layouts/_default/rss.xml @@ -0,0 +1,26 @@ + + + {{ .Site.Title }} + {{ .Permalink }} + Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} + Hugo -- gohugo.io{{ with .Site.LanguageCode }} + {{.}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ 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..88f41d0 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,6 @@ +{{ partial "header.html" . -}} +

{{ .Title }}

+
+{{ .Content -}} +
+{{ partial "footer.html" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..b8c16ce --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,11 @@ + + + + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..c2427d8 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,20 @@ + + + + {{ if not .IsHome }}{{ .Title | title }} | {{ end }}{{ .Site.Title }} + + + + + {{ with .Site.Params.favicon }} + {{ end -}} + + {{ if isset .Params "tags" }} + {{ end -}} + + + + + +

{{ .Site.Title | title }}

+{{ partial "nav.html" . }} diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html new file mode 100644 index 0000000..797e8f8 --- /dev/null +++ b/layouts/partials/nav.html @@ -0,0 +1,13 @@ + diff --git a/layouts/partials/nextprev.html b/layouts/partials/nextprev.html new file mode 100644 index 0000000..099f16d --- /dev/null +++ b/layouts/partials/nextprev.html @@ -0,0 +1,10 @@ +{{ if or .Next .Prev -}} +
+{{- with .Prev }} +
Previous:
{{.Title}}
+{{ end -}} +{{- with .Next -}} +
Next:
{{.Title}}
+{{ end -}} +
+{{ end -}} diff --git a/layouts/partials/stickers.html b/layouts/partials/stickers.html new file mode 100644 index 0000000..7403f30 --- /dev/null +++ b/layouts/partials/stickers.html @@ -0,0 +1,8 @@ +
+ Web 3 is a scam + Fuck Chromium + I ♡ vim + Nazi punks, fuck off! + Wiby is great + Viewable in any browser +
diff --git a/layouts/partials/taglist.html b/layouts/partials/taglist.html new file mode 100644 index 0000000..757db6f --- /dev/null +++ b/layouts/partials/taglist.html @@ -0,0 +1,13 @@ + {{- if isset .Params "tags" -}} + {{- $tagsLen := len .Params.tags -}} + {{- if gt $tagsLen 0 -}} +
+ {{- with .Site.Params.relatedtext }}{{ . }}
{{ end -}} + {{- range $k, $v := .Params.tags -}} + {{- $url := printf "tags/%s" (. | urlize | lower) -}} + {{ . | title }} + {{- if lt $k (sub $tagsLen 1) }} · {{ end -}} + {{- end -}} +
+ {{- end -}} + {{- end }} diff --git a/layouts/shortcodes/audio.html b/layouts/shortcodes/audio.html new file mode 100644 index 0000000..ae050cd --- /dev/null +++ b/layouts/shortcodes/audio.html @@ -0,0 +1,13 @@ + + + diff --git a/layouts/shortcodes/begin-art.html b/layouts/shortcodes/begin-art.html new file mode 100644 index 0000000..b4fbf3f --- /dev/null +++ b/layouts/shortcodes/begin-art.html @@ -0,0 +1 @@ +
diff --git a/layouts/shortcodes/end-art.html b/layouts/shortcodes/end-art.html new file mode 100644 index 0000000..fb4b468 --- /dev/null +++ b/layouts/shortcodes/end-art.html @@ -0,0 +1 @@ +
diff --git a/layouts/shortcodes/hidvid.html b/layouts/shortcodes/hidvid.html new file mode 100644 index 0000000..14f592d --- /dev/null +++ b/layouts/shortcodes/hidvid.html @@ -0,0 +1,10 @@ +
+ Click to reveal video. + +
diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html new file mode 100644 index 0000000..ff7959b --- /dev/null +++ b/layouts/shortcodes/img.html @@ -0,0 +1,20 @@ + +
+ {{- with .Get "link"}}{{ end -}} + {{.}} + {{- if .Get "link"}}{{ end -}} + {{- with .Get "caption" -}} +
+ {{- . -}} +
+ {{- end -}} +
diff --git a/layouts/shortcodes/tagcloud.html b/layouts/shortcodes/tagcloud.html new file mode 100644 index 0000000..0cf0118 --- /dev/null +++ b/layouts/shortcodes/tagcloud.html @@ -0,0 +1,3 @@ +{{ if isset .Site.Taxonomies "tags" }}{{ if not (eq (len .Site.Taxonomies.tags) 0) }} {{ end }}{{ end }} diff --git a/layouts/shortcodes/toc.html b/layouts/shortcodes/toc.html new file mode 100644 index 0000000..64546ec --- /dev/null +++ b/layouts/shortcodes/toc.html @@ -0,0 +1 @@ +{{ .TableOfContents }} diff --git a/layouts/shortcodes/vid.html b/layouts/shortcodes/vid.html new file mode 100644 index 0000000..4c612fe --- /dev/null +++ b/layouts/shortcodes/vid.html @@ -0,0 +1,6 @@ + diff --git a/static/rss.svg b/static/rss.svg new file mode 100644 index 0000000..dfda038 --- /dev/null +++ b/static/rss.svg @@ -0,0 +1 @@ + diff --git a/static/stickers/4nobody.gif b/static/stickers/4nobody.gif new file mode 100644 index 0000000..df55d73 Binary files /dev/null and b/static/stickers/4nobody.gif differ diff --git a/static/stickers/80x15.png b/static/stickers/80x15.png new file mode 100644 index 0000000..226a01b --- /dev/null +++ b/static/stickers/80x15.png @@ -0,0 +1,7 @@ + +301 Moved Permanently + +

301 Moved Permanently

+
nginx
+ + diff --git a/static/stickers/cc4.png b/static/stickers/cc4.png new file mode 100644 index 0000000..c93f753 Binary files /dev/null and b/static/stickers/cc4.png differ diff --git a/static/stickers/edited-with-vim_banner.gif b/static/stickers/edited-with-vim_banner.gif new file mode 100644 index 0000000..7a00d7f Binary files /dev/null and b/static/stickers/edited-with-vim_banner.gif differ diff --git a/static/stickers/nonazis.png b/static/stickers/nonazis.png new file mode 100644 index 0000000..61f10d8 Binary files /dev/null and b/static/stickers/nonazis.png differ diff --git a/static/stickers/notoweb3.gif b/static/stickers/notoweb3.gif new file mode 100644 index 0000000..42c41aa Binary files /dev/null and b/static/stickers/notoweb3.gif differ diff --git a/static/stickers/same-shit-different-asshole_banner.gif b/static/stickers/same-shit-different-asshole_banner.gif new file mode 100644 index 0000000..2090066 Binary files /dev/null and b/static/stickers/same-shit-different-asshole_banner.gif differ diff --git a/static/stickers/wiby.gif b/static/stickers/wiby.gif new file mode 100644 index 0000000..87a6a75 Binary files /dev/null and b/static/stickers/wiby.gif differ diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..d9474fe --- /dev/null +++ b/static/style.css @@ -0,0 +1,62 @@ +:root{ + scrollbar-color: #333747 #1d1f21; +} +::selection{ + background-color: #333747; + color:#c397d8; +} +html{ + color: #eaeaea; + background-color: #1d1f21; +} +body{ padding: 0; margin: 0; } +a{ color: #f0c674; } +a:hover{ color: #1d1f21; background-color: #f0c674; } +a:hover::selection{ color: #f0c674; } +audio{ width: 100%; display: block; margin-top: 1em; } +main{ margin-left: 12em; margin-right: 1em; padding: 1em; border:1pt solid; margin-bottom: 1em;} +main h1{border-bottom: 1pt solid;} +article{padding:1em; border:#282a2e 1pt solid;} +nav{height: 100%;padding: 0.5em; float:left; background: #282a2e; border-right:solid 1pt; border-bottom: solid 1pt; width: 10em;} +nav li{list-style: none; list-style-position:outside;} +nav a{ display: block;} +summary{cursor:pointer;} +summary:hover{ color: #1d1f21; background-color: #f0c674; } +footer{text-align:center; border-top:1pt solid; margin-top: 1em;} +footer a{text-decoration:none;} +footer .mirror{text-align:center; color: #f0c674;} +code{ background: #282a2e; border-radius: 1em; padding: 2pt;} +pre{ background: #282a2e; padding: 1em; border-radius: 1em;} +.logo{ + padding: 5pt 0; + margin:0; + width:100%; + border-bottom: 2pt solid; + background-color: #282a2e; + background: linear-gradient(to right,#b294bb,#282a2e); +} +.about ul{list-style:none;} +.about img{height:10em; float:left;} +header{text-transform: capitalize; text-align:center;border-bottom:2pt solid; font-weight:bold;} +.page-head{text-transform: capitalize; text-align:center;border-bottom:2pt solid; font-weight:bold;} +@media (max-width: 800px){ + main{max-width:100%; margin: 1em;} + nav{padding:0; width: 100%; border-right:solid 0pt;} + nav a{ padding-left: 1em;} +} +.stickers{ text-align:center; } +.gay{ + background:linear-gradient(-45deg, #cc6666, #f0c674, #b5bd68, #8abeb7, #81a2b3, #b294bb); + background-clip: text; + background-size:300%; + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + animation:gay 8s ease-in-out infinite; + -moz-animation: gay 8s ease-in-out infinite; + -webkit-animation: gay 8s ease-in-out infinite; +} +@keyframes gay { + 0%{background-position: 0px 50%;} + 50%{background-position: 100% 50%;} + 10%{background-position: 0px 50%;} +}