diff --git a/.build.yml b/.build.yml index a80fbe7..c48ffb2 100644 --- a/.build.yml +++ b/.build.yml @@ -16,13 +16,6 @@ tasks: cd redstrate.com echo "StrictHostKeyChecking=no" >> ~/.ssh/config rsync -e 'ssh -p 38901' -Wvr public/ deploy@ryne.moe:/srv/http/redstrate.com - - build-retro: | - cd redstrate.com - hugo --minify --theme retro - - deploy-retro: | - cd redstrate.com - echo "StrictHostKeyChecking=no" >> ~/.ssh/config - rsync -e 'ssh -p 38901' -Wvr public/ deploy@ryne.moe:/srv/http/retro.redstrate.com - reuse: | cd redstrate.com reuse lint diff --git a/themes/retro/LICENSE b/themes/retro/LICENSE deleted file mode 100644 index 804544e..0000000 --- a/themes/retro/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2023 Joshua Goins - -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/themes/retro/layouts/404.html b/themes/retro/layouts/404.html deleted file mode 100644 index 4cb92bf..0000000 --- a/themes/retro/layouts/404.html +++ /dev/null @@ -1,5 +0,0 @@ -{{ define "main" }} -

404

- -

Page not found!

-{{ end }} diff --git a/themes/retro/layouts/_default/_markup/render-image.html b/themes/retro/layouts/_default/_markup/render-image.html deleted file mode 100644 index ccc2a16..0000000 --- a/themes/retro/layouts/_default/_markup/render-image.html +++ /dev/null @@ -1,31 +0,0 @@ -{{- $url := .Destination | safeURL -}} -{{- $img := .Page.Resources.GetMatch .Destination -}} - -{{- if and (not $img) .Page.File -}} - {{ with .Page.File }} - {{ $path := path.Join .Dir $url }} - {{- $img = resources.Get $path -}} - {{ end }} -{{- end -}} - -{{- if and (not $img) .Page.File -}} - {{- $img = resources.Get .Destination -}} -{{- end -}} - -{{- with $img -}} -
- - {{ if eq .MediaType.SubType "svg" }} - {{ $.Text }} - {{ else }} - {{ with ($img).Resize "400x bmp" }} - {{ $.Text }} - {{ end }} - {{ end }} - - -
{{ $.Text | safeHTML }}
-
-{{- else -}} - Unable to find image {{ $url }}! -{{- end -}} diff --git a/themes/retro/layouts/_default/art-detail.html b/themes/retro/layouts/_default/art-detail.html deleted file mode 100644 index 558cc04..0000000 --- a/themes/retro/layouts/_default/art-detail.html +++ /dev/null @@ -1,98 +0,0 @@ -{{ define "main" }} -

{{ .Title }}

- -
- - {{ if .Params.animation }} -

Sorry, animations are not supported.

- {{ else }} - {{ if .Params.threed }} -

Sorry, 3D models are not supported.

- {{ else }} - {{ with (resources.Get .Params.filename).Resize "400x bmp" }} - {{ $.Params.alt_text }} - {{ end }} - {{ end }} - {{ end }} - - - - - - - - {{ with .Params.arttags }} - - - - - {{ end }} - - {{ with .Params.characters }} - - - - - {{ end }} - - {{ with .Params.program }} - - - - - {{ end }} - - {{ with .Params.mastodon_url }} - - - - - {{ end }} - - {{ with .Params.newgrounds_url }} - - - - - {{ end }} - - - {{ with .Params.pixiv_url }} - - - - - {{ end }} - -
Date - -
Tags - {{ $len := (len .) }} - {{ range $index, $element := . }} - {{ $element }}{{ if not (eq (add $index 1) $len) }},{{ end }} - {{ end }} -
Characters - {{ $len := (len .) }} - {{ range $index, $element := . }} - {{ $element }}{{ if not (eq (add $index 1) $len) }},{{ end }} - {{ end }} -
Program - {{ . }} -
Mastodon URL - {{ . }} -
Newgrounds URL - {{ . }} -
Pixiv URL - {{ . }} -
- - {{ with .Content }} -

