Compare commits

...

44 Commits
3.1.2 ... 3.1.3

Author SHA1 Message Date
a6a5d1eba1 3.1.3 2021-03-10 21:00:57 +00:00
fa8cc4cf2e Update dependency gulp-zip to v5.1.0 2021-03-10 09:48:00 +00:00
e4faa3141a Update dependency postcss to v8.2.8 2021-03-09 22:41:13 +00:00
1e0e813931 Update dependency autoprefixer to v10.2.5 2021-03-05 15:52:56 +00:00
0d1cf89cc0 Update dependency postcss to v8.2.7 2021-03-04 00:43:23 +00:00
9ac38156da Update dependency inquirer to v8 2021-02-26 00:59:59 +00:00
fc8cf0b2f4 Update dependency @tryghost/release-utils to v0.6.12 2021-02-22 08:14:53 +00:00
7e3e891338 Update dependency postcss to v8.2.6 2021-02-10 19:29:09 +00:00
69f5108a39 Update dependency @tryghost/release-utils to v0.6.11 2021-02-09 12:07:09 +00:00
44fa55be19 Update dependency postcss to v8.2.5 2021-02-08 01:10:50 +00:00
df4bfbffb2 Disable dark mode with code injection
It's now possible to disable the dark mode with code injection instead of removing the CSS and rebuilding it, by simply adding a class no-dark to html element.
2021-02-01 12:06:56 +08:00
bcfbc21b8e Lock file maintenance 2021-02-01 00:51:05 +00:00
41330614cd Update dependency autoprefixer to v10.2.4 2021-01-29 18:49:55 +00:00
069280eea2 Apply scroll-margin-top to all elements with id attribute instead of only headings 2021-01-27 17:06:11 +08:00
52f763859a Replace subscribe link with account link for logged in users
refs: #751
2021-01-27 16:44:24 +08:00
e3fd4d707e 2021 2021-01-25 15:58:47 +00:00
854880747d Fix text fragment scrolling which behind the floating top bar
refs: #749
2021-01-22 10:02:51 +08:00
6b9df8bb51 Rebuild assets 2021-01-22 09:52:32 +08:00
1360ed83bd Update dependency autoprefixer to v10.2.3 2021-01-19 19:59:47 +00:00
adfb47009e Updated links to ghost.org sites
no issue

Follow-up task of the updated Ghost Docs structure. Updated links reflecting the new structure to prevent unnecessary 404s and redirects
2021-01-19 13:30:21 +13:00
4752bf03c9 Update dependency @tryghost/release-utils to v0.6.10 2021-01-12 17:05:11 +00:00
a17155a3b6 Update dependency postcss to v8.2.4 2021-01-11 00:05:06 +00:00
a1bf3f3823 Update dependency autoprefixer to v10.2.1 2021-01-08 02:05:45 +00:00
d063fb2806 Update dependency postcss to v8.2.3 2021-01-07 14:05:36 +00:00
4a6dfa8e04 Added main as a deploy branch for theme uploading
no issue

