1
0
mirror of https://github.com/Damillora/Yuika synced 2024-11-16 23:07:33 +00:00

feat: add feature image captions support

This commit is contained in:
Damillora 2021-07-11 03:19:43 +07:00
parent 512b268762
commit d15da305d3
3 changed files with 11 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{@site.lang}}">
<html lang="{{@site.locale}}">
<head>
<meta charset="utf-8" />

View File

@ -3,7 +3,7 @@
"description": "nanao.moe's blog theme",
"version": "v3.99.0-nanaomoe",
"engines": {
"ghost-api": "v3"
"ghost-api": "v4"
},
"license": "MIT",
"author": {

View File

@ -24,7 +24,7 @@
{{#foreach authors}}
{{#if profile_image}}
<a href="{{url}}">
<img class="post-header__author-image" src="{{img_url profile_image size="xs"}}" alt="{{name}}" />
<img class="post-header__author-image" src="{{img_url profile_image size=" xs"}}" alt="{{name}}" />
</a>
{{/if}}
{{/foreach}}
@ -34,12 +34,19 @@
Multiple authors
{{else}}
{{#foreach authors}}
<a href="{{url}}" title="{{name}}" class="post-header__author-name">{{name}}</a>
<a href="{{url}}" title="{{name}}" class="post-header__author-name">{{name}}</a>
{{/foreach}}
{{/has}}
</div>
</div>
{{/if}}
{{#if feature_image_caption}}
<p class="post-header__caption">
<span class="post-header__caption-text">
{{feature_image_caption}}
</span>
</p>
{{/if}}
</div>
</div>
</div>