테마: 작성자 이미지 경로 보정

This commit is contained in:
2026-04-27 17:10:03 +09:00
parent bedd6cc603
commit 319f30d6c5
11 changed files with 71 additions and 61 deletions

View File

@@ -1,10 +1,26 @@
<aside class="sidebar sidebar--right h-full flex flex-col">
<section class="px-4 sm:px-5 py-4 sm:py-5 xl:pr-1 flex flex-col gap-3 border-b border-brd ">
<div class="flex items-center gap-2.5">
{{#if @site.icon}}
<img class="w-12 min-h-12 rounded-md h-full relative" src="{{@site.icon}}" alt="{{@site.title}}">
{{else}}
<div class="w-12 min-h-12 rounded-md h-full relative site-icon--fallback">T</div>
{{/if}}
<div class="flex flex-col gap-0.5">
<h2 class="text-sm md:text-base font-extrabold leading-tight">{{@site.title}}</h2>
{{#if @site.description}}
<p class="text-sm text-typ-tone leading-tight">{{@site.description}}</p>
{{/if}}
</div>
</div>
</section>
{{#is "post"}}
{{#post}}
{{#primary_author}}
<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">
<a class="flex gap-2 hover:opacity-80">{{#if profile_image}}
<img class="object-cover size-10 sm:size-12 aspect-square" src="{{img_url profile_image size="s"}}" alt="{{name}}">
<a class="flex gap-2 hover:opacity-80" href="{{url}}">{{#if profile_image}}
<img class="object-cover size-10 sm:size-12 aspect-square" src="{{img_url profile_image size="s" absolute="true"}}" alt="{{name}}">
{{else}}
<div class="object-cover size-10 sm:size-12 aspect-square avatar--fallback">A</div>
{{/if}}
@@ -19,29 +35,11 @@
{{/post}}
{{/is}}
<section class="px-4 sm:px-5 py-4 sm:py-5 xl:pr-1 flex flex-col gap-3 border-b border-brd ">
<div class="flex items-center gap-2.5">
{{#if @site.icon}}
<img class="w-12 min-h-12 rounded-md h-full relative" src="{{@site.icon}}" alt="{{@site.title}}">
{{else}}
<div class="w-12 min-h-12 rounded-md h-full relative site-icon--fallback">T</div>
{{/if}}
<div class="flex flex-col gap-0.5">
<h2 class="text-sm md:text-base font-medium leading-tight">{{@site.title}}</h2>
{{#if @site.description}}
<p class="text-sm text-typ-tone leading-tight">{{@site.description}}</p>
{{/if}}
</div>
</div>
</section>
{{subscribe_form
placeholder="Your email"
button_class="button button--subscribe"
form_class="subscribe-form"
}}
<section class="px-4 sm:px-5 py-4 sm:py-5 xl:pr-1 flex flex-wrap items-center justify-between gap-1.5 border-b border-brd">
<h2 class="uppercase font-medium text-xs text-typ-tone">Follow</h2>
@@ -57,7 +55,7 @@
</svg>
</i><span class="hidden">Twitter</span></a>
{{/if}}
<a href="{{@site.url}}/rss/" class="hover:w-5 h-5 opacity-75 p-0.5" aria-label="RSS">
<i class="icon icon-rss size-4 stroke-2" role="presentation">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-rss" width="16" height="16" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">