- we will be switching to main soon, and want to update this workflow to show how it should be used
2021-01-07 13:50:49 +00:00
e4a5e96d06 Update dependency autoprefixer to v10.2.0 2021-01-06 03:05:42 +00:00
35e68f6d3f Show members-only posts in the post loop by default 2021-01-05 15:47:56 +08:00
f631f874f7 Update dependency beeper to v2.1.0 2021-01-04 00:07:18 +00:00
74d787831e Lock file maintenance 2021-01-01 00:04:53 +00:00
739deb3e4d Update dependency postcss to v8.2.2 2020-12-29 22:05:17 +00:00
bc3e072d31 Update dependency @tryghost/release-utils to v0.6.9 2020-12-14 04:56:45 +00:00
838c4ecca2 Update dependency gscan to v3.6.1 2020-12-11 10:41:29 +00:00
7a61bf55ed Update dependency postcss to v8.2.1 2020-12-09 13:06:09 +00:00
9baffdd03f Update CSS preprocessors 2020-12-08 07:49:27 +00:00
30ccbca28a Update dependency postcss to v8.1.14 2020-12-04 00:26:02 +00:00
def78b102b Update dependency postcss to v8.1.13 2020-12-03 03:20:22 +00:00
dfb6444b25 Update dependency postcss to v8.1.11 2020-12-03 01:49:56 +00:00
4c298b97cf Lock file maintenance 2020-12-01 00:05:39 +00:00
6c8a048bad Update dependency autoprefixer to v10.0.4 2020-11-27 21:39:19 +00:00
fd02a6c722 Update dependency autoprefixer to v10.0.3 2020-11-26 22:06:52 +00:00
493da38cff Update jQuery version to 3.5.1 2020-11-24 12:01:31 +08:00
19cf4adb74 Update dependency postcss to v8.1.10 2020-11-23 22:25:18 +00:00
daa69cbd31 Update dependency postcss to v8.1.9 2020-11-23 00:05:38 +00:00
267fd00802 Update dependency postcss to v8.1.8 2020-11-19 16:00:59 +00:00
16 changed files with 423 additions and 411 deletions

View File

@ -3,6 +3,7 @@ on:
push:
branches:
- master
- main
jobs:
deploy:
runs-on: ubuntu-18.04

View File

@ -1,4 +1,4 @@
Copyright (c) 2013-2020 Ghost Foundation
Copyright (c) 2013-2021 Ghost Foundation
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation

View File

