mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2025-01-19 02:53:43 +00:00
688e708cb8
- Basic MU support
39 lines
1.3 KiB
Handlebars
39 lines
1.3 KiB
Handlebars
{{!< default}}
|
|
|
|
{{! The comment above "< default" means - insert everything in this file into
|
|
the {body} of the default.hbs template, which contains our header/footer. }}
|
|
|
|
{{! Everything inside the #author tags pulls data from the author }}
|
|
{{#author}}
|
|
<header class="site-head" {{#if cover}}style="background-image: url({{cover}})"{{/if}}>
|
|
<div class="vertical">
|
|
<div class="site-head-content inner">
|
|
<h1 class="blog-title">{{name}}</h1>
|
|
<h2 class="blog-description">{{bio}}</h2>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
{{/author}}
|
|
|
|
{{! The main content area on the homepage }}
|
|
<main class="content" role="main">
|
|
|
|
{{! Each post will be output using this markup }}
|
|
{{#foreach posts}}
|
|
|
|
<article class="{{post_class}}">
|
|
<header class="post-header">
|
|
<span class="post-meta"><time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time> {{tags prefix="on "}}</span>
|
|
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
|
|
</header>
|
|
<section class="post-excerpt">
|
|
<p>{{excerpt}}… <a class="read-more" href="{{url}}">»</a></p>
|
|
</section>
|
|
</article>
|
|
|
|
{{/foreach}}
|
|
|
|
{{!! After all the posts, we have the previous/next pagination links }}
|
|
{{pagination}}
|
|
|
|
</main> |