1
0
mirror of https://github.com/Damillora/Yuika synced 2024-12-25 13:43:46 +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> <!DOCTYPE html>
<html lang="{{@site.lang}}"> <html lang="{{@site.locale}}">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />

View File

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

View File

@ -24,7 +24,7 @@
{{#foreach authors}} {{#foreach authors}}
{{#if profile_image}} {{#if profile_image}}
<a href="{{url}}"> <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> </a>
{{/if}} {{/if}}
{{/foreach}} {{/foreach}}
@ -34,12 +34,19 @@
Multiple authors Multiple authors
{{else}} {{else}}
{{#foreach authors}} {{#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}} {{/foreach}}
{{/has}} {{/has}}
</div> </div>
</div> </div>
{{/if}} {{/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> </div>
</div> </div>