Apply consistent template format

This commit is contained in:
joncrangle
2023-11-30 22:56:44 -05:00
parent 8bd4ca8a57
commit 85be697741

View File

@@ -24,7 +24,7 @@
}; };
handleThemeChange(); handleThemeChange();
</script> </script>
<title>ladder | {{ .Title }}</title> <title>ladder | {{.Title}}</title>
</head> </head>
<body <body
@@ -314,46 +314,46 @@
</div> </div>
<main class="flex flex-col space-y-3"> <main class="flex flex-col space-y-3">
{{ if not .Success}} {{if not .Success}}
<h1> <h1>
Error Error
</h1> </h1>
<p> <p>
There was a problem querying There was a problem querying
<a href="{{ .Params }}">{{ .Params }}</a> <a href="{{.Params}}">{{.Params}}</a>
</p> </p>
<code class="text-red-500 dark:text-red-400"> <code class="text-red-500 dark:text-red-400">
{{ .Error }} {{.Error}}
</code> </code>
{{else}} {{else}}
<div class="flex flex-col gap-1 mt-3"> <div class="flex flex-col gap-1 mt-3">
<h1> <h1>
<a href="{{ .Url }}" class="text-slate-900 dark:text-slate-200"> {{ .Title }} </a> <a href="{{.Url}}" class="text-slate-900 dark:text-slate-200"> {{.Title}} </a>
</h1> </h1>
{{ if ne .Date "" }} {{if ne .Date ""}}
<small <small
class="text-sm font-medium leading-none text-slate-600 dark:text-slate-400" class="text-sm font-medium leading-none text-slate-600 dark:text-slate-400"
>{{ .Date }}</small >{{.Date}}</small
> >
{{ end }} {{end}}
{{ if ne .Author "" }} {{if ne .Author ""}}
<small <small
class="text-sm font-medium leading-none text-slate-600 dark:text-slate-400" class="text-sm font-medium leading-none text-slate-600 dark:text-slate-400"
>{{ .Author }}</small >{{.Author}}</small
> >
{{ end }} {{end}}
</div> </div>
<div class="flex flex-col space-y-3"> <div class="flex flex-col space-y-3">
<div> <div>
<div class="grid grid-cols-1 justify-items-center"> <div class="grid grid-cols-1 justify-items-center">
<div><img src="{{ .Image }}" alt="{{ .Description }}" class="h-auto w-auto object-cover max-w-full mx-auto rounded-md shadow-md dark:shadow-slate-700"/></div> <div><img src="{{.Image}}" alt="{{.Description}}" class="h-auto w-auto object-cover max-w-full mx-auto rounded-md shadow-md dark:shadow-slate-700"/></div>
<div class="text-xs text-gray-800">{{ .Description }}</div> <div class="text-xs text-gray-800">{{.Description}}</div>
</div> </div>
</div> </div>
<div>{{ .Body }}</div> <div>{{.Body}}</div>
{{ end }} {{end}}
</main> </main>
<div class="my-2"></div> <div class="my-2"></div>