Skip to content

Commit

Permalink
Add support for Ghost 2.0 theme
Browse files Browse the repository at this point in the history
  • Loading branch information
kelyvin committed Sep 3, 2018
1 parent e06921b commit 4657b3d
Show file tree
Hide file tree
Showing 9 changed files with 256 additions and 438 deletions.
4 changes: 2 additions & 2 deletions amp.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -805,9 +805,9 @@
<h1 class="post-title">{{title}}</h1>
<section class="post-meta">
<p class="author">
{{#author}}
{{#primary_author}}
by <a href="{{url}}">{{name}}</a> |
{{/author}}
{{/primary_author}}
<time class="post-date" datetime="{{date format="YYYY-MM-DD"}}">{{date format="YYYY-MM-DD"}}</time>
</p>
</section>
Expand Down
4 changes: 2 additions & 2 deletions assets/css/caffeine-theme.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions assets/js/caffeine-theme.js

Large diffs are not rendered by default.

14 changes: 11 additions & 3 deletions assets/scss/components/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,22 @@
}

.post-content {
p {
img {
.kg-image-card {
margin: 30px auto;

.kg-image {
max-width: 100%;
margin: 24px auto;
margin: 12px auto;
text-align: center;
border-radius: $border-radius;
display: block;
}

figcaption {
text-align: center;
font-size: 14px;
color: $gray-dark;
}
}

pre {
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/modules/_fonts.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Optimize css delivery
// @import url(https://fonts.googleapis.com/css?family=Raleway:400,700|Roboto+Slab:300,400);
@import '../../vendor/font-awesome/scss/font-awesome';
@import '../../vendor/font-awesome/scss/font-awesome';
8 changes: 4 additions & 4 deletions author.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
<article class="page-template page-author">
{{> material-cover}}
<div class="profile-container animated fade-in">
{{#author}}
{{#primary_author}}
<div class="profile-image">
{{#if profile_image}}
<img src="{{img_url profile_image}}" alt="{{name}}'s picture" class="avatar rounded" />
{{else}}
<img src="/ghost/img/user-image.png" class="avatar rounded" />
{{/if}}
</div>
{{/author}}
{{/primary_author}}
<div class="post-card animated">
<div class="post-container">
{{#author}}
{{#primary_author}}
<div class="author-header">
<h1>
{{name}}
Expand All @@ -25,7 +25,7 @@

<p>{{#if bio}}{{bio}}{{/if}}</p>
</div>
{{/author}}
{{/primary_author}}
<ol class="author-posts-list">
{{#foreach posts}}
<li>
Expand Down
Loading

0 comments on commit 4657b3d

Please sign in to comment.