Browse Source

Merge pull request #5 from evdenis/upgrade_to_ghost_v2

Upgrade to ghost v2
master
Julian Ćwirko 6 years ago committed by GitHub
parent
commit
79f6f2d5f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      assets/css/style.css
  2. 56
      assets/scss/style.scss
  3. 3
      package.json
  4. 6
      partials/loop.hbs
  5. 4
      post.hbs

2
assets/css/style.css

File diff suppressed because one or more lines are too long

56
assets/scss/style.scss

@ -257,6 +257,27 @@ body {
.post-view-content { .post-view-content {
margin-top: rem-calc(60); margin-top: rem-calc(60);
overflow-x: hidden; overflow-x: hidden;
.kg-image {
max-width: 100%;
}
.kg-width-wide .kg-image {
max-width: 1040px;
}
.kg-width-full .kg-image {
max-width: 100vw;
}
figure {
margin: 1.5em 0 3em;
}
figure img {
margin: 0;
}
figcaption {
margin: 1.0em 0 0;
font-size: 80%;
line-height: 1.6em;
text-align: center;
}
} }
.post-meta { .post-meta {
font-family: $headers-font; font-family: $headers-font;
@ -677,3 +698,38 @@ body {
min-height: rem-calc(34); min-height: rem-calc(34);
} }
} }
.kg-width-full figcaption {
padding: 0 1.5em;
}
.kg-embed-card {
display: flex;
flex-direction: column;
align-items: center;
min-width: 100%;
}
.kg-embed-card .fluid-width-video-wrapper {
margin: 0;
}
.kg-gallery-container {
display: flex;
flex-direction: column;
max-width: 1040px;
width: 100vw;
}
.kg-gallery-row {
display: flex;
flex-direction: row;
justify-content: center;
}
.kg-gallery-image img {
display: block;
margin: 0;
width: 100%;
height: 100%;
}

3
package.json

@ -8,6 +8,9 @@
"config": { "config": {
"posts_per_page": 6 "posts_per_page": 6
}, },
"keywords": [
"ghost-theme"
],
"devDependencies": { "devDependencies": {
"load-grunt-tasks": "~3.3.0", "load-grunt-tasks": "~3.3.0",
"node-sass": "~3.3.3", "node-sass": "~3.3.3",

6
partials/loop.hbs

@ -6,8 +6,10 @@
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2> <h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
</header> </header>
<footer class="post-meta"> <footer class="post-meta">
{{#if author.profile_image}}<img class="author-thumb" src="{{author.profile_image}}" alt="Author image" nopin="nopin" />{{/if}} {{#primary_author}}
{{author}} {{#if profile_image}}<img class="author-thumb" src="{{profile_image}}" alt="Author image" nopin="nopin" />{{/if}}
<a href="{{url}}" class="author-link-name">{{name}}</a>
{{/primary_author}}
{{tags prefix=" on "}} {{tags prefix=" on "}}
</footer> </footer>
</article> </article>

4
post.hbs

@ -83,7 +83,7 @@
</div> </div>
{{! Everything inside the #author tags pulls data from the author }} {{! Everything inside the #author tags pulls data from the author }}
{{#author}} {{#primary_author}}
<section class="author-info"> <section class="author-info">
<div class="row"> <div class="row">
<section class="post-author small-12 columns"> <section class="post-author small-12 columns">
@ -103,7 +103,7 @@
</section> </section>
</div> </div>
</section> </section>
{{/author}} {{/primary_author}}
<section class="disqus"> <section class="disqus">
{{> disqus}} {{> disqus}}

Loading…
Cancel
Save