mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
2ea7d5432b
closes: https://github.com/TryGhost/Toolbox/issues/193 - Our Casper fixture was several years out of date. - I'd already updated the ghost-api to point to the latest API version, which was the main difference - This makes sure the full fixture is up to date and correct, and therefore that we're truly testing if Ghost right now works - It also adds instructions for how to update it in future GOTCHA: the mock-express-style tests are failing if the API difference between test-theme and casper are different - I've tried to look into why this is - it's something to do with the overridden route settings not working properly if the API version changes - Given that we may not keep this style of testing AND we are definitely not keeping API versions, I'm ignoreing this for now - To get around it, I'm setting both themes to be v4 API, so that Casper is exactly as in main
57 lines
2.1 KiB
Handlebars
57 lines
2.1 KiB
Handlebars
{{!< default}}
|
|
{{!-- The tag above means - insert everything in this file into the {body} of the default.hbs template --}}
|
|
|
|
|
|
<section class="outer">
|
|
<div class="inner posts">
|
|
|
|
<header class="author-profile">
|
|
{{#author}}
|
|
{{!-- Everything inside the #author tags pulls data from the author --}}
|
|
|
|
<div class="author-profile-content">
|
|
|
|
{{#if profile_image}}
|
|
<img class="author-profile-pic" src="{{profile_image}}" alt="{{name}}" />
|
|
{{else}}
|
|
<span class="author-profile-pic">{{> "icons/avatar"}}</span>
|
|
{{/if}}
|
|
|
|
<h1>{{name}}</h1>
|
|
<p>
|
|
{{#if bio}}
|
|
{{bio}}
|
|
{{else}}
|
|
{{plural ../pagination.total empty='No posts' singular='% post' plural='% posts'}} published
|
|
{{/if}}
|
|
</p>
|
|
|
|
<div class="author-profile-meta">
|
|
{{#if location}}
|
|
<div class="author-profile-location">📍 {{location}}</div>
|
|
{{/if}}
|
|
{{#if website}}
|
|
<span><a class="author-profile-social-link" href="{{website}}" target="_blank" rel="noopener">{{website}}</a></span>
|
|
{{/if}}
|
|
{{#if twitter}}
|
|
<span><a class="author-profile-social-link" href="{{twitter_url}}" target="_blank" rel="noopener">{{twitter_url}}</a></span>
|
|
{{/if}}
|
|
{{#if facebook}}
|
|
<span><a class="author-profile-social-link" href="{{facebook_url}}" target="_blank" rel="noopener">{{facebook_url}}</a></span>
|
|
{{/if}}
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/author}}
|
|
</header>
|
|
|
|
<div class="post-feed">
|
|
{{#foreach posts}}
|
|
{{!-- The tag below includes the markup for each post - partials/post-card.hbs --}}
|
|
{{> "post-card"}}
|
|
{{/foreach}}
|
|
</div>
|
|
|
|
</div>
|
|
</section>
|