mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
1c5e9d9ed3
no issue - use latest casper in test fixtures - never ever use the root content folder for tests - if we start/fork Ghost for the tests, we use a tmp folder - this change is required to for an upcoming PR (#9029) - i've added a TODO to create a helper fn for stopping the ghost server, so we can cleanup the tmp folder * Care about TODO's in our channels spec - add the 1.4 compatible casper theme to fixtures - so as soon as you start Ghost, the test env will provide the content folder in /tmp something with the activated latest default casper and the 1.4 compatible old casper - there are tests which tests different logici e.g. pagination - therefor we need a different theme, we are simply using our 1.4 casper
55 lines
2.2 KiB
Handlebars
55 lines
2.2 KiB
Handlebars
{{!< default}}
|
|
{{!-- The tag above means - insert everything in this file into the {body} of the default.hbs template --}}
|
|
|
|
{{#author}}
|
|
{{!-- Everything inside the #author tags pulls data from the author --}}
|
|
<header class="site-header outer {{#if cover_image}}" style="background-image: url({{cover_image}}){{else}}no-cover{{/if}}">
|
|
<div class="inner">
|
|
{{> "site-nav"}}
|
|
<div class="site-header-content">
|
|
{{#if profile_image}}
|
|
<img class="author-profile-image" src="{{profile_image}}" alt="{{name}}" />
|
|
{{/if}}
|
|
<h1 class="site-title">{{name}}</h1>
|
|
{{#if bio}}
|
|
<h2 class="author-bio">{{bio}}</h2>
|
|
{{/if}}
|
|
<div class="author-meta">
|
|
{{#if location}}
|
|
<div class="author-location">{{location}} <span class="bull">•</span></div>
|
|
{{/if}}
|
|
<div class="author-stats">
|
|
{{plural ../pagination.total empty='No posts' singular='% post' plural='% posts'}} <span class="bull">•</span>
|
|
</div>
|
|
{{#if website}}
|
|
<a class="social-link social-link-wb" href="{{website}}" target="_blank">{{> "icons/website"}}</a>
|
|
{{/if}}
|
|
{{#if twitter}}
|
|
<a class="social-link social-link-tw" href="{{twitter_url}}" target="_blank">{{> "icons/twitter"}}</a>
|
|
{{/if}}
|
|
{{#if facebook}}
|
|
<a class="social-link social-link-fb" href="{{facebook_url}}" target="_blank">{{> "icons/facebook"}}</a>
|
|
{{/if}}
|
|
<a class="social-link social-link-rss" href="http://cloud.feedly.com/#subscription/feed/{{url absolute="true"}}/rss/" target="_blank">{{> "icons/rss"}}</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
{{/author}}
|
|
|
|
{{!-- The main content area --}}
|
|
<main id="site-main" class="site-main outer" role="main">
|
|
<div class="inner">
|
|
|
|
<div class="post-feed">
|
|
{{#foreach posts}}
|
|
|
|
{{!-- The tag below includes the markup for each post - partials/post-card.hbs --}}
|
|
{{> "post-card"}}
|
|
|
|
{{/foreach}}
|
|
</div>
|
|
|
|
</div>
|
|
</main>
|