🎨 Code cleanup

This commit is contained in:
James Panther
2024-05-01 15:17:15 +10:00
parent 0561b834c8
commit 4b3038bb49
10 changed files with 50 additions and 44 deletions

View File

@@ -1,6 +1,6 @@
{{ define "main" }}
<article class="flex flex-col items-center justify-center h-full mt-10 text-center">
<header class="flex flex-col items-center mb-3">
<article class="mt-10 flex h-full flex-col items-center justify-center text-center">
<header class="mb-3 flex flex-col items-center">
{{ with .Site.Params.Author.image }}
{{ $src := . }}
{{ $resource := "" }}
@@ -13,7 +13,7 @@
{{ $src = (.Fill "288x288").RelPermalink }}
{{ end }}
<img
class="mb-2 rounded-full h-36 w-36"
class="mb-2 h-36 w-36 rounded-full"
width="144"
height="144"
alt="{{ $.Site.Params.Author.name | default "Author" }}"
@@ -29,11 +29,11 @@
</h2>
{{ end }}
{{ with .Content }}
<section class="pt-5 prose dark:prose-invert">{{ . | emojify }}</section>
<section class="prose pt-5 dark:prose-invert">{{ . | emojify }}</section>
{{ end }}
</header>
{{ with .Site.Params.Author.links }}
<div class="flex flex-col flex-wrap min-w-full mt-4 sm:min-w-0">
<div class="mt-4 flex min-w-full flex-col flex-wrap sm:min-w-0">
{{ range $links := . }}
{{ range $type, $data := $links }}
{{ $href := $data }}