From d15da305d3447c95ef8c6a4f8abbfa0766d60b4e Mon Sep 17 00:00:00 2001 From: Damillora Date: Sun, 11 Jul 2021 03:19:43 +0700 Subject: [PATCH] feat: add feature image captions support --- default.hbs | 2 +- package.json | 2 +- post.hbs | 11 +++++++++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/default.hbs b/default.hbs index 7a50ce0..1bfd0a8 100644 --- a/default.hbs +++ b/default.hbs @@ -1,5 +1,5 @@ - + diff --git a/package.json b/package.json index 7cf2c73..77c20cc 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/post.hbs b/post.hbs index b029799..2bf01e8 100644 --- a/post.hbs +++ b/post.hbs @@ -24,7 +24,7 @@ {{#foreach authors}} {{#if profile_image}} - {{name}} + {{name}} {{/if}} {{/foreach}} @@ -34,12 +34,19 @@ Multiple authors {{else}} {{#foreach authors}} - {{name}} + {{name}} {{/foreach}} {{/has}} {{/if}} + {{#if feature_image_caption}} +

+ + {{feature_image_caption}} + +

+ {{/if}}