Skip to content

Commit

Permalink
👕 linting files
Browse files Browse the repository at this point in the history
  • Loading branch information
chrede88 committed Nov 6, 2024
1 parent dfbbd85 commit e43429b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion layouts/404.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ define "main" }}
<div class="mb-2 mt-24 flex flex-col items-center justify-center md:mt-48">
<h1 class="text-3xl font-extrabold text-slate-700 md:text-8xl dark:text-slate-200">Page not found!</h1>
<h1 class="text-3xl font-extrabold text-slate-700 dark:text-slate-200 md:text-8xl">Page not found!</h1>
<div class="m-4 flex flex-row justify-center space-x-4">
{{ range site.Menus.main }}
<a href="{{ .URL }}" class="rounded-full bg-slate-700 px-3 py-1 text-slate-200 hover:text-indigo-500 dark:bg-slate-200 dark:text-slate-700">
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1 class="text-4xl font-extrabold text-slate-700 dark:text-slate-200">
{{ end }}
<div class="flex flex-col justify-between p-6">
<div>
<h4 class="mb-2 line-clamp-2 text-base font-semibold text-slate-700 antialiased md:text-2xl dark:text-slate-200">
<h4 class="mb-2 line-clamp-2 text-base font-semibold text-slate-700 antialiased dark:text-slate-200 md:text-2xl">
{{ .Title }}
</h4>
<p class="mb-4 line-clamp-6 text-base text-slate-500 dark:text-slate-400">
Expand Down
17 changes: 8 additions & 9 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,20 @@ <h2 class="mt-4 text-2xl text-slate-500 dark:text-slate-400">
{{ end }}

{{ if $toc }}
<aside class="flex flex-col mt-4 mb-8">
<h2 class="text-2xl text-slate-500 dark:text-slate-400 mb-2">
Table of Content
</h2>
<div class="text-lg underline text-slate-700 dark:text-slate-200">
<aside class="mb-8 mt-4 flex flex-col">
<h2 class="mb-2 text-2xl text-slate-500 dark:text-slate-400">Table of Content</h2>
<div class="text-lg text-slate-700 underline dark:text-slate-200">
<nav>
{{- range .Fragments.Headings }}
<ul class="list-[upper-roman] list-inside">
<ul class="list-inside list-[upper-roman]">
{{- range .Headings }}
<li class="hover:text-slate-500 hover:dark:text-slate-400"><a href="#{{ anchorize .ID }}">{{ .Title }}</a></li>
{{- if .Headings }}
<ul class="list-[lower-alpha] list-inside">
<ul class="list-inside list-[lower-alpha]">
{{- range .Headings }}
<li class="ml-4 hover:text-slate-500 hover:dark:text-slate-400"><a href="#{{ anchorize .ID }}">{{ .Title }}</a></li>
{{- if .Headings }}
<ul class="list-disc list-inside">
<ul class="list-inside list-disc">
{{- range .Headings }}
<li class="ml-8 hover:text-slate-500 hover:dark:text-slate-400"><a href="#{{ anchorize .ID }}">{{ .Title }}</a></li>
{{- end }}
Expand All @@ -63,7 +61,8 @@ <h2 class="text-2xl text-slate-500 dark:text-slate-400 mb-2">
</aside>
{{ end }}

<span class="prose prose-slate break-words text-lg text-slate-700 dark:prose-invert prose-pre:max-w-[90vw] md:prose-pre:max-w-screen-md dark:text-slate-200">

<span class="prose prose-slate break-words text-lg text-slate-700 dark:prose-invert prose-pre:max-w-[90vw] dark:text-slate-200 md:prose-pre:max-w-screen-md">
{{ .Content }}
</span>
</article>
Expand Down
2 changes: 1 addition & 1 deletion layouts/misc/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h2 class="mt-2 text-center text-2xl text-slate-500 dark:text-slate-400">
<article>
{{ if .Params.bio }}
<h1 class="mb-4 text-4xl font-extrabold text-slate-700 dark:text-slate-200">Biography</h1>
<span class="prose prose-slate break-words text-lg text-slate-700 dark:prose-invert prose-pre:max-w-[90vw] md:prose-pre:max-w-screen-md dark:text-slate-200">
<span class="prose prose-slate break-words text-lg text-slate-700 dark:prose-invert prose-pre:max-w-[90vw] dark:text-slate-200 md:prose-pre:max-w-screen-md">
{{ .Content }}
</span>
{{ end }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div class="flex flex-row space-x-8">
<nav class="hidden space-x-8 text-xl md:block" aria-label="main">
{{ range site.Menus.main }}
<a href="{{ .URL }}" class="px-3 py-2 text-slate-700 hover:text-indigo-500 md:p-0 dark:text-slate-400">
<a href="{{ .URL }}" class="px-3 py-2 text-slate-700 hover:text-indigo-500 dark:text-slate-400 md:p-0">
{{ .Name }}
</a>
{{ end }}
Expand All @@ -40,7 +40,7 @@
<section id="mobile-menu" class="absolute hidden w-full origin-top animate-open-menu flex-col justify-center bg-neutral-100 text-4xl dark:bg-neutral-800">
<nav class="flex min-h-screen flex-col items-center py-8" aria-label="mobile">
{{ range site.Menus.main }}
<a href="{{ .URL }}" class="px-3 py-2 text-center text-slate-700 hover:text-indigo-500 md:p-0 dark:text-slate-400">
<a href="{{ .URL }}" class="px-3 py-2 text-center text-slate-700 hover:text-indigo-500 dark:text-slate-400 md:p-0">
{{ .Name }}
</a>
{{ end }}
Expand Down
3 changes: 2 additions & 1 deletion layouts/shortcodes/figArray.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{{/* prettier-ignore-start */}}
{{/* Enable an array of images to be loaded from a subfolder within a blog post.
I.e. `./content/blog/blogpost/images/`.
All images in the subfolder will be used!
Function call: "{{< figArray subfolder="folderName">}}"
Optionally set "numCols" to the wanted number of columns.
Optionally pass a general figure caption as "figCaption".
*/}}

{{/* prettier-ignore-end */}}
{{/* load variables */}}
{{ $page := .Page }}
{{ $path := .Get "subfolder" }}
Expand Down

0 comments on commit e43429b

Please sign in to comment.