Skip to content

Commit

Permalink
Fixes for v3
Browse files Browse the repository at this point in the history
  • Loading branch information
mityalebedev committed Feb 21, 2020
1 parent 59c749b commit f944d00
Show file tree
Hide file tree
Showing 7 changed files with 104 additions and 157 deletions.
4 changes: 2 additions & 2 deletions assets/css/screen.css

Large diffs are not rendered by default.

83 changes: 83 additions & 0 deletions assets/scss/theme/koenig.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,86 @@
.kg-image-card.kg-width-wide + .kg-image-card.kg-width-wide {
margin: -2.25em 0 3em;
}


.kg-bookmark-card {
width: 100%;
position: relative;
}

.kg-bookmark-container {
display: flex;
flex-wrap: wrap;
flex-direction: row-reverse;
color: currentColor;
font-family: inherit;
text-decoration: none;
border: 1px solid rgba(0, 0, 0, 0.1);
}

.kg-bookmark-container:hover {
text-decoration: none;
}

.kg-bookmark-content {
flex-basis: 0;
flex-grow: 999;
padding: 20px;
order: 1;
}

.kg-bookmark-title {
font-weight: 600;
}

.kg-bookmark-metadata,
.kg-bookmark-description {
margin-top: .5em;
}

.kg-bookmark-metadata {
align-items: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.kg-bookmark-description {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}

.kg-bookmark-icon {
display: inline-block;
width: 1em;
height: 1em;
vertical-align: text-bottom;
margin-right: .5em;
margin-bottom: .05em;
}

.kg-bookmark-thumbnail {
display: flex;
flex-basis: 24rem;
flex-grow: 1;
}

.kg-bookmark-thumbnail img {
max-width: 100%;
height: auto;
vertical-align: bottom;
object-fit: cover;
}

.kg-bookmark-author {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}

.kg-bookmark-publisher::before {
content: "";
margin: 0 .5em;
}
4 changes: 2 additions & 2 deletions default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
{{{body}}}

<footer class="site-footer">
<!-- <a class="subscribe icon-feed" href="{{@blog.url}}/rss/"><span class="tooltip">Subscribe!</span></a> -->
<!-- <a class="subscribe icon-feed" href="{{@site.url}}/rss/"><span class="tooltip">Subscribe!</span></a> -->
<div class="inner">
<section class="copyright">All content copyright <a href="/">{{@blog.title}}</a> &copy; {{date format="YYYY"}} &bull; All rights reserved.</section>
<section class="copyright">All content copyright <a href="/">{{@site.title}}</a> &copy; {{date format="YYYY"}} &bull; All rights reserved.</section>
<section class="poweredby">Proudly published with <a class="icon-ghost" href="http://ghost.org"><span class="icon-ghost-text">Ghost</span></a> in <a href="https://github.com/mityalebedev/The-Shell">The Shell</a> theme.</section>
</div>
</footer>
Expand Down
8 changes: 4 additions & 4 deletions index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
the {body} of the default.hbs template, which contains our header/footer. }}

{{! The big featured header on the homepage, with the site logo and description }}
<header id="site-head" {{#if @blog.cover_image}}style="background-image: url({{@blog.cover_image}})"{{/if}}>
<header id="site-head" {{#if @site.cover_image}}style="background-image: url({{@site.cover_image}})"{{/if}}>
<div class="vertical animated bounceInDown">
<div id="site-head-content" class="inner">

{{#if @blog.logo}}<a id="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
<h1 class="blog-title">{{@blog.title}}</h1>
<h2 class="blog-description">{{@blog.description}}</h2>
{{#if @site.logo}}<a id="blog-logo" href="{{@site.url}}"><img src="{{@site.logo}}" alt="Blog Logo" /></a>{{/if}}
<h1 class="blog-title">{{@site.title}}</h1>
<h2 class="blog-description">{{@site.description}}</h2>
{{> "site-nav"}}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion partials/site-nav.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<nav class="site-nav">
<div class="site-nav-left">
{{#if @blog.navigation}}
{{#if @site.navigation}}
{{navigation}}
{{/if}}
</div>
Expand Down
8 changes: 4 additions & 4 deletions post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

{{! Each post has the blog logo at the top, with a link back to the home page }}
<header class="post-header">
<a id="blog-logo" href="{{@blog.url}}">
{{#if @blog.logo}}
<img src="{{@blog.logo}}" alt="Blog Logo" />
<a id="blog-logo" href="{{@site.url}}">
{{#if @site.logo}}
<img src="{{@site.logo}}" alt="Blog Logo" />
{{else}}
{{@blog.title}}
{{@site.title}}
{{/if}}
</a>
<div class="inner">
Expand Down
Loading

0 comments on commit f944d00

Please sign in to comment.