Commentary

- -

- {{ . }} -

- {{ end }} -{{ end }} diff --git a/themes/retro/layouts/_default/art-stats.html b/themes/retro/layouts/_default/art-stats.html deleted file mode 100644 index 4380f01..0000000 --- a/themes/retro/layouts/_default/art-stats.html +++ /dev/null @@ -1,23 +0,0 @@ -{{ define "main" }} -

{{ .Title }}

- -
- -

# of Artworks by Year

-
    - {{ range $.Param "years" }} - {{ $year := .year }} - {{ $num := .num }} -
  1. {{ $year }} ({{ $num }} artworks)
  2. - {{ end }} -
- -

Most Drawn Characters

-
    - {{ range $.Param "characters" }} - {{ $year := .name }} - {{ $num := .num }} -
  1. {{ $year }} ({{ $num }} artworks)
  2. - {{ end }} -
-{{ end }} diff --git a/themes/retro/layouts/_default/art.html b/themes/retro/layouts/_default/art.html deleted file mode 100644 index 7e5071d..0000000 --- a/themes/retro/layouts/_default/art.html +++ /dev/null @@ -1,35 +0,0 @@ -{{ define "main" }} -

{{ .Title }}

- -
- - {{ $paginator := .Paginate (where .RegularPagesRecursive "Type" "art") }} - - {{ if eq $paginator.PageNumber 1}} - {{ with $.Params.new_banner }} -
*new* {{ . }}
- {{ end }} - -

Welcome to my art gallery! I have saved my art since 2016, and this site contains the most complete archive of my work.

- - Contains risque art, so you should probably not view this on a work computer. - -

If you want to see other cool artists and their websites, see the links page.

- -

You can follow me on Mastodon, Pixiv, Newgrounds, or if you like RSS feeds I have an art-only feed!

- - {{ partial "art-years" . }} - -
- Characters - Tags - Stats - - {{ if $.Params.commissions }} - Commissions - {{ end }} -
- {{ end }} - - {{ partial "art-gallery" . }} -{{ end }} diff --git a/themes/retro/layouts/_default/arttag.html b/themes/retro/layouts/_default/arttag.html deleted file mode 100644 index 3a74041..0000000 --- a/themes/retro/layouts/_default/arttag.html +++ /dev/null @@ -1,6 +0,0 @@ -{{ define "main" }} -

{{ .Title }}

-
- - {{ partial "art-tag" . }} -{{ end }} diff --git a/themes/retro/layouts/_default/audio-gallery.html b/themes/retro/layouts/_default/audio-gallery.html deleted file mode 100644 index d55d651..0000000 --- a/themes/retro/layouts/_default/audio-gallery.html +++ /dev/null @@ -1,37 +0,0 @@ -{{ define "main" }} -

{{ .Title }}

- -
- - {{ .Content }} - - {{ $art := (index site.Data ($.Param "json")) }} - {{ $newgrounds_icon := resources.Get "newgrounds.webp" }} - - {{ range $art.categories }} -

{{ .name }}

-

{{ .description }}

- {{ range sort .years "year" "desc" }} -

{{ .year }}

- - - {{ end }} - {{ end }} -{{ end }} diff --git a/themes/retro/layouts/_default/baseof.html b/themes/retro/layouts/_default/baseof.html deleted file mode 100644 index 61fd6be..0000000 --- a/themes/retro/layouts/_default/baseof.html +++ /dev/null @@ -1,14 +0,0 @@ - - - {{- partial "head.html" . -}} - -
{{- partial "header.html" . -}}
-
- -
- {{- block "main" . }}{{- end }} -
-
- - - diff --git a/themes/retro/layouts/_default/character.html b/themes/retro/layouts/_default/character.html deleted file mode 100644 index 3a74041..0000000 --- a/themes/retro/layouts/_default/character.html +++ /dev/null @@ -1,6 +0,0 @@ -{{ define "main" }} -

{{ .Title }}

