v0.1.6 헤더 및 포스트 레이아웃 수정
This commit is contained in:
72
post.hbs
72
post.hbs
@@ -4,16 +4,18 @@
|
||||
<main class="content-area content-area--post">
|
||||
<article class="post-template {{post_class}}">
|
||||
<header class="post-header">
|
||||
{{#if primary_tag}}
|
||||
<a class="post-tag" href="{{primary_tag.url}}">{{primary_tag.name}}</a>
|
||||
{{/if}}
|
||||
<h1 class="post-title">{{title}}</h1>
|
||||
<div class="post-meta">
|
||||
<time datetime="{{date format="YYYY-MM-DD"}}">{{date format="MMM D, YYYY"}}</time>
|
||||
{{#primary_author}}
|
||||
<span>{{name}}</span>
|
||||
{{/primary_author}}
|
||||
<span>{{reading_time}}</span>
|
||||
<div class="post-header__inner">
|
||||
{{#if primary_tag}}
|
||||
<a class="post-tag" href="{{primary_tag.url}}">{{primary_tag.name}}</a>
|
||||
{{/if}}
|
||||
<h1 class="post-title">{{title}}</h1>
|
||||
<div class="post-meta">
|
||||
<time datetime="{{date format="YYYY-MM-DD"}}">{{date format="MMM D, YYYY"}}</time>
|
||||
{{#primary_author}}
|
||||
<span>{{name}}</span>
|
||||
{{/primary_author}}
|
||||
<span>{{reading_time}}</span>
|
||||
</div>
|
||||
</div>
|
||||
{{#if feature_image}}
|
||||
<figure class="post-feature-image">
|
||||
@@ -27,33 +29,35 @@
|
||||
{{/if}}
|
||||
</header>
|
||||
|
||||
<section class="post-content kg-content">
|
||||
{{content}}
|
||||
</section>
|
||||
|
||||
{{#unless access}}
|
||||
<section class="membership-cta">
|
||||
<h2>This post is for paying subscribers only</h2>
|
||||
<a class="button button--light" href="#/portal/signup">Subscribe Now</a>
|
||||
<p>Already have an account? <a href="#/portal/signin">Sign in</a></p>
|
||||
<div class="post-body">
|
||||
<section class="post-content kg-content">
|
||||
{{content}}
|
||||
</section>
|
||||
{{/unless}}
|
||||
|
||||
<footer class="post-footer">
|
||||
{{#primary_author}}
|
||||
<div class="author-inline-card">
|
||||
{{#if profile_image}}
|
||||
<img class="avatar" src="{{img_url profile_image size="xs"}}" alt="{{name}}">
|
||||
{{else}}
|
||||
<div class="avatar avatar--fallback">A</div>
|
||||
{{/if}}
|
||||
<div>
|
||||
<h3>{{name}}</h3>
|
||||
{{#if bio}}<p>{{bio}}</p>{{/if}}
|
||||
{{#unless access}}
|
||||
<section class="membership-cta">
|
||||
<h2>This post is for paying subscribers only</h2>
|
||||
<a class="button button--light" href="#/portal/signup">Subscribe Now</a>
|
||||
<p>Already have an account? <a href="#/portal/signin">Sign in</a></p>
|
||||
</section>
|
||||
{{/unless}}
|
||||
|
||||
<footer class="post-footer">
|
||||
{{#primary_author}}
|
||||
<div class="author-inline-card">
|
||||
{{#if profile_image}}
|
||||
<img class="avatar" src="{{img_url profile_image size="xs"}}" alt="{{name}}">
|
||||
{{else}}
|
||||
<div class="avatar avatar--fallback">A</div>
|
||||
{{/if}}
|
||||
<div>
|
||||
<h3>{{name}}</h3>
|
||||
{{#if bio}}<p>{{bio}}</p>{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/primary_author}}
|
||||
</footer>
|
||||
{{/primary_author}}
|
||||
</footer>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
{{> "post/post-navigation"}}
|
||||
|
||||
Reference in New Issue
Block a user