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" }} |
{{ define "main" }} |
||||
<div class="center-box"> |
<main> |
||||
<h1>404</h1> |
<h1>404</h1> |
||||
<h2 class="center-text">This page doesn't exist. Let's go <a href="/">home</a></h2> |
<h2>This page doesn't exist. Let's go <a href="/">home</a></h2> |
||||
</div> |
</main> |
||||
{{ end }} |
{{ end }} |
||||
|
|
||||
|
@ -1,26 +1,48 @@ |
|||||
{{ define "main" }} |
{{ define "main" }} |
||||
|
|
||||
{{ $pages := .Site.RegularPages }} |
{{ $pages := .Site.RegularPages }} |
||||
|
{{if not .IsHome }} {{ $pages = .Pages }} {{ end }} |
||||
|
|
||||
{{if not .IsHome }} |
<main> |
||||
|
{{ if not .IsHome }} |
||||
<h1 class="center-text">{{ .Title | markdownify | lower }}</h1> |
<h1>{{ .Title | markdownify | lower }}</h1> |
||||
|
{{ else }} |
||||
{{ $pages = .Pages }} |
<h1>Beet Box</h1> |
||||
|
|
||||
{{ end }} |
{{ end }} |
||||
|
|
||||
{{ if templates.Exists "partials/pre-content.html" }} |
{{ if and .IsSection (not .IsHome) }} {{ partial "article-meta.html" . }} {{ end }} |
||||
{{ partial "pre-content.html" . }} |
|
||||
{{ end }} |
{{ with .Content }} |
||||
|
<section> |
||||
|
{{ . }} |
||||
|
</section> |
||||
|
{{- end }} |
||||
|
|
||||
<section>{{ .Content }}</section> |
</main> |
||||
|
|
||||
|
{{ with $pages.Limit 4 }} |
||||
|
<section> |
||||
|
<h2>Latest Posts:</h2> |
||||
<section class="article-list"> |
<section class="article-list"> |
||||
{{ range $pages }} |
{{ range . }} |
||||
{{ partial "article.html" . }} |
{{ partial "article.html" . }} |
||||
{{ end }} |
{{ end }} |
||||
</section> |
</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 }} |
{{ end }} |
||||
|
|
||||
|
@ -1,34 +1,33 @@ |
|||||
{{ define "main" }} |
{{ define "main" }} |
||||
<section class="left-to-right"> |
<section> |
||||
|
|
||||
{{ with .Resources.GetMatch "avatar" }} |
{{ with .Resources.GetMatch "avatar" }} |
||||
<img class="shadow featured" src="{{ .RelPermalink }}" alt="{{ .Params.alt }}"/> |
<img class="shadow author" src="{{ .RelPermalink }}" alt="{{ .Params.alt }}"/> |
||||
{{ end }} |
{{ end }} |
||||
|
|
||||
<div> |
<div> |
||||
<h1>{{ .Params.name }}</h1> |
<h1>{{ .Params.name }}</h1> |
||||
<p>{{ .Params.bio }}</p> |
<a href={{ .Params.projects }}>Projects</a> |
||||
|
|
||||
<a class="small-text" href={{ .Params.projects}}>Projects</a> |
|
||||
<span> | </span> |
<span> | </span> |
||||
<a class="small-text" href="mailto:{{ .Params.email }}">{{ .Params.email}}</a> |
<a href="mailto:{{ .Params.email }}">{{ .Params.email}}</a> |
||||
</div> |
</div> |
||||
|
|
||||
</section> |
</section> |
||||
|
|
||||
<section> |
<main> |
||||
|
|
||||
{{ .Content }} |
{{ .Content }} |
||||
|
</main> |
||||
|
|
||||
|
<section> |
||||
<h2>Posts:</h2> |
<h2>Posts:</h2> |
||||
|
{{ with .Data.Pages }} |
||||
</section> |
|
||||
|
|
||||
<section class="article-list"> |
<section class="article-list"> |
||||
{{ range .Data.Pages }} |
{{ range . }} |
||||
{{ partial "article.html" . }} |
{{ partial "article.html" . }} |
||||
{{ end }} |
{{ end }} |
||||
</section> |
</section> |
||||
|
{{ end }} |
||||
|
</section> |
||||
|
|
||||
{{ end }} |
{{ 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> |
<section> |
||||
<h1 class="large-text">{{ .Title | markdownify }}</h1> |
|
||||
|
|
||||
{{ with .Params.authors }} |
{{ with .Params.authors }} |
||||
{{ $author := (index . 0) }} |
{{ $author := (index . 0) }} |
||||
<h2> |
<h4>Author: <a href={{ printf "/%s/%s" "authors" (urlize $author) }}>{{ $author }}</a></h4> |
||||
Author: <a href={{ printf "/%s/%s" "authors" (urlize $author) }}>{{ $author }}</a> |
|
||||
</h2> |
|
||||
{{ end }} |
{{ end }} |
||||
|
|
||||
{{ with .Date }} |
{{ with .Date }} |
||||
<h2 class="small-text">Posted: {{ .Format "Mon | Jan 2, 2006" }}</h2> |
<h4>Posted: {{ .Format "Mon | Jan 2, 2006" }}</h4> |
||||
{{ end }} |
{{ end }} |
||||
|
|
||||
{{ .Render "meta-extra" }} |
|
||||
|
|
||||
{{ range (.GetTerms "tags") }} |
{{ range (.GetTerms "tags") }} |
||||
<span> |
<span> |
||||
<a class="small-text" href="{{ .Permalink }}">{{ .LinkTitle }}</a> |
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a> |
||||
</span> |
</span> |
||||
{{ end }} |
{{ end }} |
||||
|
|
||||
{{ $image := (.Resources.GetMatch "featured") }} |
{{ $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> |
</section> |
||||
|
@ -1,5 +1,5 @@ |
|||||
<footer> |
<footer> |
||||
<hr> |
<hr> |
||||
<p class="center-text"><a class="small-text" href="/authors">Authors</a></p> |
<p><a href="/authors">Authors</a></p> |
||||
<p class="center-text small-text">{{ $.Site.Copyright | safeHTML }}</p> |
<p>{{ $.Site.Copyright | safeHTML }}</p> |
||||
</footer> |
</footer> |
||||
|
@ -1,11 +1,11 @@ |
|||||
<header> |
<header> |
||||
<nav class="spread"> |
<nav> |
||||
<a href="/"><img src="{{ .Site.Params.logo }}" alt="The {{ .Site.Title }} Logo"></a> |
<a href="/"><img src="{{ .Site.Params.logo }}" alt="The {{ .Site.Title }} Logo"></a> |
||||
<ul class="spread"> |
<div> |
||||
{{ range .Site.Params.HeaderLinks }} |
{{ range .Site.Params.HeaderLinks -}} |
||||
<li><a href="{{ .url }}" title="{{ .title }}">{{ .title }}</a></li> |
<a href="{{ .url }}" title="{{ .title }}">{{ .title }}</a> |
||||
{{ end }} |
{{ end -}} |
||||
<li>{{ printf `<a href="/index.xml" title="%s">RSS</a>` $.Site.Title | safeHTML }}</li> |
{{ printf `<a href="/index.xml" title="%s">RSS</a>` $.Site.Title | safeHTML }} |
||||
</ul> |
</div> |
||||
</nav> |
</nav> |
||||
</header> |
</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