mnts.dev/index.hbs

59 lines
2.2 KiB
Handlebars
Raw Normal View History

{{!< default}}
2017-05-15 20:03:47 +00:00
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
2013-08-20 16:53:02 +00:00
2017-05-15 20:03:47 +00:00
{{!-- The big featured header, it uses blog cover image as a BG if available --}}
<header class="site-header outer {{#if @blog.cover_image}}" style="background-image: url({{@blog.cover_image}}){{else}}no-cover{{/if}}">
<div class="inner">
<div class="site-header-content">
<h1 class="site-title">
{{#if @blog.logo}}
<img class="site-logo" src="{{@blog.logo}}" alt="{{@blog.title}}" />
{{else}}
{{@blog.title}}
{{/if}}
</h1>
<h2 class="site-description">{{@blog.description}}</h2>
2013-08-28 12:01:39 +00:00
</div>
2017-05-15 20:03:47 +00:00
<nav class="site-nav">
<div class="site-nav-left">
{{#if @blog.navigation}}
{{!-- The blog navigation links from /ghost/settings/design --}}
{{navigation}}
{{/if}}
</div>
<div class="site-nav-right">
<div class="social-links">
{{#if @blog.facebook}}
2017-05-31 18:09:50 +00:00
<a class="social-link social-link-fb" href="{{facebook_url}}" target="_blank">{{> "icons/facebook"}}</a>
2017-05-15 20:03:47 +00:00
{{/if}}
{{#if @blog.twitter}}
2017-05-31 18:09:50 +00:00
<a class="social-link social-link-tw" href="{{twitter_url}}" target="_blank">{{> "icons/twitter"}}</a>
2017-05-15 20:03:47 +00:00
{{/if}}
</div>
{{#if @labs.subscribers}}
<a class="subscribe-button" href="{{@blog.url}}/subscribe/">Subscribe</a>
{{else}}
<a class="rss-button" href="http://cloud.feedly.com/#subscription/feed/{{@blog.url}}/rss/" target="_blank">{{> "icons/rss"}}</a>
{{/if}}
</div>
</nav>
2013-08-20 16:53:02 +00:00
</div>
</header>
2017-05-15 20:03:47 +00:00
{{!-- The main content area --}}
<main id="site-main" class="site-main outer" role="main">
<div class="inner">
2013-08-10 13:06:01 +00:00
2017-06-12 09:01:00 +00:00
<div class="post-feed">
{{#foreach posts}}
{{!-- The tag below includes the markup for each post - partials/post-card.hbs --}}
{{> "post-card"}}
{{/foreach}}
</div>
2017-05-15 20:03:47 +00:00
</div>
2015-02-28 12:34:58 +00:00
</main>