v0.2.11: 커스텀 공유 모달과 레이아웃 수정 반영
Made-with: Cursor
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{{!-- 홈 Latest 하단: 태그별 최신 글 최대 5개(텍스트 링크만). 좌측 사이드바와 동일한 data-category-priority-order + 최대 10개 --}}
|
||||
<section class="px-5 sm:px-6 py-4 mb-8 home-categories" data-home-categories>
|
||||
<section class="px-4 sm:px-5 lg:px-6 py-4 mb-8 home-categories" data-home-categories>
|
||||
<div class="max-w-content mx-auto">
|
||||
<div class="flex gap-2 items-end justify-between border-b border-brd pb-3">
|
||||
<h2 class="text-sm uppercase font-medium text-typ-tone">Categories</h2>
|
||||
@@ -28,7 +28,7 @@
|
||||
<a href="{{url}}" class="home-categories__view-all mt-0.5 flex items-center gap-1 text-sm font-semibold leading-snug text-typ-tone hover:opacity-75">
|
||||
<span>View all</span>
|
||||
<i class="icon icon-arrow-up-right size-3.5 shrink-0 stroke-2" role="presentation" aria-hidden="true">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
||||
<path d="M17 7l-10 10"></path>
|
||||
<path d="M8 7l9 0l0 9"></path>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<section class="px-5 sm:px-6 py-4" data-home-featured>
|
||||
<section class="px-4 sm:px-5 lg:px-6 py-4" data-home-featured>
|
||||
<div class="max-w-content mx-auto">
|
||||
{{#get "posts" filter="featured:true" limit="12" include="authors,tags"}}
|
||||
{{#if posts}}
|
||||
@@ -50,7 +50,7 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="px-5 sm:px-6 py-4" data-home-latest>
|
||||
<section class="px-4 sm:px-5 lg:px-6 py-4 " data-home-latest>
|
||||
<div class="max-w-content mx-auto">
|
||||
<div class="flex gap-2 items-end justify-between border-b border-brd pb-2">
|
||||
<h2 class="text-sm uppercase font-medium text-typ-tone">Latest</h2>
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<span class="pointer-events-none">{{#if comments}}{{comment_count empty="0" singular="" plural="" autowrap="false"}}{{else}}0{{/if}}</span>
|
||||
</a>
|
||||
</div>
|
||||
<button data-post-share-toggle class="absolute top-0 md:top-auto md:bottom-0 right-0 flex gap-1 items-center hover:opacity-75 cursor-pointer md:opacity-0 md:invisible group-hover:opacity-100 group-hover:visible transition-[opacity,visibility]" type="button" aria-label="Share this post">
|
||||
<button data-post-share-toggle data-share-url="{{url absolute="true"}}" data-share-title="{{title}}" data-share-description="{{#if excerpt}}{{excerpt words='24'}}{{else}}{{@site.description}}{{/if}}" data-share-image="{{#if feature_image}}{{img_url feature_image size='m'}}{{/if}}" class="absolute top-0 md:top-auto md:bottom-0 right-0 flex gap-1 items-center hover:opacity-75 cursor-pointer md:opacity-0 md:invisible group-hover:opacity-100 group-hover:visible transition-[opacity,visibility]" type="button" aria-label="Share this post">
|
||||
<i class="icon icon-share size-4 stroke-2 pointer-events-none" role="presentation">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-share-3"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M13 4v4c-6.575 1.028 -9.02 6.788 -10 12c-.037 .206 5.384 -5.962 10 -6v4l8 -7l-8 -7"></path></svg>
|
||||
</i>
|
||||
|
||||
Reference in New Issue
Block a user