v0.1.40 홈 피드 및 문서 버전 정리

Made-with: Cursor
This commit is contained in:
2026-04-16 12:00:28 +09:00
parent 3f01b8b808
commit f839a1fba7
26 changed files with 520 additions and 235 deletions

View File

@@ -28,7 +28,10 @@
</div>
<button data-post-share-toggle class="absolute bottom-4 right-0 flex gap-1 items-center hover:opacity-75 cursor-pointer" type="button" aria-label="Share this post">
<img class="size-4 pointer-events-none" src="{{asset "icons/arrow_outward.svg"}}" alt="">
<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>
{{!-- <img class="size-4 pointer-events-none" src="{{asset "icons/arrow_outward.svg"}}" alt=""> --}}
</button>
</div>
@@ -45,9 +48,9 @@
{{/if}}
</div>
</section>
<article class="post-article {{post_class}}">
<article class="post-article pt-4 px-5 sm:px-[max(2vmin,20px)] mb-12 {{post_class}}">
<div class="post-body px-4 sm:px-[max(2vmin,20px)]">
{{!-- <div class="post-body px-4 sm:px-[max(2vmin,20px)]"> --}}
<section class="post-content kg-content ghost-content prose prose-theme">
{{content}}
</section>
@@ -60,37 +63,23 @@
</section>
{{/unless}}
<footer class="post-footer">
{{#primary_author}}
<div class="author-inline-card">
{{#if profile_image}}
<img class="avatar" src="{{img_url profile_image size="xs"}}" alt="{{name}}">
{{else}}
<div class="avatar avatar--fallback">A</div>
{{/if}}
<div>
<h3>{{name}}</h3>
{{#if bio}}<p>{{bio}}</p>{{/if}}
</div>
</div>
{{/primary_author}}
</footer>
</div>
{{!-- </div> --}}
</article>
{{> "post/post-navigation"}}
<section class="discussion-panel">
<section class="px-5 sm:px-6 mb-6 border-y py-5 border-brd scroll-mt-14 bg-bgr-tone">
{{#if comments}}
{{comments title="Comments" count=true}}
{{else}}
<div class="comments-empty">
<h3>Join the discussion</h3>
<p>Become a member of {{@site.title}} to start commenting.</p>
<a class="button" href="#/portal/signup">Sign up now</a>
<p>Already a member? <a href="#/portal/signin">Sign in</a></p>
<div class="flex flex-col items-center py-6 sm:px-8 sm:py-10">
<h3 class="mb-[8px] text-center font-sans text-2xl tracking-tight text-black font-bold">Join the discussion</h3>
<p class="mb-[28px] w-full px-0 text-center font-sans text-lg leading-normal text-neutral-600 sm:max-w-screen-sm sm:px-8">Become a member of <span class="font-semibold">{{@site.title}}</span> to start commenting.</p>
<a class="text-md mb-[12px] inline-block rounded px-5 py-[14px] font-sans font-medium leading-none text-white transition-all hover:opacity-90 bg-orange-600" href="#/portal/signup">Sign up now</a>
<p class="text-md text-center font-sans text-[rgba(0,0,0,0.4)]"><span class="mr-1 inline-block text-[15px]">Already a member?</span> <a href="#/portal/signin" class="rounded-md text-sm text-orange-600 font-semibold transition-all hover:opacity-90">Sign in</a></p>
</div>
{{/if}}
</section>
{{> "post/post-navigation"}}
</main>
{{/post}}