Browse Source

remove old files

Alexander Avery 1 month ago
parent
commit
323cb72d81
  1. 42
      assets/sass/cards.scss
  2. 18
      assets/sass/code.scss
  3. 14
      assets/sass/colors.scss
  4. 86
      assets/sass/main.scss
  5. 3
      go.mod
  6. 7
      layouts/404.html
  7. 40
      layouts/_default/baseof.html
  8. 48
      layouts/_default/list.html
  9. 20
      layouts/_default/single.html
  10. 33
      layouts/authors/list.html
  11. 9
      layouts/authors/terms.html
  12. 14
      layouts/partials/article-alternate.html
  13. 19
      layouts/partials/article-meta.html
  14. 22
      layouts/partials/article.html
  15. 5
      layouts/partials/footer.html
  16. 11
      layouts/partials/header.html
  17. 28
      layouts/partials/image-small.html
  18. 38
      layouts/partials/image.html
  19. 1
      layouts/partials/posts-artfully-enumerated.html
  20. 20
      layouts/partials/posts-enumerated.html
  21. 3
      layouts/shortcodes/image.html

42
assets/sass/cards.scss

@ -1,42 +0,0 @@
@mixin shadow {
box-shadow: 0px 4px 8px black;
}
.shadow {
@include shadow
}
.float-on-hover {
transition: (all 0.25s cubic-bezier(0.2,0.1,0.47,1));
&:hover {
transform: (translateY(-10px));
}
}
.small-circle {
border-radius: 50%;
width: 250px;
height: 250px;
}
article {
background-color: $dark;
border-radius: 10px;
height: 420px;
flex: 1 1 305px;
overflow: hidden;
img {
height: 50%;
width: 100%;
object-fit: cover;
}
div {
margin: 25px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
}

18
assets/sass/code.scss

@ -1,18 +0,0 @@
code { white-space: nowrap; }
pre {
background-color: $background-color !important;
max-width: 100%;
& > code {
@include shadow;
display: block;
padding: 1rem 1.5rem;
font-size: 1.05rem;
white-space: pre;
max-width: 100%;
overflow-x: auto;
border-left: .3rem solid $code-edge;
border-radius: .4rem;
}
}

14
assets/sass/colors.scss

@ -1,14 +0,0 @@
$beetbox-red: #9e0008;
$beetbox-pink: #d93370;
$beetbox-purple: #ac65cb;
$beetbox-green: #003f56;
$beetbox-blue: #5fcfd0;
$background-color: #1f2835;
$font-color: #f8f8ff;
$font-color-alternate: #1f2835;
$top-bar: #f8f8ffcc;
$dark: #111;
$link-color: $beetbox-blue;
$link-color-visited: #e4cdef;
$code-edge: $beetbox-purple;

86
assets/sass/main.scss

@ -1,86 +0,0 @@
@import 'colors.scss';
@import 'cards.scss';
@import 'code.scss';
@mixin screen-max($max) {
@media (max-width: $max - 1) {
@content
}
}
body {
background-color: $background-color;
color: $font-color;
margin: 0px;
overflow-y: scroll;
font-family: 'Helvetica';
font-size: 1.1rem;
}
h2 {font-size: 1.2rem;}
header {
background-color: $top-bar;
box-shadow: 0px 5px 10px black;
nav {
@include screen-max(500px){text-align: center;}
div {display: inline-block;}
img { max-width: 300px; }
a {
margin-right: 12px;
font-weight: bold;
text-decoration: none;
&, &:visited, &:hover {color: $font-color-alternate;}
}
}
}
header, main, section {padding: 0 16px;}
nav, main, section {max-width: 1200px; margin: auto;}
main img {max-width: 100%}
footer {text-align: center;}
a {
color: $link-color;
&:visited, &:hover { color: $link-color-visited; }
}
img.featured{aspect-ratio: 4/3;}
img.featured, img.author {
display: block;
border-radius: 8px;
margin: 12px 0;
object-fit: cover;
max-height: 500px;
}
.left-to-right {
display: flex;
flex-wrap: wrap;
gap: 8px;
justify-content: space-evenly;
align-items: end;
}
.align-center {
align-items: center;
}
section.article-list {
margin: 8px 0px;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 40px;
}
.fill-wh {
width: 100%;
height: 100%
}

3
go.mod

@ -1,3 +0,0 @@
module gitea.beetbox.io/BeetBox/neon-harvest
go 1.16

7
layouts/404.html

@ -1,7 +0,0 @@
{{ define "main" }}
<main>
<h1>404</h1>
<h2>This page doesn't exist. Let's go <a href="/">home</a></h2>
</main>
{{ end }}

40
layouts/_default/baseof.html

@ -1,40 +0,0 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">
<head>
<link rel="shortcut icon" href="/images/favicon.ico">
{{- with .OutputFormats.Get "rss" }}
{{- printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML -}}
{{ end }}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ with (default .Site.Params.description .Params.description) -}}
<meta name="description" content="{{- . -}}">
{{- end -}}
{{ with .Params.keywords -}}
<meta name="description" content="{{ delimit . "," }}">
{{- end }}
{{ $style := resources.Get "/sass/main.scss" | css.Sass | minify -}}
<link rel="stylesheet" href="{{ $style.Permalink }}">
<title>
{{- block "title" . }}{{ .Site.Title }}{{ end -}}
</title>
</head>
<body>
{{ partial "header.html" . }}
{{ block "main" . }}
{{ end }}
{{ partial "footer.html" . }}
</body>
</html>

