You've already forked Ghost-Theme-Source
Compare commits
12 Commits
v1.0.1
...
renovate/g
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d716a37a0 | ||
|
|
53d475fdfe | ||
|
|
12c5aa9a0b | ||
|
|
d22775c109 | ||
|
|
0798ee6e48 | ||
|
|
78ff9df4ea | ||
|
|
946e063117 | ||
|
|
379a7f9e2c | ||
|
|
569c4226a0 | ||
|
|
6cd3396ea0 | ||
|
|
ea08ce4e9d | ||
|
|
fa53f7e5fd |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -88,7 +88,7 @@ production stylesheet in assets/built/screen.css
|
||||
font-style: normal;
|
||||
font-weight: 100 900;
|
||||
font-display: swap;
|
||||
src: url(/assets/fonts/inter-roman.woff2) format("woff2");
|
||||
src: url(../fonts/inter-roman.woff2) format("woff2");
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ production stylesheet in assets/built/screen.css
|
||||
font-style: normal;
|
||||
font-weight: 400 800;
|
||||
font-display: swap;
|
||||
src: url(/assets/fonts/eb-garamond-roman.woff2) format("woff2");
|
||||
src: url(../fonts/eb-garamond-roman.woff2) format("woff2");
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ production stylesheet in assets/built/screen.css
|
||||
font-style: italic;
|
||||
font-weight: 400 800;
|
||||
font-display: swap;
|
||||
src: url(/assets/fonts/eb-garamond-italic.woff2) format("woff2");
|
||||
src: url(../fonts/eb-garamond-italic.woff2) format("woff2");
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ production stylesheet in assets/built/screen.css
|
||||
font-style: normal;
|
||||
font-weight: 100 800;
|
||||
font-display: swap;
|
||||
src: url(/assets/fonts/jetbrains-mono-roman.woff2) format("woff2");
|
||||
src: url(../fonts/jetbrains-mono-roman.woff2) format("woff2");
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ production stylesheet in assets/built/screen.css
|
||||
font-style: italic;
|
||||
font-weight: 100 800;
|
||||
font-display: swap;
|
||||
src: url(/assets/fonts/jetbrains-mono-italic.woff2) format("woff2");
|
||||
src: url(../fonts/jetbrains-mono-italic.woff2) format("woff2");
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -717,9 +717,9 @@ Search LOGO Login Subscribe
|
||||
transform: translate3d(0, 6px, 0);
|
||||
}
|
||||
|
||||
.is-middle-logo .gh-dropdown {
|
||||
.gh-dropdown.is-left {
|
||||
right: auto;
|
||||
left: -24px;
|
||||
left: -16px;
|
||||
}
|
||||
|
||||
.is-dropdown-mega .gh-dropdown {
|
||||
@@ -1830,15 +1830,29 @@ Search LOGO Login Subscribe
|
||||
/* 13. Sidebar
|
||||
/* ---------------------------------------------------------- */
|
||||
|
||||
.gh-about {
|
||||
.gh-sidebar-inner {
|
||||
position: sticky;
|
||||
top: calc(var(--grid-gap) / 2);
|
||||
}
|
||||
|
||||
.gh-sidebar-title {
|
||||
grid-column: 1 / -1;
|
||||
margin-bottom: calc(var(--grid-gap) / 2);
|
||||
padding-bottom: 12px;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 550;
|
||||
letter-spacing: 0.025em;
|
||||
text-transform: uppercase;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.gh-about {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 48px 24px;
|
||||
min-height: 400px;
|
||||
min-height: 380px;
|
||||
text-align: center;
|
||||
background-color: var(--color-lighter-gray);
|
||||
}
|
||||
@@ -1866,6 +1880,95 @@ Search LOGO Login Subscribe
|
||||
margin-top: 32px;
|
||||
}
|
||||
|
||||
.gh-recommendations {
|
||||
margin-top: 48px;
|
||||
}
|
||||
|
||||
.gh-recommendations .recommendations {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 26px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.gh-recommendations .recommendation:first-child {
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.gh-recommendations .recommendation a {
|
||||
display: grid;
|
||||
grid-template-columns: 24px auto;
|
||||
gap: 4px 12px;
|
||||
}
|
||||
|
||||
.gh-recommendations .recommendation a:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.gh-recommendations .recommendation-favicon {
|
||||
grid-row: span 2;
|
||||
width: 100%;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.gh-recommendations .recommendation-title {
|
||||
margin-top: -2px;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 650;
|
||||
letter-spacing: -0.009em;
|
||||
}
|
||||
|
||||
.gh-recommendations .recommendation a:hover .recommendation-title {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.gh-recommendations .recommendation-url {
|
||||
order: 1;
|
||||
overflow: hidden;
|
||||
font-size: 1.4rem;
|
||||
line-height: 1.25;
|
||||
color: var(--color-secondary-text);
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.gh-recommendations .recommendation-description {
|
||||
display: -webkit-box;
|
||||
display: none;
|
||||
overflow-y: hidden;
|
||||
grid-column: 2;
|
||||
font-size: 1.4rem;
|
||||
line-height: 1.4;
|
||||
color: var(--color-secondary-text);
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
|
||||
.gh-recommendations button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
margin-top: 24px;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 550;
|
||||
letter-spacing: 0.025em;
|
||||
text-transform: uppercase;
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.gh-recommendations button svg {
|
||||
margin-top: -1px;
|
||||
width: 12px;
|
||||
}
|
||||
|
||||
.gh-recommendations button:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
/* 14. Post/page
|
||||
/* ---------------------------------------------------------- */
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
/* Infinite scroll pagination */
|
||||
(function () {
|
||||
if (!document.body.classList.contains('post-template')) {
|
||||
if (!document.body.classList.contains('home-template') && !document.body.classList.contains('post-template')) {
|
||||
pagination();
|
||||
}
|
||||
})();
|
||||
@@ -56,6 +56,13 @@ function dropdown() {
|
||||
toggle.appendChild(wrapper);
|
||||
nav.appendChild(toggle);
|
||||
|
||||
const toggleRect = toggle.getBoundingClientRect();
|
||||
const documentCenter = window.innerWidth / 2;
|
||||
|
||||
if (toggleRect.left < documentCenter) {
|
||||
wrapper.classList.add('is-left');
|
||||
}
|
||||
|
||||
head.classList.add('is-dropdown-loaded');
|
||||
|
||||
window.addEventListener('click', function (e) {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "source",
|
||||
"description": "A default theme for the Ghost publishing platform",
|
||||
"demo": "https://source.ghost.io",
|
||||
"version": "1.0.1",
|
||||
"version": "1.1.2",
|
||||
"engines": {
|
||||
"ghost": ">=5.0.0"
|
||||
},
|
||||
@@ -45,7 +45,7 @@
|
||||
"autoprefixer": "10.4.7",
|
||||
"beeper": "2.1.0",
|
||||
"cssnano": "5.1.12",
|
||||
"gscan": "4.39.4",
|
||||
"gscan": "4.42.0",
|
||||
"gulp": "4.0.2",
|
||||
"gulp-concat": "2.6.1",
|
||||
"gulp-livereload": "4.0.2",
|
||||
|
||||
@@ -81,32 +81,41 @@
|
||||
|
||||
{{#if showSidebar}}
|
||||
<aside class="gh-sidebar">
|
||||
<section class="gh-about">
|
||||
{{#if @site.icon}}
|
||||
<img class="gh-about-icon" src="{{@site.icon}}" alt="{{@site.title}}" loading="lazy">
|
||||
<div class="gh-sidebar-inner">
|
||||
<section class="gh-about">
|
||||
{{#if @site.icon}}
|
||||
<img class="gh-about-icon" src="{{@site.icon}}" alt="{{@site.title}}" loading="lazy">
|
||||
{{/if}}
|
||||
<h3 class="gh-about-title is-title">{{@site.title}}</h3>
|
||||
{{#if @site.description}}
|
||||
<p class="gh-about-description is-body">{{@site.description}}</p>
|
||||
{{/if}}
|
||||
{{#if @site.members_enabled}}
|
||||
{{#unless @member}}
|
||||
<button class="gh-button" data-portal="signup">Subscribe</button>
|
||||
{{else}}
|
||||
{{#if @site.paid_members_enabled}}
|
||||
{{#unless @member.paid}}
|
||||
<button class="gh-button" data-portal="upgrade">Upgrade</button>
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
</section>
|
||||
{{#if @site.recommendations_enabled}}
|
||||
<section class="gh-recommendations">
|
||||
<h4 class="gh-sidebar-title">Recommendations</h4>
|
||||
{{recommendations}}
|
||||
<button data-portal="recommendations">See all {{> "icons/arrow"}}</button>
|
||||
</section>
|
||||
{{/if}}
|
||||
<h3 class="gh-about-title is-title">{{@site.title}}</h3>
|
||||
{{#if @site.description}}
|
||||
<p class="gh-about-description is-body">{{@site.description}}</p>
|
||||
{{/if}}
|
||||
{{#if @site.members_enabled}}
|
||||
{{#unless @member}}
|
||||
<button class="gh-button" data-portal="signup">Subscribe</button>
|
||||
{{else}}
|
||||
{{#if @site.paid_members_enabled}}
|
||||
{{#unless @member.paid}}
|
||||
<button class="gh-button" data-portal="upgrade">Upgrade</button>
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
</section>
|
||||
</div>
|
||||
</aside>
|
||||
{{/if}}
|
||||
|
||||
{{#match pagination.pages ">" 1}}
|
||||
<div class="gh-more is-title">
|
||||
<a href="/page/2">See all {{> "icons/arrow"}}</a>
|
||||
<a href="{{@site.url}}/page/2">See all {{> "icons/arrow"}}</a>
|
||||
</div>
|
||||
{{/match}}
|
||||
|
||||
|
||||
48
yarn.lock
48
yarn.lock
@@ -1075,36 +1075,36 @@
|
||||
json-stringify-safe "^5.0.1"
|
||||
lodash "^4.17.21"
|
||||
|
||||
"@tryghost/mongo-knex@^0.8.0":
|
||||
version "0.8.0"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/mongo-knex/-/mongo-knex-0.8.0.tgz#089a4948bf915a108baf62ead9f2d25d945a756c"
|
||||
integrity sha512-WTsLW7Q6L/mmX9jB7DDHDIR3k7SADjdXTP0dsJAiEwevMFByEQZmGba5bc1FhkTrbNWaVgk0wEnzE/r4SwhXvw==
|
||||
"@tryghost/mongo-knex@^0.9.0":
|
||||
version "0.9.0"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/mongo-knex/-/mongo-knex-0.9.0.tgz#34463ceaa23b8e5e4c7ff859d9d5cc8f300ceade"
|
||||
integrity sha512-1dksBf+nVyfVRssFC3/Tn1KqMhKfLhsjCnxnLv8vW5ZxSw39U6Kyp97u4BWithx31M/g3Q8nfCVg8hIgYVyt7w==
|
||||
dependencies:
|
||||
debug "^4.3.3"
|
||||
lodash "^4.17.21"
|
||||
|
||||
"@tryghost/mongo-utils@^0.5.0":
|
||||
version "0.5.0"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/mongo-utils/-/mongo-utils-0.5.0.tgz#4d697b3374ec8dd3ebe206a269907aff661fa3fb"
|
||||
integrity sha512-7eRb+pQdTe+NK+wQ44WUNQxC8DIPdCYg8jTp8Mk0G6BqlvaYdRtbrZU/uqeR7Z6efLiG4uPfLG7BNkNx5MjvMg==
|
||||
"@tryghost/mongo-utils@^0.6.0":
|
||||
version "0.6.0"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/mongo-utils/-/mongo-utils-0.6.0.tgz#d696c6ce07c3a85bb8b6645ef7d4fa94fdb2be55"
|
||||
integrity sha512-nQ74KTzCskHF0eDvDY6Husx9ZbIYZ2DlpzAQVKqM98/rUriBT8DV9MY7MOpqYTnrUGxr66i6GdZPIsX3YlPV1w==
|
||||
dependencies:
|
||||
lodash "^4.17.11"
|
||||
|
||||
"@tryghost/nql-lang@^0.5.0":
|
||||
version "0.5.0"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/nql-lang/-/nql-lang-0.5.0.tgz#e34082997eca361a71b9d2de6ea6f7dd5a0654b6"
|
||||
integrity sha512-Nxmz82Zm0uRXy0GL+Bd7G2mvjakoYbT6QDiyj6W1v90zXyzMedRfb9289lMzYX8tUG4VkoVOj9rWzFm5iSdpbw==
|
||||
"@tryghost/nql-lang@^0.6.0":
|
||||
version "0.6.0"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/nql-lang/-/nql-lang-0.6.0.tgz#ea9a0ba5e7a141fb7279e94442bf995bb70936da"
|
||||
integrity sha512-8VAUhyA80nTlF/IrinCxw6E3q1Hd2jdpLCE/QqeKa0Q8ISoQ993eOfL9gNAbLc7rmc8GWN2QBYjAW6Xljmjkkw==
|
||||
dependencies:
|
||||
date-fns "^2.28.0"
|
||||
|
||||
"@tryghost/nql@^0.11.0":
|
||||
version "0.11.0"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/nql/-/nql-0.11.0.tgz#137a05aa3e3c733c8f646afc59dcb9eeb2c6269a"
|
||||
integrity sha512-B8AZUC97NVp6atZ2Jg6mL+03AbQf5gzCkqhCgVjhHeeyQh5xvU1uIMyvuio2wq9MFWxHPD8w8cSltidpY9wTuA==
|
||||
"@tryghost/nql@^0.12.0":
|
||||
version "0.12.0"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/nql/-/nql-0.12.0.tgz#0031c0ae27e75bba7f06c521ee7bda7e93aec2d7"
|
||||
integrity sha512-oF+LSbrr9ABuG+/Jq7RfOm/TrCG1sI5LdVXovAaqfS0KD4WFoXURD0oZKxwecrSe1rSL9Iiswj+bLaZjXVj1zg==
|
||||
dependencies:
|
||||
"@tryghost/mongo-knex" "^0.8.0"
|
||||
"@tryghost/mongo-utils" "^0.5.0"
|
||||
"@tryghost/nql-lang" "^0.5.0"
|
||||
"@tryghost/mongo-knex" "^0.9.0"
|
||||
"@tryghost/mongo-utils" "^0.6.0"
|
||||
"@tryghost/nql-lang" "^0.6.0"
|
||||
mingo "^2.2.2"
|
||||
|
||||
"@tryghost/pretty-cli@^1.2.38":
|
||||
@@ -3108,17 +3108,17 @@ graceful-fs@^4.0.0, graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6,
|
||||
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3"
|
||||
integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==
|
||||
|
||||
gscan@4.39.4:
|
||||
version "4.39.4"
|
||||
resolved "https://registry.yarnpkg.com/gscan/-/gscan-4.39.4.tgz#af73181874b761414c04a1498a2b62b2119dfb9b"
|
||||
integrity sha512-jb6vnclLhHa10Z+RCcmfovy78eeE3EknASEsH5YS1OPGn66CG1Tja8IJffLUJk4mFnqZECjn7YrWKJNkgYpK4A==
|
||||
gscan@4.42.0:
|
||||
version "4.42.0"
|
||||
resolved "https://registry.yarnpkg.com/gscan/-/gscan-4.42.0.tgz#f25208327642680a5210094af20c1f1c6b5251df"
|
||||
integrity sha512-LDNksyNY4Pb3Hc3OC56Zu3uNDODmcJSP2Rtzc1UVZ3/SWLoqcIU9+nyzHNy3uCdbIGg3HK0Ho2D89jiumWD0LA==
|
||||
dependencies:
|
||||
"@sentry/node" "^7.73.0"
|
||||
"@tryghost/config" "^0.2.18"
|
||||
"@tryghost/debug" "^0.1.26"
|
||||
"@tryghost/errors" "^1.2.26"
|
||||
"@tryghost/logging" "^2.4.7"
|
||||
"@tryghost/nql" "^0.11.0"
|
||||
"@tryghost/nql" "^0.12.0"
|
||||
"@tryghost/pretty-cli" "^1.2.38"
|
||||
"@tryghost/server" "^0.1.37"
|
||||
"@tryghost/zip" "^1.1.38"
|
||||
|
||||
Reference in New Issue
Block a user