@ -12,7 +12,7 @@ The default theme for [Ghost](http://github.com/tryghost/ghost/). This is the la
Ghost uses a simple templating language called [Handlebars](http://handlebarsjs.com/) for its themes.
This theme has lots of code comments to help explain what's going on just by reading the code. Once you feel comfortable with how everything works, we also have full [theme API documentation](https://ghost.org/docs/api/handlebars-themes/) which explains every possible Handlebars helper and template.
This theme has lots of code comments to help explain what's going on just by reading the code. Once you feel comfortable with how everything works, we also have full [theme API documentation](https://ghost.org/docs/themes/) which explains every possible Handlebars helper and template.
**The main files are:**
@ -66,4 +66,4 @@ You can add your own SVG icons in the same manner.
# Copyright & License
Copyright (c) 2013-2020 Ghost Foundation - Released under the [MIT license](LICENSE).
Copyright (c) 2013-2021 Ghost Foundation - Released under the [MIT license](LICENSE).

View File

@ -4,6 +4,6 @@ Potential security vulnerabilities can be reported directly us at `security@ghos
The full, up-to-date details of our security policy and procedure can always be found in our documentation:
https://ghost.org/docs/concepts/security/
https://ghost.org/docs/security/
Please refer to this before emailing us. Thanks for helping make Ghost safe for everyone 🙏.
Please refer to this before emailing us. Thanks for helping make Ghost safe for everyone 🙏.

View File

@ -1,2 +1,2 @@
!function(o){"use strict";o.fn.fitVids=function(e){var t,i,n={customSelector:null,ignore:null};return document.getElementById("fit-vids-style")||(t=document.head||document.getElementsByTagName("head")[0],(i=document.createElement("div")).innerHTML='<p>x</p><style id="fit-vids-style">.fluid-width-video-container{flex-grow: 1;width:100%;}.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>',t.appendChild(i.childNodes[1])),e&&o.extend(n,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];n.customSelector&&e.push(n.customSelector);var r=".fitvidsignore";n.ignore&&(r=r+", "+n.ignore);e=o(this).find(e.join(","));(e=(e=e.not("object object")).not(r)).each(function(){var e,t,i=o(this);0<i.parents(r).length||"embed"===this.tagName.toLowerCase()&&i.parent("object").length||i.parent(".fluid-width-video-wrapper").length||(i.css("height")||i.css("width")||!isNaN(i.attr("height"))&&!isNaN(i.attr("width"))||(i.attr("height",9),i.attr("width",16)),e=("object"===this.tagName.toLowerCase()||i.attr("height")&&!isNaN(parseInt(i.attr("height"),10))?parseInt(i.attr("height"),10):i.height())/(isNaN(parseInt(i.attr("width"),10))?i.width():parseInt(i.attr("width"),10)),i.attr("name")||(t="fitvid"+o.fn.fitVids._count,i.attr("name",t),o.fn.fitVids._count++),i.wrap('<div class="fluid-width-video-container"><div class="fluid-width-video-wrapper"></div></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*e+"%"),i.removeAttr("height").removeAttr("width"))})})},o.fn.fitVids._count=0}(window.jQuery||window.Zepto),function(e){e.addEventListener("DOMContentLoaded",function(){e.querySelectorAll(".kg-gallery-image img").forEach(function(e){var t=e.closest(".kg-gallery-image"),e=e.attributes.width.value/e.attributes.height.value;t.style.flex=e+" 1 0%"})})}((window,document)),function(t,i){var r,n,o,s,a,d,l,c=i.querySelector("link[rel=next]");function u(){if(404===this.status)return t.removeEventListener("scroll",f),void t.removeEventListener("resize",v);this.response.querySelectorAll(".post-card").forEach(function(e){r.appendChild(i.importNode(e,!0))});var e=this.response.querySelector("link[rel=next]");e?c.href=e.href:(t.removeEventListener("scroll",f),t.removeEventListener("resize",v)),l=i.documentElement.scrollHeight,s=o=!1}function e(){var e;s||(a+d<=l-n?o=!1:(s=!0,(e=new t.XMLHttpRequest).responseType="document",e.addEventListener("load",u),e.open("GET",c.href),e.send(null)))}function h(){o||t.requestAnimationFrame(e),o=!0}function f(){a=t.scrollY,h()}function v(){d=t.innerHeight,l=i.documentElement.scrollHeight,h()}!c||(r=i.querySelector(".post-feed"))&&(s=o=!(n=300),a=t.scrollY,d=t.innerHeight,l=i.documentElement.scrollHeight,t.addEventListener("scroll",f,{passive:!0}),t.addEventListener("resize",v),h())}(window,document),function(s,a){s.Casper||(s.Casper={}),s.Casper.stickyNavTitle=function(e){var t=a.querySelector(e.navSelector),i=a.querySelector(e.titleSelector),r=s.scrollY,n=!1;function o(){i.getBoundingClientRect().top+s.scrollY+(i.offsetHeight+35)<=r?t.classList.add(e.activeClass):t.classList.remove(e.activeClass),n=!1}s.addEventListener("scroll",function(){r=s.scrollY,function(){n||requestAnimationFrame(o);n=!0}()},{passive:!0}),o()}}(window,document);
!function(o){"use strict";o.fn.fitVids=function(e){var t,i,n={customSelector:null,ignore:null};return document.getElementById("fit-vids-style")||(t=document.head||document.getElementsByTagName("head")[0],(i=document.createElement("div")).innerHTML='<p>x</p><style id="fit-vids-style">.fluid-width-video-container{flex-grow: 1;width:100%;}.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>',t.appendChild(i.childNodes[1])),e&&o.extend(n,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];n.customSelector&&e.push(n.customSelector);var r=".fitvidsignore";n.ignore&&(r=r+", "+n.ignore);e=o(this).find(e.join(","));(e=(e=e.not("object object")).not(r)).each(function(){var e,t,i=o(this);0<i.parents(r).length||"embed"===this.tagName.toLowerCase()&&i.parent("object").length||i.parent(".fluid-width-video-wrapper").length||(i.css("height")||i.css("width")||!isNaN(i.attr("height"))&&!isNaN(i.attr("width"))||(i.attr("height",9),i.attr("width",16)),e=("object"===this.tagName.toLowerCase()||i.attr("height")&&!isNaN(parseInt(i.attr("height"),10))?parseInt(i.attr("height"),10):i.height())/(isNaN(parseInt(i.attr("width"),10))?i.width():parseInt(i.attr("width"),10)),i.attr("name")||(t="fitvid"+o.fn.fitVids._count,i.attr("name",t),o.fn.fitVids._count++),i.wrap('<div class="fluid-width-video-container"><div class="fluid-width-video-wrapper"></div></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*e+"%"),i.removeAttr("height").removeAttr("width"))})})},o.fn.fitVids._count=0}(window.jQuery||window.Zepto),function(e){e.addEventListener("DOMContentLoaded",function(){e.querySelectorAll(".kg-gallery-image img").forEach(function(e){var t=e.closest(".kg-gallery-image"),e=e.attributes.width.value/e.attributes.height.value;t.style.flex=e+" 1 0%"})})}((window,document)),function(t,i){var r,n,o,s,a,d,l,c=i.querySelector("link[rel=next]");function u(){if(404===this.status)return t.removeEventListener("scroll",f),void t.removeEventListener("resize",v);this.response.querySelectorAll(".post-card").forEach(function(e){r.appendChild(i.importNode(e,!0))});var e=this.response.querySelector("link[rel=next]");e?c.href=e.href:(t.removeEventListener("scroll",f),t.removeEventListener("resize",v)),l=i.documentElement.scrollHeight,s=o=!1}function e(){var e;s||(a+d<=l-n?o=!1:(s=!0,(e=new t.XMLHttpRequest).responseType="document",e.addEventListener("load",u),e.open("GET",c.href),e.send(null)))}function h(){o||t.requestAnimationFrame(e),o=!0}function f(){a=t.scrollY,h()}function v(){d=t.innerHeight,l=i.documentElement.scrollHeight,h()}!c||(r=i.querySelector(".post-feed"))&&(s=o=!(n=300),a=t.scrollY,d=t.innerHeight,l=i.documentElement.scrollHeight,t.addEventListener("scroll",f,{passive:!0}),t.addEventListener("resize",v),h())}(window,document),function(s,a){s.Casper||(s.Casper={}),s.Casper.stickyNavTitle=function(e){var t=a.querySelector(e.navSelector),i=a.querySelector(e.titleSelector),r=s.scrollY,n=!1;function o(){i.getBoundingClientRect().top+s.scrollY+(i.offsetHeight+35)<=r?t.classList.add(e.activeClass):t.classList.remove(e.activeClass),n=!1}s.addEventListener("scroll",function(){r=s.scrollY,n||requestAnimationFrame(o),n=!0},{passive:!0}),o()}}(window,document);
//# sourceMappingURL=casper.js.map

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

View File

@ -1256,6 +1256,10 @@ Usage (In Ghost editor):
margin-top: 1.2em;
}
.post-full-content [id] {
scroll-margin-top: 110px;
}
.post-full-content h1,
.post-full-content h2,
.post-full-content h3,
@ -2886,229 +2890,229 @@ Usage (In Ghost editor):
/* 12. Dark Mode
/* ---------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
body {
html:not(.no-dark) body {
color: rgba(255, 255, 255, 0.75);
background: var(--darkmode);
}
img {
html:not(.no-dark) img {
opacity: 0.9;
}
.site-header-background:before {
html:not(.no-dark) .site-header-background:before {
background: rgba(0,0,0,0.6);
}
.post-feed {
html:not(.no-dark) .post-feed {
background: var(--darkmode);
}
.post-card,
.post-card:hover {
html:not(.no-dark) .post-card,
html:not(.no-dark) .post-card:hover {
border-bottom-color: color-mod(var(--darkmode) l(+8%));
}
.author-profile-image {
html:not(.no-dark) .author-profile-image {
background: var(--darkmode);
}
.post-card-byline-content a {
html:not(.no-dark) .post-card-byline-content a {
color: rgba(255, 255, 255, 0.75);
}
.post-card-byline-content a:hover {
html:not(.no-dark) .post-card-byline-content a:hover {
color: #fff;
}
.post-card-image {
html:not(.no-dark) .post-card-image {
background: var(--darkmode);
}
.post-card-title {
html:not(.no-dark) .post-card-title {
color: rgba(255, 255, 255, 0.85);
}
.post-card-excerpt {
html:not(.no-dark) .post-card-excerpt {
color: color-mod(var(--midgrey) l(+10%));
}
.author-avatar,
.static-avatar {
html:not(.no-dark) .author-avatar,
html:not(.no-dark) .static-avatar {
border-color: color-mod(var(--darkgrey) l(+2%));
}
.site-main,
.post-template .site-main,
.page-template .site-main {
html:not(.no-dark) .site-main,
html:not(.no-dark) .post-template .site-main,
html:not(.no-dark) .page-template .site-main {
background: var(--darkmode);
}
.post-full-content {
html:not(.no-dark) .post-full-content {
background: var(--darkmode);
}
.post-full-title {
html:not(.no-dark) .post-full-title {
color: rgba(255, 255, 255, 0.9);
}
.post-full-custom-excerpt {
html:not(.no-dark) .post-full-custom-excerpt {
color: color-mod(var(--midgrey) l(+10%));
}
.post-full-image {
html:not(.no-dark) .post-full-image {
background-color: color-mod(var(--darkmode) l(+8%));
}
.post-full-byline {
html:not(.no-dark) .post-full-byline {
border-top-color: color-mod(var(--darkmode) l(+15%));
}
.post-full-byline-meta h4 a {
html:not(.no-dark) .post-full-byline-meta h4 a {
color: rgba(255, 255, 255, 0.75);
}
.post-full-byline-meta h4 a:hover {
html:not(.no-dark) .post-full-byline-meta h4 a:hover {
color: #fff;
}
.author-list-item .author-card {
html:not(.no-dark) .author-list-item .author-card {
background: color-mod(var(--darkmode) l(+4%));
box-shadow: 0 12px 26px rgba(0,0,0,0.4);
}
.author-list-item .author-card:before {
html:not(.no-dark) .author-list-item .author-card:before {
border-top-color: color-mod(var(--darkmode) l(+4%));
}
.no-image .author-social-link a {
html:not(.no-dark) .no-image .author-social-link a {
color: rgba(255, 255, 255, 0.75);
}
.post-full-content h1,
.post-full-content h2,
.post-full-content h3,
.post-full-content h4,
.post-full-content h6 {
html:not(.no-dark) .post-full-content h1,
html:not(.no-dark) .post-full-content h2,
html:not(.no-dark) .post-full-content h3,
html:not(.no-dark) .post-full-content h4,
html:not(.no-dark) .post-full-content h6 {
color: rgba(255, 255, 255, 0.9);
}
.post-full-content a {
html:not(.no-dark) .post-full-content a {
color: #fff;
box-shadow: inset 0 -1px 0 #fff;
}
.post-full-content strong {
html:not(.no-dark) .post-full-content strong {
color: #fff;
}
.post-full-content em {
html:not(.no-dark) .post-full-content em {
color: #fff;
}
.post-full-content code {
html:not(.no-dark) .post-full-content code {
color: #fff;
background: #000;
}
hr {
html:not(.no-dark) hr {
border-top-color: color-mod(var(--darkmode) l(+8%));
}
.post-full-content hr:after {
html:not(.no-dark) .post-full-content hr:after {
background: color-mod(var(--darkmode) l(+8%));
box-shadow: var(--darkmode) 0 0 0 5px;
}
.post-full-content figcaption {
html:not(.no-dark) .post-full-content figcaption {
color: rgba(255, 255, 255, 0.6);
}
.post-full-content table td:first-child {
html:not(.no-dark) .post-full-content table td:first-child {
background-image: linear-gradient(to right, var(--darkmode) 50%, color-mod(var(--darkmode) a(0%)) 100%);
}
.post-full-content table td:last-child {
html:not(.no-dark) .post-full-content table td:last-child {
background-image: linear-gradient(to left, var(--darkmode) 50%, color-mod(var(--darkmode) a(0%)) 100%);
}
.post-full-content table th {
html:not(.no-dark) .post-full-content table th {
color: rgba(255, 255, 255, 0.85);
background-color: color-mod(var(--darkmode) l(+8%));
}
.post-full-content table th,
.post-full-content table td {
html:not(.no-dark) .post-full-content table th,
html:not(.no-dark) .post-full-content table td {
border: color-mod(var(--darkmode) l(+8%)) 1px solid;
}
.post-full-content .kg-bookmark-container,
.post-full-content .kg-bookmark-container:hover {
html:not(.no-dark) .post-full-content .kg-bookmark-container,
html:not(.no-dark) .post-full-content .kg-bookmark-container:hover {
color: rgba(255, 255, 255, 0.75);
box-shadow: 0 0 1px rgba(255,255,255,0.9);
}
.post-full-content input {
html:not(.no-dark) .post-full-content input {
color: color-mod(var(--midgrey) l(-30%));
}
.kg-bookmark-title {
html:not(.no-dark) .kg-bookmark-title {
color: #fff;
}
.kg-bookmark-description {
html:not(.no-dark) .kg-bookmark-description {
color: rgba(255, 255, 255, 0.75);
}
.kg-bookmark-metadata {
html:not(.no-dark) .kg-bookmark-metadata {
color: rgba(255, 255, 255, 0.75);
}
.site-archive-header .no-image {
html:not(.no-dark) .site-archive-header .no-image {
color: rgba(255, 255, 255, 0.9);
background: var(--darkmode);
}
.site-archive-header .no-image .site-header-content {
html:not(.no-dark) .site-archive-header .no-image .site-header-content {
border-bottom-color: color-mod(var(--darkmode) l(+15%));
}
.site-header-content .author-profile-image {
html:not(.no-dark) .site-header-content .author-profile-image {
box-shadow: 0 0 0 6px hsla(0,0%,100%,0.04);
}
.subscribe-form {
html:not(.no-dark) .subscribe-form {
border: none;
background: linear-gradient(color-mod(var(--darkmode) l(-6%)), color-mod(var(--darkmode) l(-3%)));
}
.subscribe-form-title {
html:not(.no-dark) .subscribe-form-title {
color: rgba(255, 255, 255, 0.9);
}
.subscribe-form p {
html:not(.no-dark) .subscribe-form p {
color: rgba(255, 255, 255, 0.7);
}
.subscribe-email {
html:not(.no-dark) .subscribe-email {
border-color: color-mod(var(--darkmode) l(+6%));
color: rgba(255, 255, 255, 0.9);
background: color-mod(var(--darkmode) l(+3%));
}
.subscribe-email:focus {
html:not(.no-dark) .subscribe-email:focus {
border-color: color-mod(var(--darkmode) l(+25%));
}
.subscribe-form button {
html:not(.no-dark) .subscribe-form button {
opacity: 0.9;
}
.subscribe-form .invalid .message-error,
.subscribe-form .error .message-error {
html:not(.no-dark) .subscribe-form .invalid .message-error,
html:not(.no-dark) .subscribe-form .error .message-error {
color: color-mod(var(--red) l(+5%) s(-5%));
}
.subscribe-form .success .message-success {
html:not(.no-dark) .subscribe-form .success .message-success {
color: color-mod(var(--green) l(+5%) s(-5%));
}
}

View File

@ -49,7 +49,7 @@
<div class="inner posts">
<div class="post-feed">
{{#foreach posts}}
{{#foreach posts visibility="all"}}
{{!-- The tag below includes the markup for each post - partials/post-card.hbs --}}
{{> "post-card"}}

View File

@ -33,7 +33,7 @@
<a href="{{@site.url}}">Latest Posts</a>
{{#if @site.facebook}}<a href="{{facebook_url @site.facebook}}" target="_blank" rel="noopener">Facebook</a>{{/if}}
{{#if @site.twitter}}<a href="{{twitter_url @site.twitter}}" target="_blank" rel="noopener">Twitter</a>{{/if}}
<a href="https://ghost.org" target="_blank" rel="noopener">Ghost</a>
<a href="https://ghost.org/" target="_blank" rel="noopener">Ghost</a>
</nav>
</div>
</footer>
@ -84,8 +84,8 @@
{{!-- jQuery, required for fitvids --}}
<script
src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous">
</script>
{{!-- Fitvids (for responsive video embeds), infinite scroll, floating header, and gallery card support --}}

View File

@ -25,7 +25,7 @@ into the {body} of the default.hbs template --}}
<div class="inner posts">
<div class="post-feed">
{{#foreach posts}}
{{#foreach posts visibility="all"}}
{{!-- The tag below includes the markup for each post - partials/post-card.hbs --}}
{{> "post-card"}}
@ -47,7 +47,7 @@ into the {body} of the default.hbs template --}}
// Dropping the scroll event and using only a raf loop results in smoother
// scrolling but continuous processing even when not scrolling
$(document).ready(function () {
var nav = document.querySelector('.site-nav-main .site-nav');
var feed = document.querySelector('.post-feed');

View File

@ -2,7 +2,7 @@
"name": "casper",
"description": "A clean, minimal default theme for the Ghost publishing platform",
"demo": "https://demo.ghost.io",
"version": "3.1.2",
"version": "3.1.3",
"engines": {
"ghost": ">=3.0.0",
"ghost-api": "v3"
@ -25,7 +25,7 @@
"author": {
"name": "Ghost Foundation",
"email": "hello@ghost.org",
"url": "https://ghost.org"
"url": "https://ghost.org/"
},
"gpm": {
"type": "theme",
@ -46,19 +46,19 @@
"bugs": "https://github.com/TryGhost/Casper/issues",
"contributors": "https://github.com/TryGhost/Casper/graphs/contributors",
"devDependencies": {
"@tryghost/release-utils": "0.6.8",
"autoprefixer": "10.0.2",
"beeper": "2.0.0",
"@tryghost/release-utils": "0.6.12",
"autoprefixer": "10.2.5",
"beeper": "2.1.0",
"cssnano": "4.1.10",
"gscan": "3.6.0",
"gscan": "3.6.1",
"gulp": "4.0.2",
"gulp-concat": "2.6.1",
"gulp-livereload": "4.0.2",
"gulp-postcss": "9.0.0",
"gulp-uglify": "3.0.2",
"gulp-zip": "5.0.2",
"inquirer": "7.3.3",
"postcss": "8.1.7",
"gulp-zip": "5.1.0",
"inquirer": "8.0.0",
"postcss": "8.2.8",
"postcss-color-mod-function": "3.0.3",
"postcss-easy-import": "3.0.0",
"pump": "3.0.0"

View File

@ -34,7 +34,11 @@
{{/if}}
{{#if @labs.members}}
<a class="subscribe-button" href="#subscribe">Subscribe</a>
{{#unless @member}}
<a class="subscribe-button" href="#subscribe">Subscribe</a>
{{else}}
<a class="subscribe-button" href="#/portal/account">Account</a>
{{/unless}}
{{/if}}
</div>
</nav>

View File

@ -23,7 +23,7 @@
<main id="site-main" class="site-main outer">
<div class="inner posts">
<div class="post-feed">
{{#foreach posts}}
{{#foreach posts visibility="all"}}
{{!-- The tag below includes the markup for each post - partials/post-card.hbs --}}
{{> "post-card"}}
{{/foreach}}

649
yarn.lock

File diff suppressed because it is too large Load Diff