48
layouts/_default/list.html

@ -1,48 +0,0 @@
{{ define "main" }}
{{ $pages := .Site.RegularPages }}
{{if not .IsHome }} {{ $pages = .Pages }} {{ end }}
<main>
{{ if not .IsHome }}
<h1>{{ .Title | markdownify | lower }}</h1>
{{ else }}
<h1>Beet Box</h1>
{{ end }}
{{ if and .IsSection (not .IsHome) }} {{ partial "article-meta.html" . }} {{ end }}
{{ with .Content }}
<section>
{{ . }}
</section>
{{- end }}
</main>
{{ with $pages.Limit 4 }}
<section>
<h2>Latest Posts:</h2>
<section class="article-list">
{{ range . }}
{{ partial "article.html" . }}
{{ end }}
</section>
</section>
{{ end }}
{{ with $pages }}
<section>
<h2>All Posts:</h2>
{{ range .GroupByDate "2006" }}
<p>{{ .Key }}</p>
<ul>
{{ range .Pages -}}
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
{{ end -}}
</ul>
{{ end }}
</section>
{{ end }}
{{ end }}

20
layouts/_default/single.html

@ -1,20 +0,0 @@
{{ define "title" }}{{ .Title }}{{ end }}
{{ define "main" }}
<main>
{{ partial "article-meta.html" . }}
{{ .Content }}
</main>
<section>
{{ with .NextInSection }}
<p>Next: <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></p>
{{ end }}
{{ with .PrevInSection }}
<p>Previous: <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></p>
{{ end }}
</section>
{{ end }}

33
layouts/authors/list.html

@ -1,33 +0,0 @@
{{ define "main" }}
<section>
{{ with .Resources.GetMatch "avatar" }}
<img class="shadow author" src="{{ .RelPermalink }}" alt="{{ .Params.alt }}"/>
{{ end }}
<div>
<h1>{{ .Params.name }}</h1>
<a href={{ .Params.projects }}>Projects</a>
<span> | </span>
<a href="mailto:{{ .Params.email }}">{{ .Params.email}}</a>
</div>
</section>
<main>
{{ .Content }}
</main>
<section>
<h2>Posts:</h2>
{{ with .Data.Pages }}
<section class="article-list">
{{ range . }}
{{ partial "article.html" . }}
{{ end }}
</section>
{{ end }}
</section>
{{ end }}

9
layouts/authors/terms.html

@ -1,9 +0,0 @@
{{ define "main" }}
<section>
<h1 class="center-text">Authors</h1>
{{ range .Data.Pages }}
{{ partial "article-alternate.html" . }}
{{ end }}
</section>
{{ end }}

14
layouts/partials/article-alternate.html

@ -1,14 +0,0 @@
<a href={{ printf "/%s/%s" "authors" (.Params.name | urlize) }}>
<article class="shadow left-to-right float-on-hover align-center">
<div>
{{ with .Resources.GetMatch "avatar" }}
<img class="shadow small-circle" src="{{ .RelPermalink }}" alt="{{ .Params.alt }}"/>
{{ end }}
</div>
<div>
<h2>{{ .Params.name }}</h2>
<p>{{ .Params.bio }}</p>
</div>
</article>
</a>

19
layouts/partials/article-meta.html

