Skip to content

Commit f944d00

Browse files
committed
Fixes for v3
1 parent 59c749b commit f944d00

File tree

7 files changed

+104
-157
lines changed

7 files changed

+104
-157
lines changed

assets/css/screen.css

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/scss/theme/koenig.scss

+83
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,86 @@
101101
.kg-image-card.kg-width-wide + .kg-image-card.kg-width-wide {
102102
margin: -2.25em 0 3em;
103103
}
104+
105+
106+
.kg-bookmark-card {
107+
width: 100%;
108+
position: relative;
109+
}
110+
111+
.kg-bookmark-container {
112+
display: flex;
113+
flex-wrap: wrap;
114+
flex-direction: row-reverse;
115+
color: currentColor;
116+
font-family: inherit;
117+
text-decoration: none;
118+
border: 1px solid rgba(0, 0, 0, 0.1);
119+
}
120+
121+
.kg-bookmark-container:hover {
122+
text-decoration: none;
123+
}
124+
125+
.kg-bookmark-content {
126+
flex-basis: 0;
127+
flex-grow: 999;
128+
padding: 20px;
129+
order: 1;
130+
}
131+
132+
.kg-bookmark-title {
133+
font-weight: 600;
134+
}
135+
136+
.kg-bookmark-metadata,
137+
.kg-bookmark-description {
138+
margin-top: .5em;
139+
}
140+
141+
.kg-bookmark-metadata {
142+
align-items: center;
143+
white-space: nowrap;
144+
overflow: hidden;
145+
text-overflow: ellipsis;
146+
}
147+
148+
.kg-bookmark-description {
149+
display: -webkit-box;
150+
-webkit-box-orient: vertical;
151+
-webkit-line-clamp: 2;
152+
overflow: hidden;
153+
}
154+
155+
.kg-bookmark-icon {
156+
display: inline-block;
157+
width: 1em;
158+
height: 1em;
159+
vertical-align: text-bottom;
160+
margin-right: .5em;
161+
margin-bottom: .05em;
162+
}
163+
164+
.kg-bookmark-thumbnail {
165+
display: flex;
166+
flex-basis: 24rem;
167+
flex-grow: 1;
168+
}
169+
170+
.kg-bookmark-thumbnail img {
171+
max-width: 100%;
172+
height: auto;
173+
vertical-align: bottom;
174+
object-fit: cover;
175+
}
176+
177+
.kg-bookmark-author {
178+
white-space: nowrap;
179+
text-overflow: ellipsis;
180+
overflow: hidden;
181+
}
182+
183+
.kg-bookmark-publisher::before {
184+
content: "";
185+
margin: 0 .5em;
186+
}

default.hbs

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
{{{body}}}
2626

2727
<footer class="site-footer">
28-
<!-- <a class="subscribe icon-feed" href="{{@blog.url}}/rss/"><span class="tooltip">Subscribe!</span></a> -->
28+
<!-- <a class="subscribe icon-feed" href="{{@site.url}}/rss/"><span class="tooltip">Subscribe!</span></a> -->
2929
<div class="inner">
30-
<section class="copyright">All content copyright <a href="/">{{@blog.title}}</a> &copy; {{date format="YYYY"}} &bull; All rights reserved.</section>
30+
<section class="copyright">All content copyright <a href="/">{{@site.title}}</a> &copy; {{date format="YYYY"}} &bull; All rights reserved.</section>
3131
<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>
3232
</div>
3333
</footer>

index.hbs

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
the {body} of the default.hbs template, which contains our header/footer. }}
55

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

11-
{{#if @blog.logo}}<a id="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
12-
<h1 class="blog-title">{{@blog.title}}</h1>
13-
<h2 class="blog-description">{{@blog.description}}</h2>
11+
{{#if @site.logo}}<a id="blog-logo" href="{{@site.url}}"><img src="{{@site.logo}}" alt="Blog Logo" /></a>{{/if}}
12+
<h1 class="blog-title">{{@site.title}}</h1>
13+
<h2 class="blog-description">{{@site.description}}</h2>
1414
{{> "site-nav"}}
1515
</div>
1616
</div>

partials/site-nav.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<nav class="site-nav">
22
<div class="site-nav-left">
3-
{{#if @blog.navigation}}
3+
{{#if @site.navigation}}
44
{{navigation}}
55
{{/if}}
66
</div>

post.hbs

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
{{! Each post has the blog logo at the top, with a link back to the home page }}
1111
<header class="post-header">
12-
<a id="blog-logo" href="{{@blog.url}}">
13-
{{#if @blog.logo}}
14-
<img src="{{@blog.logo}}" alt="Blog Logo" />
12+
<a id="blog-logo" href="{{@site.url}}">
13+
{{#if @site.logo}}
14+
<img src="{{@site.logo}}" alt="Blog Logo" />
1515
{{else}}
16-
{{@blog.title}}
16+
{{@site.title}}
1717
{{/if}}
1818
</a>
1919
<div class="inner">

0 commit comments

Comments
 (0)