-
- - {{ partial "art-tag" . }} -{{ end }} diff --git a/themes/retro/layouts/_default/gallery.html b/themes/retro/layouts/_default/gallery.html deleted file mode 100644 index 5b697f1..0000000 --- a/themes/retro/layouts/_default/gallery.html +++ /dev/null @@ -1,16 +0,0 @@ -{{ define "main" }} -

{{ .Title }}

- -
- - {{ .Content }} - -
-
- - {{ range .Data.Pages.ByDate.Reverse }} - {{ partial "render-art" . }} - {{ end }} - -
-{{ end }} diff --git a/themes/retro/layouts/_default/list.html b/themes/retro/layouts/_default/list.html deleted file mode 100644 index dde8789..0000000 --- a/themes/retro/layouts/_default/list.html +++ /dev/null @@ -1,29 +0,0 @@ -{{ define "main" }} -

{{ .Title }}

- -
- - {{ .Content }} - - - - - - - - - {{ range .Data.Pages.ByDate.Reverse }} - - - - - - - - {{ end }} -
TitleSummaryDate
{{ .Title }} - {{ .Summary }} - - -
-{{ end }} diff --git a/themes/retro/layouts/_default/listart.html b/themes/retro/layouts/_default/listart.html deleted file mode 100644 index 305f4aa..0000000 --- a/themes/retro/layouts/_default/listart.html +++ /dev/null @@ -1,11 +0,0 @@ -{{ define "main" }} -

{{ .Title }}

- -
- - -{{ end }} diff --git a/themes/retro/layouts/_default/project.html b/themes/retro/layouts/_default/project.html deleted file mode 100644 index b5ba689..0000000 --- a/themes/retro/layouts/_default/project.html +++ /dev/null @@ -1,29 +0,0 @@ -{{ define "main" }} -

{{ .Title }}

- - {{ if $.Param "source" }} - - {{ with $.Param "source" }} - - - - - {{ end }} - - {{ with $.Param "license" }} - - - - - {{ end }} -
Source Code{{ . }}
License{{ . }}
- {{ end }} - -

{{ .Summary }}

