Skip to content

Commit

Permalink
fix some display bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
abowloflrf committed Apr 7, 2018
1 parent 7ab8559 commit 6d74b8c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 10 deletions.
1 change: 1 addition & 0 deletions assets/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ article.post {
.post-meta time {
font-size: 14px;
font-weight: 200;
line-height: 30px;
color: #9eabb3;
}

Expand Down
2 changes: 1 addition & 1 deletion assets/css/post.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ article {
border-radius: 0px 0px 4px 4px;
}
h1 {
font-size: 2em;
font-size: 1.75em;
}
h2 {
font-size: 1.5em;
Expand Down
37 changes: 28 additions & 9 deletions page.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,34 @@
<link rel="stylesheet" href="{{asset "css/post.css"}}">
{{#post}}
<article class="{{post_class}}">
<header class="post-header">
<h1 class="post-title">{{title}}</h1>
</header>

<hr class="post-hr">

<section class="post-content">
{{content}}
</section>

{{#if feature_image}}
<div class="post-image" style="background-image:url({{img_url feature_image}})">
<div class="post-image-header">
<div class="post-image-info">
<h1 class="post-image-title">{{title}}</h1>
</div>
</div>
</div>
{{else}}
<div class="post-container" style="padding-bottom:0">
<header class="post-header">
<h1 class="post-title">{{title}}</h1>
<section class="post-meta">
<time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">
{{date format="MMMM DD, YYYY"}}
</time>
{{tags separator=""}}
</section>
</header>
</div>
{{/if}}
<div class="post-container" style="padding-top:0">
<hr class="post-hr">
<section class="post-content">
{{content}}
</section>
</div>

</article>
{{/post}}

0 comments on commit 6d74b8c

Please sign in to comment.