xiaoluoboding / ghost-theme-kaldorei

🎨 A Simple And Elegant Ghost Theme Derive From Default Theme Casper
http://blog.xlbd.me
MIT License
293 stars 74 forks source link

Writer image not show after post. #24

Closed S8Cloud closed 7 years ago

S8Cloud commented 7 years ago

In previous version of the theme there will be a writer image after post content like this:

image

However in the 1.0 version,the writer image only exist in static page. It seems that the following code doesn't work.

{{#author}}
{{#if profile_image}}
<figure class="author-image">
    <a class="img" href="{{url}}" style="background-image: url({{img_url profile_image}})"><span class="hidden">{{name}}'s Picture</span></a>
</figure>
{{/if}}
{{/author}}

Ghost version 1.8, theme version 1.0

IN normal page: image

IN static page: image

S8Cloud commented 7 years ago

Sorry it was my problem, I used a different user without user image.