Browse Source
commitmastera8b9873182
Author: Alexander Avery <alex.avery@beetbox.io> Date: Mon Feb 3 21:31:12 2025 -0500 fix some layouts commit86a069e5ef
Author: Alexander Avery <alex.avery@beetbox.io> Date: Mon Feb 3 21:25:20 2025 -0500 only show labels if posts exist commitc310b74e89
Author: Alexander Avery <alex.avery@beetbox.io> Date: Mon Feb 3 21:14:09 2025 -0500 correct order of heading tags; remove larger images for mobile commit7c0421e3c8
Author: Alexander Avery <alex.avery@beetbox.io> Date: Mon Feb 3 21:13:49 2025 -0500 minify css commit3f92309a91
Author: Alexander Avery <alex.avery@beetbox.io> Date: Mon Feb 3 20:17:11 2025 -0500 more lighthouse fixes; simplifications to scss commite71d36ae03
Author: Alexander Avery <alex.avery@beetbox.io> Date: Mon Feb 3 20:16:50 2025 -0500 remove fonts commitce224c6bd1
Author: Alexander Avery <alex.avery@beetbox.io> Date: Mon Feb 3 18:17:54 2025 -0500 begin simplification
22 changed files with 191 additions and 252 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,25 +0,0 @@ |
|||
/* |
|||
You may download the entire Source Sans Pro font family here: |
|||
https://fonts.google.com/specimen/Source+Sans+Pro?query=Source+Sans+Pro |
|||
*/ |
|||
@font-face { |
|||
font-family: 'Source Sans Pro'; |
|||
src: url('/fonts/SourceSansPro-Light.ttf') format('truetype'); |
|||
font-weight: light; |
|||
font-style: normal; |
|||
} |
|||
|
|||
@font-face { |
|||
font-family: 'Source Sans Pro'; |
|||
src: url('/fonts/SourceSansPro-Regular.ttf') format('truetype'); |
|||
font-weight: normal; |
|||
font-style: normal; |
|||
} |
|||
|
|||
@font-face { |
|||
font-family: 'Source Sans Pro'; |
|||
src: url('/fonts/SourceSansPro-Bold.ttf') format('truetype'); |
|||
font-weight: bold; |
|||
font-style: normal; |
|||
} |
|||
|
@ -1,7 +1,7 @@ |
|||
{{ define "main" }} |
|||
<div class="center-box"> |
|||
<h1>404</h1> |
|||
<h2 class="center-text">This page doesn't exist. Let's go <a href="/">home</a></h2> |
|||
</div> |
|||
<main> |
|||
<h1>404</h1> |
|||
<h2>This page doesn't exist. Let's go <a href="/">home</a></h2> |
|||
</main> |
|||
{{ end }} |
|||
|
|||
|
@ -1,26 +1,48 @@ |
|||
{{ define "main" }} |
|||
|
|||
{{ $pages := .Site.RegularPages }} |
|||
|
|||
{{if not .IsHome }} |
|||
|
|||
<h1 class="center-text">{{ .Title | markdownify | lower }}</h1> |
|||
|
|||
{{ $pages = .Pages }} |
|||
|
|||
{{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 }} |
|||
|
|||
{{ if templates.Exists "partials/pre-content.html" }} |
|||
{{ partial "pre-content.html" . }} |
|||
{{ 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 }} |
|||
|
|||
<section>{{ .Content }}</section> |
|||
|
|||
<section class="article-list"> |
|||
{{ range $pages }} |
|||
{{ partial "article.html" . }} |
|||
{{ end }} |
|||
</section> |
|||
|
|||
{{ end }} |
|||
|
|||
|
@ -1,34 +1,33 @@ |
|||
{{ define "main" }} |
|||
<section class="left-to-right"> |
|||
<section> |
|||
|
|||
{{ with .Resources.GetMatch "avatar" }} |
|||
<img class="shadow featured" src="{{ .RelPermalink }}" alt="{{ .Params.alt }}"/> |
|||
<img class="shadow author" src="{{ .RelPermalink }}" alt="{{ .Params.alt }}"/> |
|||
{{ end }} |
|||
|
|||
<div> |
|||
<h1>{{ .Params.name }}</h1> |
|||
<p>{{ .Params.bio }}</p> |
|||
|
|||
<a class="small-text" href={{ .Params.projects}}>Projects</a> |
|||
<a href={{ .Params.projects }}>Projects</a> |
|||
<span> | </span> |
|||
<a class="small-text" href="mailto:{{ .Params.email }}">{{ .Params.email}}</a> |
|||
<a href="mailto:{{ .Params.email }}">{{ .Params.email}}</a> |
|||
</div> |
|||
|
|||
</section> |
|||
|
|||
<section> |
|||
|
|||
<main> |
|||
{{ .Content }} |
|||
|
|||
<h2>Posts:</h2> |
|||
|
|||
</section> |
|||
|
|||
<section class="article-list"> |
|||
{{ range .Data.Pages }} |
|||
{{ partial "article.html" . }} |
|||
</main> |
|||
|
|||
<section> |
|||
<h2>Posts:</h2> |
|||
{{ with .Data.Pages }} |
|||
<section class="article-list"> |
|||
{{ range . }} |
|||
{{ partial "article.html" . }} |
|||
{{ end }} |
|||
</section> |
|||
</section> |
|||
{{ end }} |
|||
</section> |
|||
|
|||
{{ end }} |
|||
|
|||
|
@ -1,27 +0,0 @@ |
|||
{{ define "main" }} |
|||
|
|||
<main> |
|||
{{ partial "article-meta.html" . }} |
|||
|
|||
{{ if .Params.toc }} |
|||
{{ .TableOfContents }} |
|||
{{ end }} |
|||
|
|||
{{ .Content }} |
|||
</main> |
|||
|
|||
{{ if gt (len .Data.Pages) 0 }} |
|||
|
|||
<section> |
|||
<h2>Devlogs:</h2> |
|||
</section> |
|||
|
|||
<section class="article-list"> |
|||
{{ range .Data.Pages }} |
|||
{{ partial "article.html" . }} |
|||
{{ end }} |
|||
</section> |
|||
|
|||
{{ end }} |
|||
|
|||
{{ end }} |
@ -1,7 +0,0 @@ |
|||
{{ with .Params.releaseDate }} |
|||
<h2 class="small-text">Released: {{ dateFormat "Mon | Jan 2, 2006" . }}</h2> |
|||
{{ end }} |
|||
|
|||
<h2 class="small-text">Platforms: |
|||
<span class="margin small-text">{{ delimit .Params.platforms " · " }}</span> |
|||
</h2> |
@ -1,25 +1,19 @@ |
|||
<section> |
|||
<h1 class="large-text">{{ .Title | markdownify }}</h1> |
|||
|
|||
{{ with .Params.authors }} |
|||
{{ $author := (index . 0) }} |
|||
<h2> |
|||
Author: <a href={{ printf "/%s/%s" "authors" (urlize $author) }}>{{ $author }}</a> |
|||
</h2> |
|||
<h4>Author: <a href={{ printf "/%s/%s" "authors" (urlize $author) }}>{{ $author }}</a></h4> |
|||
{{ end }} |
|||
|
|||
{{ with .Date }} |
|||
<h2 class="small-text">Posted: {{ .Format "Mon | Jan 2, 2006" }}</h2> |
|||
<h4>Posted: {{ .Format "Mon | Jan 2, 2006" }}</h4> |
|||
{{ end }} |
|||
|
|||
{{ .Render "meta-extra" }} |
|||
|
|||
{{ range (.GetTerms "tags") }} |
|||
<span> |
|||
<a class="small-text" href="{{ .Permalink }}">{{ .LinkTitle }}</a> |
|||
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a> |
|||
</span> |
|||
{{ end }} |
|||
|
|||
{{ $image := (.Resources.GetMatch "featured") }} |
|||
{{ partial "image.html" (dict "image" $image "alt" .Params.featured.alt "class" "shadow featured margin") }} |
|||
{{ partial "image.html" (dict "image" $image "alt" .Params.featured.alt "class" "shadow featured") }} |
|||
</section> |
|||
|
@ -1,5 +1,5 @@ |
|||
<footer> |
|||
<hr> |
|||
<p class="center-text"><a class="small-text" href="/authors">Authors</a></p> |
|||
<p class="center-text small-text">{{ $.Site.Copyright | safeHTML }}</p> |
|||
<p><a href="/authors">Authors</a></p> |
|||
<p>{{ $.Site.Copyright | safeHTML }}</p> |
|||
</footer> |
|||
|
@ -1,11 +1,11 @@ |
|||
<header> |
|||
<nav class="spread"> |
|||
<nav> |
|||
<a href="/"><img src="{{ .Site.Params.logo }}" alt="The {{ .Site.Title }} Logo"></a> |
|||
<ul class="spread"> |
|||
{{ range .Site.Params.HeaderLinks }} |
|||
<li><a href="{{ .url }}" title="{{ .title }}">{{ .title }}</a></li> |
|||
{{ end }} |
|||
<li>{{ printf `<a href="/index.xml" title="%s">RSS</a>` $.Site.Title | safeHTML }}</li> |
|||
</ul> |
|||
<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> |
|||
|
@ -0,0 +1,28 @@ |
|||
<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 -}} |
|||
> |
@ -0,0 +1 @@ |
|||
|
@ -0,0 +1,20 @@ |
|||
{{ 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 }} |
Loading…
Reference in new issue