Formatting

This commit is contained in:
ekzyis 2024-04-13 12:31:46 +02:00
parent 813c12d1d9
commit 9ec66412aa
8 changed files with 27 additions and 23 deletions

View File

@ -13,4 +13,4 @@
</div> </div>
</body> </body>
</html> </html>

View File

@ -8,17 +8,17 @@
</article> </article>
<ul> <ul>
{{- range where site.RegularPages "Type" "in" site.Params.mainSections }} {{- range where site.RegularPages "Type" "in" site.Params.mainSections }}
{{- if not .Params.hidden }} {{- if not .Params.hidden }}
<li> <li>
<div class="mb:16 py:24 f:fade-30 f:fade-10:hover transition:150ms;ease-in"> <div class="mb:16 py:24 f:fade-30 f:fade-10:hover transition:150ms;ease-in">
<a class="f:24 font:semibold" href="{{ .Permalink }}"> <a class="f:24 font:semibold" href="{{ .Permalink }}">
<div>{{ .Title }}</div> <div>{{ .Title }}</div>
</a> </a>
<div class="mt:12 f:fade-70"><time>{{ .Date | time.Format (":date_medium") }}</time></div> <div class="mt:12 f:fade-70"><time>{{ .Date | time.Format (":date_medium") }}</time></div>
</div> </div>
</li> </li>
{{- end }} {{- end }}
{{- end }} {{- end }}
</ul> </ul>
</div> </div>
{{ end }} {{ end }}

View File

@ -14,4 +14,4 @@
</header> </header>
{{- partial "prose.html" . -}} {{- partial "prose.html" . -}}
</article> </article>
{{ end }} {{ end }}

View File

@ -1,4 +1,7 @@
<footer class="py:24"> <footer class="py:24">
<div class="f:fade-30 f:14 mb:8">{{ .Site.Params.copyright }}</div> <div class="f:fade-30 f:14 mb:8">{{ .Site.Params.copyright }}</div>
<div class="f:fade-60 f:12">Theme <a class="f:bold" href="https://github.com/serkodev/holy" _target="_blank">Holy</a></div> <div class="f:fade-60 f:12">
</footer> Theme
<a class="f:bold" href="https://github.com/serkodev/holy" _target="_blank">Holy</a>
</div>
</footer>

View File

@ -26,6 +26,6 @@
--font-sans: "Inter var", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji; --font-sans: "Inter var", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
} }
</style> </style>
{{- partial "head-extra.html" . -}} {{- partial "head-extra.html" . -}}
</head> </head>

View File

@ -10,11 +10,11 @@
"> ">
<div> <div>
<a href="/" class="mr-3 font:extralight"> <a href="/" class="mr-3 font:extralight">
{{ if not .Site.Params.HeaderTitle }} {{ if not .Site.Params.HeaderTitle }}
{{ .Site.Title }} {{ .Site.Title }}
{{ else }} {{ else }}
{{ .Site.Params.HeaderTitle }} {{ .Site.Params.HeaderTitle }}
{{ end }} {{ end }}
</a> </a>
</div> </div>

View File

@ -1,5 +1,6 @@
<div class="mb:12 py:8"> <div class="mb:12 py:8">
<a class="f:18! font:semibold! f:fade-30! text-decoration:none f:fade-10!:hover transition:150ms;ease-in" href="{{ .url }}"> <a class="f:18! font:semibold! f:fade-30! text-decoration:none f:fade-10!:hover transition:150ms;ease-in"
href="{{ .url }}">
{{ .title }} {{ .title }}
</a> </a>
<div class="mt:12 f:14 f:fade-60"><time>{{ .subTitle }}</time></div> <div class="mt:12 f:14 f:fade-60"><time>{{ .subTitle }}</time></div>

View File

@ -37,4 +37,4 @@
_:where(hr){h:2;_bg:fade-10;_bg:fade-70@dark;_my:3em} _:where(hr){h:2;_bg:fade-10;_bg:fade-70@dark;_my:3em}
"> ">
{{- .Content -}} {{- .Content -}}
</div> </div>