1
0
mirror of https://github.com/Damillora/Yuika synced 2024-11-22 09:17:33 +00:00

Finalize v2 iteration of Yuika with 2.3

This commit is contained in:
Damillora 2020-11-12 22:42:39 +07:00
parent b8e02c571e
commit 3578ba80be
5 changed files with 34 additions and 32 deletions

View File

@ -331,15 +331,15 @@ footer {
.primary-tag-header:hover {
@apply transition-all duration-300 ease-in-out underline;
}
.tag-header {
@apply bg-blue-700 w-auto inline-block px-2 py-1 text-white text-sm;
}
.tag-accent-color {
@apply inline-block rounded-full align-text-bottom h-12 w-12;
}
.author-header {
@apply bg-red-700 w-auto inline-block px-2 py-1 text-white text-sm;
.tag-accent-color.small {
@apply h-4 w-4;
}
.tag-accent-color.medium {
@apply h-6 w-6;
}
.author-image {
@apply inline-block rounded-full align-text-bottom h-12 w-12;

View File

@ -1,7 +1,7 @@
{
"name": "yuika",
"description": "nanao.moe's blog theme",
"version": "2.2.4",
"version": "2.3.0",
"engines": {
"ghost-api": "v3"
},

View File

@ -4,18 +4,19 @@
{{> post-background}} {{!--Special header-image.hbs partial to generate the background image--}}
</a>
<div class="md:pl-4">
<div class="pt-4 md:pt-0 py-1">
<div class="pt-4 md:pt-0">
{{#if primary_tag}}
{{#primary_tag}}
<p>
<a href="{{url}}">
{{#if accent_color}}
<a href="{{url}}">
<span class="primary-tag-header" style="background-color: {{accent_color}};">{{name}}</span>
</a>
<span class="tag-accent-color small" style="background-color: {{accent_color}};"></span>
{{else}}
<a href="{{url}}">
<span class="primary-tag-header">{{name}}</span>
</a>
<span class="tag-accent-color small"></span>{{name}}
{{/if}}
<span class="text-sm hover:underline">{{name}}</span>
</a>
</p>
{{/primary_tag}}
{{/if}}
</div>

View File

@ -1,14 +1,15 @@
{{#if primary_tag}}
{{#primary_tag}}
{{#if accent_color}}
<a href="{{url}}">
<span class="primary-tag-header" style="background-color: {{accent_color}};">{{name}}</span>
</a>
{{else}}
<a href="{{url}}">
<span class="primary-tag-header">{{name}}</span>
</a>
{{/if}}
<p>
<a href="{{url}}">
{{#if accent_color}}
<span class="tag-accent-color small" style="background-color: {{accent_color}};"></span>
{{else}}
<span class="tag-accent-color small"></span>{{name}}
{{/if}}
<span class="text-base text-white hover:underline">{{name}}</span>
</a>
</p>
{{/primary_tag}}
{{/if}}

View File

@ -78,16 +78,16 @@
{{#if related_posts}}
{{#../primary_tag}}
<div class="px-3 w-full">
<p class="text-2xl">More in
{{#if accent_color}}
<p class="text-2xl">
More in
<a href="{{url}}">
<span class="primary-tag-header text-2xl" style="background-color: {{accent_color}};">{{name}}</span>
{{#if accent_color}}
<span class="tag-accent-color medium" style="background-color: {{accent_color}};"></span>
{{else}}
<span class="tag-accent-color medium"></span>{{name}}
{{/if}}
<span class="hover:underline">{{name}}</span>
</a>
{{else}}
<a href="{{url}}">
<span class="primary-tag-header text-2xl">{{name}}</span>
</a>
{{/if}}
</p>
</div>
{{/../primary_tag}}