Skip to content

Commit 71c73e6

Browse files
authored
Merge pull request #52 from sredevopsorg/upstream
2 parents 7d5eeba + 41c24d0 commit 71c73e6

File tree

16 files changed

+131
-90
lines changed

16 files changed

+131
-90
lines changed

assets/built/screen.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/screen.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/source.js

100644100755
File mode changed.

assets/css/screen.css

Lines changed: 16 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -88,50 +88,7 @@ production stylesheet in assets/built/screen.css
8888
/* 2. Fonts
8989
/* ---------------------------------------------------------- */
9090

91-
@font-face {
92-
font-family: "Inter";
93-
font-style: normal;
94-
font-weight: 100 900;
95-
font-display: swap;
96-
src: url(../fonts/inter-roman.woff2) format("woff2");
97-
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
98-
}
99-
100-
@font-face {
101-
font-family: "EB Garamond";
102-
font-style: normal;
103-
font-weight: 400 800;
104-
font-display: swap;
105-
src: url(../fonts/eb-garamond-roman.woff2) format("woff2");
106-
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
107-
}
108-
109-
@font-face {
110-
font-family: "EB Garamond";
111-
font-style: italic;
112-
font-weight: 400 800;
113-
font-display: swap;
114-
src: url(../fonts/eb-garamond-italic.woff2) format("woff2");
115-
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
116-
}
117-
118-
@font-face {
119-
font-family: "JetBrains Mono";
120-
font-style: normal;
121-
font-weight: 100 800;
122-
font-display: swap;
123-
src: url(../fonts/jetbrains-mono-roman.woff2) format("woff2");
124-
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
125-
}
126-
127-
@font-face {
128-
font-family: "JetBrains Mono";
129-
font-style: italic;
130-
font-weight: 100 800;
131-
font-display: swap;
132-
src: url(../fonts/jetbrains-mono-italic.woff2) format("woff2");
133-
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
134-
}
91+
/* Fonts are preloaded and defined in default.hbs to avoid layout shift */
13592