- -
- - {{ .Content }} - - {{ partial "related" . }} -{{ end }} diff --git a/themes/retro/layouts/_default/rss.xml b/themes/retro/layouts/_default/rss.xml deleted file mode 100644 index d75b26b..0000000 --- a/themes/retro/layouts/_default/rss.xml +++ /dev/null @@ -1,69 +0,0 @@ -{{- $pctx := . -}} - {{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} - {{- $pages := slice -}} - {{- if or $.IsHome $.IsSection -}} - {{- $pages = $pctx.RegularPages -}} - {{- else -}} - {{- $pages = $pctx.Pages -}} - {{- end -}} - {{- $limit := .Site.Config.Services.RSS.Limit -}} - {{- if ge $limit 1 -}} - {{- $pages = $pages | first $limit -}} - {{- end -}} - {{- printf "" | safeHTML }} - - - {{ .Site.Author.name }}'s Blog - {{ .Permalink }} - My blog where I post about the things I like and work on! - - {{ with .Site.LanguageCode }}{{.}}{{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 -}} - - https://www.rssboard.org/rss-specification - - {{ with resources.Get "rss-image.png" }} - - {{ .Permalink }} - {{ $.Site.Author.name }}'s Art - {{ $.Permalink }} - 100 - 100 - - {{ end }} - - {{ range $pages }} - {{ if not (.Param "excludefeed") }} - - {{ .Title }} - - {{ .Permalink }} - - {{ with $.Site.Author.name }} - {{ . }} - {{ end }} - - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - - {{ .Permalink }} - {{ " - {{ " - - {{ end }} - {{ end }} - - diff --git a/themes/retro/layouts/_default/single.html b/themes/retro/layouts/_default/single.html deleted file mode 100644 index 6ea06f4..0000000 --- a/themes/retro/layouts/_default/single.html +++ /dev/null @@ -1,24 +0,0 @@ -{{ define "main" }} -

{{ .Title }}

- - {{ if in .File.Dir "blog" }} - - Posted on - - (Updated on - ) - - {{ end }} - -
- -
- {{ .Content }} -
- - {{ partial "related" . }} -{{ end }} diff --git a/themes/retro/layouts/_default/software.html b/themes/retro/layouts/_default/software.html deleted file mode 100644 index 2cc8859..0000000 --- a/themes/retro/layouts/_default/software.html +++ /dev/null @@ -1,80 +0,0 @@ -{{ define "main" }} -

{{ .Title }}

- -
- - {{ .Content }} - -

Personal Projects

- -

These are projects I made for my own use, but they're all freely licensed!

- -
- {{ range .Data.Pages.ByDate.Reverse }} -
- {{ .Title }} - -

{{ .Summary }}

- - -
- {{ end }} -
- -

Contributions

- -

This a list of software projects I contributed code to.

- - {{ $contrib := (index site.Data "contributions") }} - -
- {{ range $contrib.contributions }} -
- {{ .name }} - -

{{ .description }}

- - -
- {{ end }} -
- - -{{ end }} diff --git a/themes/retro/layouts/art/rss.xml b/themes/retro/layouts/art/rss.xml deleted file mode 100644 index 8a6b504..0000000 --- a/themes/retro/layouts/art/rss.xml +++ /dev/null @@ -1,91 +0,0 @@ -{{- $pctx := . -}} - {{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} - {{- $pages := slice -}} - {{- if or $.IsHome $.IsSection -}} - {{- $pages = $pctx.RegularPagesRecursive -}} - {{- else -}} - {{- $pages = $pctx.Pages -}} - {{- end -}} - {{- $limit := .Site.Config.Services.RSS.Limit -}} - {{- if ge $limit 1 -}} - {{- $pages = $pages | first $limit -}} - {{- end -}} - {{- printf "" | safeHTML }} - - - {{ .Site.Author.name }}'s Art - {{ .Permalink }} - Feed of the art that I make! - {{ with .Site.LanguageCode }} - {{.}} - {{end}} - - {{ with .Site.Copyright }} - {{.}} - {{end}} - - {{ if not .Date.IsZero }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ end }} - - https://www.rssboard.org/rss-specification - - {{ with resources.Get "rss-image.png" }} - - {{ .Permalink }} - {{ $.Site.Author.name }}'s Art - {{ $.Permalink }} - 100 - 100 - - {{ end }} - - {{- with .OutputFormats.Get "RSS" -}} - {{ printf "" .Permalink .MediaType | safeHTML }} - {{- end -}} - - {{ range $pages }} - {{ if not (.Param "excludefeed") }} - - {{ with .Title }} - {{ . }} - {{ else }} - Untitled Artwork - {{ end }} - - {{ .Permalink }} - - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - - {{ .Permalink }} - - {{ with .Summary }} - {{ " - {{ else }} - This artwork has no description. - {{ end }} - - {{ with $.Site.Author.name }} - {{ . }} - {{ end }} - - {{ " - {{ end }} - - {{ with .Content }} -

{{ . | safeHTML }}

- {{ else }} -

This artwork has no additional commentary.

- {{ end }}]]> -
-
- {{ end }} - {{ end }} -
-
diff --git a/themes/retro/layouts/index.html b/themes/retro/layouts/index.html deleted file mode 100644 index 575170a..0000000 --- a/themes/retro/layouts/index.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ define "main" }} -

{{ .Title }}

- -
- - {{ .Content }} -{{ end }} diff --git a/themes/retro/layouts/partials/art-gallery.html b/themes/retro/layouts/partials/art-gallery.html deleted file mode 100644 index 9acee13..0000000 --- a/themes/retro/layouts/partials/art-gallery.html +++ /dev/null @@ -1,25 +0,0 @@ -{{ $paginator := .Paginate (where .RegularPagesRecursive "Type" "art") }} - -
-{{ range $paginator.Pages }} - {{ partial "render-art" . }} -{{ end }} -
- -
- -{{ with $paginator.Prev }} -Prev -{{ else }} -Prev -{{ end }} - -{{ printf "Page %d" $paginator.PageNumber }} - -{{ with $paginator.Next }} -Next -{{ else }} -Next -{{ end }} - -
diff --git a/themes/retro/layouts/partials/art-tag.html b/themes/retro/layouts/partials/art-tag.html deleted file mode 100644 index c758b21..0000000 --- a/themes/retro/layouts/partials/art-tag.html +++ /dev/null @@ -1,7 +0,0 @@ -

{{ .Title }}

- -
- -{{ .Content }} - -{{ partial "art-gallery" . }} diff --git a/themes/retro/layouts/partials/art-years.html b/themes/retro/layouts/partials/art-years.html deleted file mode 100644 index 69d5052..0000000 --- a/themes/retro/layouts/partials/art-years.html +++ /dev/null @@ -1,12 +0,0 @@ -

Years

-
-{{ range $.Param "years" }} - {{ $year := . }} - - {{ $thumbp := printf "/year-thumbs/%d.webp" . }} - {{ with (resources.Get $thumbp).Resize "256x bmp" }} - {{ $year }} - {{ end }} - -{{ end }} -
diff --git a/themes/retro/layouts/partials/featured-art.html b/themes/retro/layouts/partials/featured-art.html deleted file mode 100644 index 7d73189..0000000 --- a/themes/retro/layouts/partials/featured-art.html +++ /dev/null @@ -1,45 +0,0 @@ - diff --git a/themes/retro/layouts/partials/footer.html b/themes/retro/layouts/partials/footer.html deleted file mode 100644 index e74b13c..0000000 --- a/themes/retro/layouts/partials/footer.html +++ /dev/null @@ -1,22 +0,0 @@ -
- -
- {{ range $.Site.Menus.badges }} - {{ $badgeScope := . }} - {{ with resources.Get .URL }} - {{ $badgeScope.Name }} - {{ end }} - {{ end }} -
- -{{ range $.Site.Menus.footer }} -

{{ .Name }}

-{{ end }} - -{{ with .Site.Params.geekring_site_id }} - This site is a proud member of the geekring! Check some other geeky websites here!
- Previous site -- - Random site -- - Next site -{{ end }} - diff --git a/themes/retro/layouts/partials/head.html b/themes/retro/layouts/partials/head.html deleted file mode 100644 index 8716c16..0000000 --- a/themes/retro/layouts/partials/head.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - {{ if .IsHome }} - - {{.Site.Title}} - {{ else }} - {{.Site.Title}} / {{ .Title }} - - {{ end }} - - - - - - - - - diff --git a/themes/retro/layouts/partials/header.html b/themes/retro/layouts/partials/header.html deleted file mode 100644 index fbbee38..0000000 --- a/themes/retro/layouts/partials/header.html +++ /dev/null @@ -1 +0,0 @@ -

{{ .Site.Title }}

diff --git a/themes/retro/layouts/partials/related.html b/themes/retro/layouts/partials/related.html deleted file mode 100644 index 431fe55..0000000 --- a/themes/retro/layouts/partials/related.html +++ /dev/null @@ -1,9 +0,0 @@ -{{ $related := .Site.RegularPages.Related . | first 5 }} -{{ with $related }} -

See Also

- -{{ end }} diff --git a/themes/retro/layouts/partials/render-art.html b/themes/retro/layouts/partials/render-art.html deleted file mode 100644 index d61c3cf..0000000 --- a/themes/retro/layouts/partials/render-art.html +++ /dev/null @@ -1,35 +0,0 @@ -{{ $full := resources.Get (printf "art/%s.webp" .Params.slug) }} -{{ if $full }} - -{{ $filename_without_ext := .Params.slug }} - -{{ $month := 1 }} -{{ $year := 1 }} - -{{ if .Params.date }} - {{ $split := split .Params.date "-" }} - {{ $month = index $split 0 }} - {{ $year = index $split 3 }} -{{ end }} - - -{{ $path := printf "/art/%d/%.2d/%s" (int $year) (int $month) $filename_without_ext}} - {{ $title := .Params.title }} - {{ $image := (resources.Get (printf "art/%s.webp" .Params.slug)).Resize "400x bmp" }} - - {{ if .Params.nsfw }} - {{ $image = $image | images.Filter (images.GaussianBlur 6) (images.Pixelate 8) }} - {{ end }} - - {{ with $image }} - {{ $title }} - {{ else }} -

Thumbnail not found!

- {{ end }} -
-{{ else }} - -CANNOT FIND {{.Params.slug }} - -{{ end }} - diff --git a/themes/retro/layouts/partials/rss.html b/themes/retro/layouts/partials/rss.html deleted file mode 100644 index 7ffef00..0000000 --- a/themes/retro/layouts/partials/rss.html +++ /dev/null @@ -1,37 +0,0 @@ -{{ $html := .Content | safeHTML }} - -{{ $hrefs := findRE "href=\"([^\"]*)\"" $html }} -{{ range $href := $hrefs}} -{{ $absHref := strings.TrimPrefix "href=\"" $href }} -{{ $absHref = strings.TrimSuffix "\"" $absHref }} -{{ $absHref = printf "href=\"%s\"" ($absHref | absURL) }} -{{ $html = replace $html $href $absHref }} -{{ end }} - -{{ $srcs := findRE "src=\"([^\"]*)\"" $html }} -{{ range $src := $srcs}} -{{ $absSrc := strings.TrimPrefix "src=\"" $src }} -{{ $absSrc = strings.TrimSuffix "\"" $absSrc }} -{{ $absSrc = printf "src=\"%s\"" ($absSrc | absURL) }} -{{ $html = replace $html $src $absSrc }} -{{ end }} - -{{ $srcset := findRE "srcset=\"([^\"]*)\"" $html }} -{{ range $set := $srcset}} -{{ $parts := strings.TrimPrefix "srcset=\"" $set }} -{{ $parts = strings.TrimSuffix "\"" $parts }} -{{ $parts = split $parts "," }} -{{ $newSrcset := slice }} -{{ range $part := $parts }} -{{ $part = $part | replaceRE "^\\s*(.*)\\s*$" "$1" }} -{{ $lg := split $part " " }} -{{ $href := index $lg 0 | absURL }} -{{ $size := index $lg 1 }} -{{ $newSrcset = $newSrcset | append (printf "%s %s" $href $size) }} -{{ end }} -{{ $newSrcset = delimit $newSrcset ", " }} -{{ $newSrcset = printf "srcset=\"%s\"" $newSrcset }} -{{ $html = replace $html $set $newSrcset }} -{{ end }} - -{{ return $html }} diff --git a/themes/retro/layouts/partials/sidebar.html b/themes/retro/layouts/partials/sidebar.html deleted file mode 100644 index f1554c3..0000000 --- a/themes/retro/layouts/partials/sidebar.html +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/themes/retro/layouts/robots.txt b/themes/retro/layouts/robots.txt deleted file mode 100644 index 1f53798..0000000 --- a/themes/retro/layouts/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Disallow: / diff --git a/themes/retro/layouts/shortcodes/add.html b/themes/retro/layouts/shortcodes/add.html deleted file mode 100644 index e69de29..0000000 diff --git a/themes/retro/layouts/shortcodes/blog-featured.html b/themes/retro/layouts/shortcodes/blog-featured.html deleted file mode 100644 index e69de29..0000000 diff --git a/themes/retro/layouts/shortcodes/featured-art.html b/themes/retro/layouts/shortcodes/featured-art.html deleted file mode 100644 index 588dfc0..0000000 --- a/themes/retro/layouts/shortcodes/featured-art.html +++ /dev/null @@ -1 +0,0 @@ -{{ partial "featured-art" . }} diff --git a/themes/retro/layouts/shortcodes/guestbook.html b/themes/retro/layouts/shortcodes/guestbook.html deleted file mode 100644 index 300443d..0000000 --- a/themes/retro/layouts/shortcodes/guestbook.html +++ /dev/null @@ -1,14 +0,0 @@ -{{ if hugo.IsProduction }} - - -
- -
-{{ else }} -Guestbook is disabled in development mode. -{{ end }} diff --git a/themes/retro/layouts/shortcodes/include-shader.html b/themes/retro/layouts/shortcodes/include-shader.html deleted file mode 100644 index e69de29..0000000 diff --git a/themes/retro/layouts/shortcodes/insert-pic.html b/themes/retro/layouts/shortcodes/insert-pic.html deleted file mode 100644 index e69de29..0000000 diff --git a/themes/retro/layouts/shortcodes/kofi.html b/themes/retro/layouts/shortcodes/kofi.html deleted file mode 100644 index e69de29..0000000 diff --git a/themes/retro/layouts/shortcodes/out-link.html b/themes/retro/layouts/shortcodes/out-link.html deleted file mode 100644 index a5d5844..0000000 --- a/themes/retro/layouts/shortcodes/out-link.html +++ /dev/null @@ -1,14 +0,0 @@ -{{ $link := .Get "link" }} -{{ $banner := .Get "banner" }} -{{ $label := .Get "label" }} - - - -{{ $path := printf "/links/%s" $banner}} -{{ $img := resources.Get $path }} -{{ with $img }} - -{{ $label }} -{{ end }} - - diff --git a/themes/retro/layouts/shortcodes/profile-picture.html b/themes/retro/layouts/shortcodes/profile-picture.html deleted file mode 100644 index 7586182..0000000 --- a/themes/retro/layouts/shortcodes/profile-picture.html +++ /dev/null @@ -1,4 +0,0 @@ -{{ $avatar := resources.Get .Site.Params.profile_picture }} -{{ with $avatar }} - -{{ end }} diff --git a/themes/retro/layouts/shortcodes/proj-featured.html b/themes/retro/layouts/shortcodes/proj-featured.html deleted file mode 100644 index e69de29..0000000 diff --git a/themes/retro/layouts/shortcodes/recent-changes.html b/themes/retro/layouts/shortcodes/recent-changes.html deleted file mode 100644 index a779152..0000000 --- a/themes/retro/layouts/shortcodes/recent-changes.html +++ /dev/null @@ -1,8 +0,0 @@ - diff --git a/themes/retro/layouts/shortcodes/recent-posts.html b/themes/retro/layouts/shortcodes/recent-posts.html deleted file mode 100644 index 341522a..0000000 --- a/themes/retro/layouts/shortcodes/recent-posts.html +++ /dev/null @@ -1,6 +0,0 @@ -{{ range first 3 (where .Site.Pages "Type" "blog").ByDate.Reverse }} -
  • - {{ .Title }} -

    {{ .Summary }}

    -
  • -{{ end }} diff --git a/themes/retro/layouts/shortcodes/release.html b/themes/retro/layouts/shortcodes/release.html deleted file mode 100644 index e69de29..0000000 diff --git a/themes/retro/layouts/shortcodes/series-nav.html b/themes/retro/layouts/shortcodes/series-nav.html deleted file mode 100644 index e69de29..0000000 diff --git a/themes/retro/layouts/shortcodes/stoot.html b/themes/retro/layouts/shortcodes/stoot.html deleted file mode 100644 index ce4d423..0000000 --- a/themes/retro/layouts/shortcodes/stoot.html +++ /dev/null @@ -1,169 +0,0 @@ - -{{ $masIns := .Get 0 }} -{{ $tootLink := "" }} -{{ $card := "" }} -{{ $handleInst := "" }} -{{ $mediaMD5 := "" }} -{{ $imageCount := 0 }} -{{ $votesCount := 0 }} -{{ $id := .Get 1 }} -{{ $urlToGet := print "https://" $masIns "/api/v1/statuses/" $id }} - -{{- with resources.GetRemote $urlToGet -}} - {{ if (resources.GetRemote $urlToGet).Err }} -
    - -
    - {{ else }} - {{ $json := unmarshal .Content }} - {{ $jsonHolder := $json }}{{/* Being safe */}} - - {{ if isset $json "account" }} - {{ $tootLink = print "https://" $masIns "@" $json.account.acct "/status/" $id }} - {{ $handleInst = print "@" $json.account.acct "@" $masIns }} - {{ end }} - - {{ if isset $json "content" }} -
    -
    - - -
    - {{ $json.account.display_name }} - {{ $handleInst }} -
    -
    - {{ $json.content | safeHTML }} - {{ with $json.media_attachments }} - {{ range $media_attachments := . }} - {{ if eq $media_attachments.type "image" }} - {{ $imageCount = (add ($imageCount) 1) }} - {{ end }} - {{ end }} -
    - {{ range $media_attachments := . }} - {{ if eq $media_attachments.type "image" }} - {{ $mediaMD5 = md5 $media_attachments.url }} - - Image {{ $media_attachments.id }} from toot {{ $id }} on {{ $masIns }} - {{- if $json.sensitive -}} -
    - Sensitive content
    - (flagged at origin) -
    - {{- end -}} - {{ end }} - {{ end }} -
    - {{/* - N.B.: - The above results in an empty, no-height div - when there's no image but there **is** - at least one item in `$media_attachments`. - Unfortunately, it seems to be the only way - to accomplish this. Not a good HTML practice, - but gets the job done. - */}} - {{ range $media_attachments := . }} - {{ if eq $media_attachments.type "video" }} - {{ $mediaMD5 = md5 $media_attachments.url }} - -
    - - {{- if $json.sensitive -}} -
    - Sensitive content
    - (flagged at origin) -
    - {{- end -}} -
    - {{ end }} - {{ if eq $media_attachments.type "gifv" }} - {{ $mediaMD5 = md5 $media_attachments.url }} - -
    - - {{- if $json.sensitive -}} -
    - Sensitive content
    - (flagged at origin) -
    - {{- end -}} -
    - {{ end }} - {{ end }} - {{ end }} - {{ with $json.card }} - {{- $cardData := . -}} - {{- with $cardData.image -}} - -
    -
    - Card image from {{ $masIns }} toot {{ $id }} -
    -
    -

    {{ $cardData.title }}

    -

    {{ $cardData.description }}

    -
    -
    -
    - {{- end -}} - {{ end }} - {{ with $json.poll }} - {{ $poll := . }} - {{ with $poll.options }} - {{ range $pollOptions := . }} - {{ $votesCount = add $votesCount $pollOptions.votes_count }} - {{ end }} -
    - {{ range $pollOptions := . }} -
    - {{ (mul 100 (div $pollOptions.votes_count $votesCount)) | lang.FormatPercent 1 }} -
    -
    - -
    -
    {{ $pollOptions.title }}
    - {{ end }} -
    - - {{ end }} - {{ end }} - -
    - {{ end }} - {{ end }} -{{- end -}} diff --git a/themes/retro/layouts/shortcodes/three-scene.html b/themes/retro/layouts/shortcodes/three-scene.html deleted file mode 100644 index e69de29..0000000 diff --git a/themes/retro/layouts/shortcodes/tube.html b/themes/retro/layouts/shortcodes/tube.html deleted file mode 100644 index e69de29..0000000 diff --git a/themes/retro/layouts/shortcodes/video.html b/themes/retro/layouts/shortcodes/video.html deleted file mode 100644 index fdc9ccb..0000000 --- a/themes/retro/layouts/shortcodes/video.html +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/themes/retro/theme.toml b/themes/retro/theme.toml deleted file mode 100644 index 8d3b088..0000000 --- a/themes/retro/theme.toml +++ /dev/null @@ -1,12 +0,0 @@ -name = "retro" -license = "MIT" -licenselink = "https://git.sr.ht/~redstrate/redstrate.com/tree/master/item/themes/retro/LICENSE" -description = "Custom Hugo theme for use on redstrate.com" -homepage = "https://redstrate.com/" -tags = [] -features = [] -min_version = "0.41.0" - -[author] - name = "redstrate " - homepage = "https://redstrate.com/"