feat: add li components

This commit is contained in:
SerKo 2022-04-27 00:15:41 +08:00
parent 31fa7446bd
commit f8b9088902
3 changed files with 13 additions and 1 deletions

7
layouts/partials/li.html Normal file
View File

@ -0,0 +1,7 @@
<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 }}">
{{ .title }}
</a>
<div class="mt:12 f:14 f:fade-70"><time>{{ .subTitle }}</time></div>
{{ .hi }}
</div>

View File

@ -1,5 +1,5 @@
<div class=" <div class="
_:where(a):hover{text-decoration-color:fade!} _:where(a):hover{text-decoration-color:fade}
_:where(a){text-decoration:2;underline;fade-10;_text-decoration-color:fade-70@dark} _:where(a){text-decoration:2;underline;fade-10;_text-decoration-color:fade-70@dark}
_:where(blockquote){bl:5;solid;fade-76/.1;_bl:5;solid;fade-34/.1@dark} _:where(blockquote){bl:5;solid;fade-76/.1;_bl:5;solid;fade-34/.1@dark}
_:where(code){font:90%;_v:middle} _:where(code){font:90%;_v:middle}

View File

@ -0,0 +1,5 @@
{{- partial "li.html" ( dict
"url" (.Get "href")
"title" (.Get "title")
"subTitle" (.Get "alt")
) -}}