@ -1,19 +0,0 @@
<section>
{{ with .Params.authors }}
{{ $author := (index . 0) }}
<h4>Author: <a href={{ printf "/%s/%s" "authors" (urlize $author) }}>{{ $author }}</a></h4>
{{ end }}
{{ with .Date }}
<h4>Posted: {{ .Format "Mon | Jan 2, 2006" }}</h4>
{{ end }}
{{ range (.GetTerms "tags") }}
<span>
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
</span>
{{ end }}
{{ $image := (.Resources.GetMatch "featured") }}
{{ partial "image.html" (dict "image" $image "alt" .Params.featured.alt "class" "shadow featured") }}
</section>

22
layouts/partials/article.html

@ -1,22 +0,0 @@
<article class="shadow float-on-hover">
<a href=" {{.Permalink }}">
{{ $image := .Resources.GetMatch "featured" }}
{{ partial "image-small.html" (dict "image" $image "alt" .Params.featured.alt) }}
</a>
<div>
{{ with index (.GetTerms "tags") 0 }}
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
{{ end }}
<h2 class="title">{{ .Title | markdownify }}</h2>
{{ with .Date }}
<p>{{ .Format "2006/01/02" }}</p>
{{ end }}
</div>
</article>

5
layouts/partials/footer.html

@ -1,5 +0,0 @@
<footer>
<hr>
<p><a href="/authors">Authors</a></p>
<p>{{ $.Site.Copyright | safeHTML }}</p>
</footer>

11
layouts/partials/header.html

@ -1,11 +0,0 @@
<header>
<nav>
<a href="/"><img src="{{ .Site.Params.logo }}" alt="The {{ .Site.Title }} Logo"></a>
<div>
{{ range .Site.Params.HeaderLinks -}}
<a href="{{ .url }}" title="{{ .title }}">{{ .title }}</a>
{{ end -}}
{{ printf `<a href="/index.xml" title="%s">RSS</a>` $.Site.Title | safeHTML }}
</div>
</nav>
</header>

28
layouts/partials/image-small.html

@ -1,28 +0,0 @@
<img class="{{ .class }}"
{{- with .image -}}
{{ $smallest := (.Resize "305x webp q60") }}
srcset="
{{- with $smallest -}}
{{ printf "%s %dw," .RelPermalink .Width }}
{{- end -}}
{{- with (.Resize "480x webp q60") -}}
{{ printf "%s %dw," .RelPermalink .Width }}
{{- end -}}
"
sizes="
(max-width: 480px) 305px;
480px"
src="
{{- with $smallest -}}
{{ .RelPermalink }}
{{- end -}}"
alt="{{ .Params.alt }}"
{{- end -}}
>

38
layouts/partials/image.html

@ -1,38 +0,0 @@
<img class="{{ .class }}"
{{- with .image -}}
{{ $smallest := (.Resize "320x webp q60") }}
srcset="
{{- with $smallest -}}
{{ printf "%s %dw," .RelPermalink .Width }}
{{- end -}}
{{- with (.Resize "480x webp q60") -}}
{{ printf "%s %dw," .RelPermalink .Width }}
{{- end -}}
{{- with (.Resize "600x webp q70") -}}
{{ printf "%s %dw," .RelPermalink .Width }}
{{- end -}}
{{- with (.Resize "800x webp q90") -}}
{{ printf "%s %dw," .RelPermalink .Width }}
{{- end -}}
"
sizes="
(max-width: 480px) 320px;
(max-width: 600px) 480px;
(max-width: 800px) 600px;
800px"
src="
{{- with $smallest -}}
{{ .RelPermalink }}
{{- end -}}"
alt="{{ .Params.alt }}"
{{- end -}}
>

1
layouts/partials/posts-artfully-enumerated.html

@ -1 +0,0 @@

20
layouts/partials/posts-enumerated.html

@ -1,20 +0,0 @@
{{ with . }}
<section>
<h2>Latest Posts:</h2>
<section class="article-list">
{{ range .Limit 5 }}
{{ partial "article.html" . }}
{{ end }}
</section>
<h2>All Posts:</h2>
{{ range .GroupByDate "2006" }}
<p>{{ .Key}}</p>
<ul>
{{ range .Pages -}}
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
{{ end -}}
</ul>
{{ end }}
</section>
{{ end }}

3
layouts/shortcodes/image.html

@ -1,3 +0,0 @@
{{ $image := .Page.Resources.GetMatch (.Get "src") }}
{{ partial "image.html" (dict "image" $image "alt" (.Get "alt") "class" "fill-wh") }}
Loading…
Cancel
Save