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. 58
      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

58
assets/scss/style.scss

@ -257,6 +257,27 @@ body {
.post-view-content {
margin-top: rem-calc(60);
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 {
font-family: $headers-font;
@ -676,4 +697,39 @@ body {
.main-menu-ovrl ul li {
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": {
"posts_per_page": 6
},
"keywords": [
"ghost-theme"
],
"devDependencies": {
"load-grunt-tasks": "~3.3.0",
"node-sass": "~3.3.3",

6
partials/loop.hbs

@ -6,8 +6,10 @@
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
</header>
<footer class="post-meta">
{{#if author.profile_image}}<img class="author-thumb" src="{{author.profile_image}}" alt="Author image" nopin="nopin" />{{/if}}
{{author}}
{{#primary_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 "}}
</footer>
</article>

4
post.hbs

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

Loading…
Cancel
Save