13693
/* 3. Resets
13794
/* ---------------------------------------------------------- */
@@ -301,6 +258,7 @@ a:hover {
301258
letter-spacing: inherit;
302259
line-height: 1.1;
303260
border: 0;
261+
border-radius: 40px;
304262
background-color: transparent;
305263
outline: none;
306264
transition: 0.3s ease-in-out;
@@ -2090,6 +2048,8 @@ Search LOGO Login Subscribe
20902048
.gh-article-author-image :is(img, svg) {
20912049
position: absolute;
20922050
inset: 0;
2051+
width: 100%;
2052+
height: 100%;
20932053
object-fit: cover;
20942054
}
20952055

@@ -2442,6 +2402,12 @@ blockquote.kg-blockquote-alt {
24422402
opacity: 1;
24432403
}
24442404

2405+
.kg-bookmark-card a.kg-bookmark-container,
2406+
.kg-bookmark-card a.kg-bookmark-container:hover {
2407+
background: var(--background-color) !important;
2408+
color: var(--color-darker-gray) !important;
2409+
}
2410+
24452411
.kg-bookmark-card .kg-bookmark-content {
24462412
padding: 1.15em;
24472413
}
@@ -2602,6 +2568,7 @@ figcaption a {
26022568
width: 120px;
26032569
height: 120px;
26042570
border-radius: 50%;
2571+
object-fit: cover;
26052572
}
26062573

26072574
.author-template .gh-article-title {
@@ -2766,7 +2733,7 @@ figcaption a {
27662733
letter-spacing: 0;
27672734
}
27682735

2769-
.has-serif-title :is(.gh-button, .gh-form) {
2736+
.has-serif-title :is(.gh-button, .gh-form, .gh-form-input) {
27702737
border-radius: 0;
27712738
}
27722739

@@ -3469,3 +3436,7 @@ figcaption a {
34693436

34703437

34713438
}
3439+
3440+
.small {
3441+
font-size: 1.2rem;
3442+
}

default.hbs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010

1111
{{!-- Preload main styles and scripts for better performance --}}
1212
<link rel="preload" as="style" href="{{asset "built/screen.css"}}">
13-
{{!-- <link rel="preload" as="script" href="{{asset "built/source.js"}}"> --}}
13+
<link rel="preload" as="script" href="{{asset "built/source.js"}}">
14+
15+
{{!-- Fonts are preloaded and defined in the default template to avoid layout shift --}}
16+
{{> "typography/fonts"}}
1417

1518
{{!-- Theme assets - use the {{asset}} helper to reference styles & scripts, this will take care of caching and cache-busting automatically --}}
1619
<link rel="stylesheet" type="text/css" href="{{asset "built/screen.css"}}">

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ghost-source-theme",
33
"description": "Fork of the default theme of Ghost publishing platform, customized for sredevops.org",
44
"demo": "https://sredevops.org",
5-
"version": "1.5.6",
5+
"version": "1.5.9",
66
"engines": {
77
"ghost": ">=5.0.0"
88
},

partials/components/header-content.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{{/foreach}}
2222
</div>
2323
<div class="gh-header-middle">
24-
{{#foreach posts from="2" limit="3"}}
24+
{{#foreach posts from="2" limit="2"}}
2525
{{> "post-card" imageSizes="s"}}
2626
{{/foreach}}
2727
</div>

partials/email-subscription.hbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<form class="gh-form" data-members-form>
2-
<input class="gh-form-input" id="{{email_field_id}}" type="email" placeholder="jamie@example.com" required data-members-email>
2+
<input class="gh-form-input" id="{{email_field_id}}" name="email" type="email" placeholder="jamie@example.com" required data-members-email>
33
<button class="gh-button" type="submit" aria-label="Subscribe">
44
<span><span>Subscribe</span> {{> "icons/arrow"}}</span>
55
{{> "icons/loader"}}
66
{{> "icons/checkmark"}}
77
</button>
8+
<p data-members-error></p>
89
</form>

partials/feature-image.hbs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
{{#if feature_image}}
22
<figure class="gh-article-image">
3-
<img
4-
srcset="{{img_url feature_image size="xs" format="webp"}} 120w,
5-
{{img_url feature_image size="s" format="webp"}} 320w,
6-
{{img_url feature_image size="m" format="webp"}} 600w,
7-
{{img_url feature_image size="l" format="webp"}} 960w,
8-
{{img_url feature_image size="xl" format="webp"}} 1200w,
9-
{{img_url feature_image size="xxl" format="webp"}} 2000w"
10-
src="{{img_url feature_image size="s" format="webp"}}"
11-
alt="{{title}}"
12-
>
3+
<picture>
4+
<source srcset="{{img_url feature_image size="xxl"}}" media="(min-width: 2000px)">
5+
<source srcset="{{img_url feature_image size="xl"}}" media="(min-width: 1200px)">
6+
<source srcset="{{img_url feature_image size="l"}}" media="(min-width: 960px)">
7+
<source srcset="{{img_url feature_image size="m"}}" media="(min-width: 600px)">
8+
<source srcset="{{img_url feature_image size="s"}}" media="(min-width: 320px)">
9+
<img src="{{img_url feature_image size="m"}}" alt="{{title}}">
10+
</picture>
1311
{{#if feature_image_caption}}
1412
<figcaption>{{feature_image_caption}}</figcaption>
1513
{{/if}}

partials/post-card.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
{{/if}}
3131
{{/unless}}
3232
<footer class="gh-card-meta">
33-
{{tags separator=" | " prefix="Tags:" autolink="true" visibility="public" limit="7" from="2" to="7"}}
33+
{{tags separator=" | " prefix="Tags:" autolink="true" limit="5" from="2" to="6"}}
3434
{{#unless access}}
3535
{{^has visibility="public"}}
3636
{{> "icons/lock"}}

0 commit comments

Comments
 (0)