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
49 lines
1.3 KiB
Handlebars
49 lines
1.3 KiB
Handlebars
{{!< default}}
|
|
{{!-- The tag above means: insert everything in this file
|
|
into the {body} of the default.hbs template --}}
|
|
|
|
{{!-- The big featured header, it uses blog cover image as a BG if available --}}
|
|
<header class="site-header outer">
|
|
<div class="inner">
|
|
{{> "site-nav"}}
|
|
</div>
|
|
</header>
|
|
|
|
{{!-- Everything inside the #post tags pulls data from the post --}}
|
|
{{#post}}
|
|
|
|
<main id="site-main" class="site-main outer" role="main">
|
|
<div class="inner">
|
|
|
|
<article class="post-full {{post_class}} {{#unless feature_image}}no-image{{/unless}}">
|
|
|
|
<header class="post-full-header">
|
|
<h1 class="post-full-title">{{title}}</h1>
|
|
</header>
|
|
|
|
{{#if feature_image}}
|
|
<figure class="post-full-image" style="background-image: url({{feature_image}})">
|
|
</figure>
|
|
{{/if}}
|
|
|
|
<section class="post-full-content">
|
|
{{content}}
|
|
</section>
|
|
|
|
</article>
|
|
|
|
</div>
|
|
</main>
|
|
|
|
{{/post}}
|
|
|
|
{{!-- The #contentFor helper here will send everything inside it up to the matching #block helper found in default.hbs --}}
|
|
{{#contentFor "scripts"}}
|
|
<script>
|
|
$(function() {
|
|
var $postContent = $(".post-full-content");
|
|
$postContent.fitVids();
|
|
});
|
|
</script>
|
|
{{/contentFor}}
|