v0.1.43 theme: 관련글 우선순위 및 레이아웃 UI 보정
Made-with: Cursor
This commit is contained in:
@@ -102,14 +102,28 @@
|
||||
{{#post}}
|
||||
<section class="px-4 sm:px-5 py-4 sm:py-5 xl:pr-1 flex flex-col gap-1.5 border-b border-brd">
|
||||
<div class="flex items-center justify-between gap-2 mb-1">
|
||||
<h2 class="uppercase font-medium text-xs text-typ-tone">Read next</h2>
|
||||
<h2 class="uppercase font-bold text-xs text-typ-tone">Read next</h2>
|
||||
</div>
|
||||
<ul class="flex flex-col gap-0.5 rounded-theme overflow-hidden">
|
||||
{{#get "posts" filter=(concat "id:-" id) limit="4"}}
|
||||
{{#foreach posts}}
|
||||
<li class="style-none"><a href="{{url}}" class="py-1 text-[0.8rem] leading-tight flex items-center gap-2 hover:opacity-75"><h3 class="font-medium line-clamp-1 text-ellipsis overflow-hidden">{{title}}</h3></a></li>
|
||||
{{/foreach}}
|
||||
{{/get}}
|
||||
{{#if primary_tag}}
|
||||
{{#get "posts" filter=(concat "id:-" id "+tag:" primary_tag.slug) limit="4"}}
|
||||
{{#foreach posts}}
|
||||
<li class="style-none"><a href="{{url}}" class="py-1 text-[0.8rem] leading-tight flex items-center gap-2 hover:opacity-75"><h3 class="font-medium line-clamp-1 text-ellipsis overflow-hidden">{{title}}</h3></a></li>
|
||||
{{/foreach}}
|
||||
{{else}}
|
||||
{{#get "posts" filter=(concat "id:-" id) limit="4"}}
|
||||
{{#foreach posts}}
|
||||
<li class="style-none"><a href="{{url}}" class="py-1 text-[0.8rem] leading-tight flex items-center gap-2 hover:opacity-75"><h3 class="font-medium line-clamp-1 text-ellipsis overflow-hidden">{{title}}</h3></a></li>
|
||||
{{/foreach}}
|
||||
{{/get}}
|
||||
{{/get}}
|
||||
{{else}}
|
||||
{{#get "posts" filter=(concat "id:-" id) limit="4"}}
|
||||
{{#foreach posts}}
|
||||
<li class="style-none"><a href="{{url}}" class="py-1 text-[0.8rem] leading-tight flex items-center gap-2 hover:opacity-75"><h3 class="font-medium line-clamp-1 text-ellipsis overflow-hidden">{{title}}</h3></a></li>
|
||||
{{/foreach}}
|
||||
{{/get}}
|
||||
{{/if}}
|
||||
</ul>
|
||||
</section>
|
||||
{{/post}}
|
||||
|
||||
Reference in New Issue
Block a user