mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2025-07-13 09:16:06 +00:00
Compare commits
21 Commits
Author | SHA1 | Date | |
---|---|---|---|
8f2b806673 | |||
4af198a19f | |||
f846ceb7ed | |||
7390c17a26 | |||
55d5345800 | |||
cf30adacce | |||
38426cd9e6 | |||
c7713df88f | |||
e6fdb4bfa3 | |||
657bb8f986 | |||
005211ff8f | |||
e2096ee731 | |||
20ced95885 | |||
2aaf7441af | |||
d687d0f099 | |||
96f69f8c07 | |||
4808700c0f | |||
6459992d9a | |||
b28258d0c8 | |||
f3c0526ea5 | |||
129a578751 |
@ -4,7 +4,7 @@ The default theme for [Ghost](http://github.com/tryghost/ghost/). This is the la
|
||||
|
||||
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
|
||||
|
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
@ -15,6 +15,7 @@ production stylesheet in assets/built/screen.css
|
||||
7.2. Members Subscribe Form
|
||||
7.4. Related Posts
|
||||
7.5. Koenig Styles
|
||||
7.6 Comments
|
||||
8. Author Template
|
||||
9. Error Template
|
||||
11. Site Footer
|
||||
@ -111,8 +112,8 @@ production stylesheet in assets/built/screen.css
|
||||
z-index: 100;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-top: 6.4vmin;
|
||||
padding-bottom: 6.4vmin;
|
||||
padding-top: calc(19vmin + 44px);
|
||||
padding-bottom: 19vmin;
|
||||
text-align: center;
|
||||
color: var(--color-darkgrey);
|
||||
}
|
||||
@ -123,10 +124,6 @@ production stylesheet in assets/built/screen.css
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body:not(.has-cover) .site-header-content:not(.left-aligned) {
|
||||
padding-bottom: max(4.8vmin, 24px);
|
||||
}
|
||||
|
||||
.site-header-content.left-aligned {
|
||||
padding-bottom: 0;
|
||||
text-align: left;
|
||||
@ -134,7 +131,7 @@ body:not(.has-cover) .site-header-content:not(.left-aligned) {
|
||||
|
||||
.has-cover .site-header-content.left-aligned {
|
||||
align-items: flex-end;
|
||||
padding-bottom: 6.4vmin;
|
||||
padding-bottom: max(4vmin, 32px);
|
||||
}
|
||||
|
||||
.site-header-content.no-content {
|
||||
@ -188,16 +185,18 @@ body:not(.has-cover) .site-header-content:not(.left-aligned) {
|
||||
.site-description {
|
||||
display: inline-block;
|
||||
z-index: 10;
|
||||
max-width: 560px;
|
||||
font-size: 2.4rem;
|
||||
font-weight: 500;
|
||||
line-height: 1.4;
|
||||
max-width: 960px;
|
||||
font-size: 6rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
:is(.site-logo, .site-title) + .site-description {
|
||||
margin-top: 8px;
|
||||
font-size: 2.1rem;
|
||||
max-width: 640px;
|
||||
margin-top: 16px;
|
||||
font-size: 2.4rem;
|
||||
font-weight: 400;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.site-logo + .site-description {
|
||||
@ -209,7 +208,6 @@ body:not(.has-cover) .site-header-content:not(.left-aligned) {
|
||||
}
|
||||
|
||||
.has-cover .site-description {
|
||||
font-size: 3.2rem;
|
||||
letter-spacing: -0.005em;
|
||||
color: #fff;
|
||||
}
|
||||
@ -222,6 +220,18 @@ body:not(.has-cover) .site-header-content:not(.left-aligned) {
|
||||
font-size: 2.2rem;
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.is-head-stacked.has-cover .site-header-content {
|
||||
padding-top: calc(19vmin + 120px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 991px) {
|
||||
.site-header-content {
|
||||
padding-top: calc(19vmin + 32px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.has-cover .site-header-content {
|
||||
min-height: 240px;
|
||||
@ -236,7 +246,7 @@ body:not(.has-cover) .site-header-content:not(.left-aligned) {
|
||||
font-size: 3.4rem !important;
|
||||
}
|
||||
.site-description {
|
||||
font-size: 1.9rem !important;
|
||||
font-size: 2.8rem !important;
|
||||
}
|
||||
.site-logo + .site-description {
|
||||
margin-top: 12px !important;
|
||||
@ -251,8 +261,7 @@ body:not(.has-cover) .site-header-content:not(.left-aligned) {
|
||||
/* ---------------------------------------------------------- */
|
||||
|
||||
.gh-head {
|
||||
padding-top: min(24px, 3.6vmin);
|
||||
padding-bottom: min(24px, 3.6vmin);
|
||||
height: 88px;
|
||||
font-size: 1.6rem;
|
||||
line-height: 1.3em;
|
||||
background-color: #fff;
|
||||
@ -279,11 +288,108 @@ body:not(.has-cover) .site-header-content:not(.left-aligned) {
|
||||
|
||||
.gh-head-inner {
|
||||
display: grid;
|
||||
grid-gap: 40px;
|
||||
grid-template-columns: auto auto 1fr;
|
||||
column-gap: 40px;
|
||||
grid-template-columns: auto 1fr auto;
|
||||
grid-auto-flow: row dense;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* Header styles
|
||||
/* ---------------------------------------------------------- */
|
||||
|
||||
.is-head-left-logo .gh-head-inner {
|
||||
grid-template-columns: auto 1fr auto;
|
||||
}
|
||||
|
||||
.is-head-left-logo.home-template .gh-head-logo {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.is-head-left-logo.home-template .gh-head-menu {
|
||||
margin-left: -40px;
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.is-head-left-logo .gh-head-menu {
|
||||
margin-right: 32px;
|
||||
margin-left: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.is-head-middle-logo .gh-head-inner {
|
||||
grid-template-columns: 1fr auto 1fr;
|
||||
}
|
||||
|
||||
.is-head-middle-logo .gh-head-brand {
|
||||
grid-column-start: 2;
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.is-head-middle-logo .gh-head-menu {
|
||||
margin-right: 64px;
|
||||
}
|
||||
}
|
||||
|
||||
.is-head-stacked .gh-head {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.is-head-stacked .gh-head-inner {
|
||||
grid-template-columns: 1fr auto 1fr;
|
||||
}
|
||||
|
||||
.is-head-stacked .gh-head-brand {
|
||||
grid-row-start: 1;
|
||||
grid-column-start: 2;
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.is-head-stacked .gh-head-inner {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.is-head-stacked .gh-head-brand {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
.is-head-stacked .gh-head-menu {
|
||||
grid-row-start: 2;
|
||||
grid-column: 1 / 4;
|
||||
justify-content: center;
|
||||
height: 56px;
|
||||
margin: 0 48px;
|
||||
}
|
||||
|
||||
.is-head-stacked .gh-head-menu::before,
|
||||
.is-head-stacked .gh-head-menu::after {
|
||||
position: absolute;
|
||||
top: 80px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
content: "";
|
||||
background-color: var(--color-lightgrey);
|
||||
}
|
||||
|
||||
.is-head-stacked.has-cover .gh-head-menu::before,
|
||||
.is-head-stacked.has-cover .gh-head-menu::after {
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.is-head-stacked .gh-head-menu::after {
|
||||
top: 136px;
|
||||
}
|
||||
|
||||
.is-head-stacked .gh-head-actions {
|
||||
grid-row-start: 1;
|
||||
grid-column: 1 / 4;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
|
||||
/* Brand
|
||||
/* ---------------------------------------------------------- */
|
||||
@ -292,7 +398,6 @@ body:not(.has-cover) .site-header-content:not(.left-aligned) {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 40px;
|
||||
max-width: 400px;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
@ -302,6 +407,7 @@ body:not(.has-cover) .site-header-content:not(.left-aligned) {
|
||||
font-size: 2.6rem;
|
||||
letter-spacing: -0.02em;
|
||||
color: inherit;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.gh-head-logo.no-image {
|
||||
@ -312,17 +418,8 @@ body:not(.has-cover) .site-header-content:not(.left-aligned) {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.no-logo .gh-head-logo {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.gh-head-logo img {
|
||||
max-height: 26px;
|
||||
}
|
||||
|
||||
.gh-head-brand-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
max-height: 40px;
|
||||
}
|
||||
|
||||
|
||||
@ -336,14 +433,10 @@ body:not(.has-cover) .site-header-content:not(.left-aligned) {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.no-logo .gh-head-menu {
|
||||
margin-left: -40px;
|
||||
}
|
||||
|
||||
.gh-head-menu .nav {
|
||||
display: inline-flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 32px;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
@ -365,6 +458,80 @@ body:not(.has-cover) .site-header-content:not(.left-aligned) {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.gh-head-menu .nav-more-toggle {
|
||||
position: relative;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
margin: 0 -6px;
|
||||
padding: 0;
|
||||
font-size: inherit;
|
||||
background-color: transparent;
|
||||
text-transform: inherit;
|
||||
}
|
||||
|
||||
.gh-head-menu .nav-more-toggle svg {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
body:not(.is-dropdown-loaded) .gh-head-menu .nav > li {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Dropdown
|
||||
/* ---------------------------------------------------------- */
|
||||
|
||||
.gh-dropdown {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
right: -16px;
|
||||
z-index: 90;
|
||||
width: 200px;
|
||||
padding: 12px 0;
|
||||
margin-top: 24px;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
text-align: left;
|
||||
background-color: #fff;
|
||||
border-radius: 5px;
|
||||
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 7px 20px -5px rgba(0, 0, 0, 0.15);
|
||||
transform: translate3d(0, 6px, 0);
|
||||
transition: opacity 0.3s, transform 0.2s;
|
||||
}
|
||||
|
||||
.is-head-middle-logo .gh-dropdown {
|
||||
right: auto;
|
||||
left: -24px;
|
||||
}
|
||||
|
||||
.is-dropdown-mega .gh-dropdown {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
grid-auto-flow: column;
|
||||
column-gap: 40px;
|
||||
min-width: 320px;
|
||||
padding: 20px 32px;
|
||||
}
|
||||
|
||||
.is-dropdown-open .gh-dropdown {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.gh-head-menu .gh-dropdown li a {
|
||||
display: block;
|
||||
padding: 6px 20px;
|
||||
color: #15171a;
|
||||
}
|
||||
|
||||
.is-dropdown-mega .gh-dropdown li a {
|
||||
padding: 8px 0;
|
||||
}
|
||||
|
||||
|
||||
/* Secondary Navigation
|
||||
/* ---------------------------------------------------------- */
|
||||
@ -400,13 +567,14 @@ body:not(.has-cover) .site-header-content:not(.left-aligned) {
|
||||
|
||||
.gh-head-button {
|
||||
display: inline-flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 8px 16px;
|
||||
height: 40px;
|
||||
padding: 8px 20px;
|
||||
height: 44px;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.005em;
|
||||
font-size: 1.5rem;
|
||||
border-radius: 6px;
|
||||
font-size: 1.6rem;
|
||||
border-radius: 48px;
|
||||
color: #fff;
|
||||
background: var(--ghost-accent-color);
|
||||
}
|
||||
@ -442,7 +610,7 @@ body:not(.has-cover) .site-header-content:not(.left-aligned) {
|
||||
}
|
||||
|
||||
.gh-head-actions .gh-search {
|
||||
margin-right: -10px;
|
||||
margin-right: -4px;
|
||||
}
|
||||
|
||||
@media (max-width: 991px) {
|
||||
@ -464,86 +632,48 @@ body:not(.has-cover) .site-header-content:not(.left-aligned) {
|
||||
.gh-burger {
|
||||
position: relative;
|
||||
display: none;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
padding: 0;
|
||||
margin-right: -3px;
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
.gh-burger-box {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 33px;
|
||||
height: 33px;
|
||||
}
|
||||
|
||||
.has-cover .gh-burger-box {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.gh-burger-inner {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.gh-burger-box::before {
|
||||
.gh-burger::before,
|
||||
.gh-burger::after {
|
||||
position: absolute;
|
||||
display: block;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
margin: auto;
|
||||
content: '';
|
||||
width: 100%;
|
||||
left: 3px;
|
||||
width: 24px;
|
||||
height: 1px;
|
||||
background: currentcolor;
|
||||
transition: transform 300ms cubic-bezier(.2,.6,.3,1), width 300ms cubic-bezier(.2,.6,.3,1);
|
||||
will-change: transform, width;
|
||||
content: "";
|
||||
background-color: var(--color-darkgrey);
|
||||
transition: all 0.2s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
|
||||
}
|
||||
|
||||
.gh-burger-inner::before,
|
||||
.gh-burger-inner::after {
|
||||
position: absolute;
|
||||
display: block;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
margin: auto;
|
||||
content: '';
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: currentcolor;
|
||||
transition: transform 250ms cubic-bezier(.2,.7,.3,1), width 250ms cubic-bezier(.2,.7,.3,1);
|
||||
will-change: transform, width;
|
||||
.has-cover .gh-burger::before,
|
||||
.has-cover .gh-burger::after {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.gh-burger-inner::before {
|
||||
transform: translatey(-6px);
|
||||
}
|
||||
.gh-burger-inner::after {
|
||||
transform: translatey(6px);
|
||||
.gh-burger::before {
|
||||
top: 11px;
|
||||
}
|
||||
|
||||
body:not(.gh-head-open) .gh-burger:hover .gh-burger-inner::before {
|
||||
transform: translatey(-8px);
|
||||
}
|
||||
body:not(.gh-head-open) .gh-burger:hover .gh-burger-inner::after {
|
||||
transform: translatey(8px);
|
||||
.gh-burger::after {
|
||||
bottom: 11px;
|
||||
}
|
||||
|
||||
.gh-head-open .gh-burger-box::before {
|
||||
width: 0;
|
||||
transform: translatex(19px);
|
||||
transition: transform 200ms cubic-bezier(.2,.7,.3,1), width 200ms cubic-bezier(.2,.7,.3,1);
|
||||
.gh-head-open .gh-burger::before {
|
||||
top: 15px;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
.gh-head-open .gh-burger-inner::before {
|
||||
width: 26px;
|
||||
transform: translatex(6px) rotate(135deg);
|
||||
}
|
||||
|
||||
.gh-head-open .gh-burger-inner::after {
|
||||
width: 26px;
|
||||
transform: translatex(6px) rotate(-135deg);
|
||||
.gh-head-open .gh-burger::after {
|
||||
bottom: 14px;
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
|
||||
|
||||
@ -552,91 +682,129 @@ body:not(.gh-head-open) .gh-burger:hover .gh-burger-inner::after {
|
||||
/* IDs needed to ensure sufficient specificity */
|
||||
|
||||
@media (max-width: 991px) {
|
||||
.gh-burger {
|
||||
display: inline-block;
|
||||
}
|
||||
#gh-head {
|
||||
overflow: hidden;
|
||||
height: 64px;
|
||||
}
|
||||
|
||||
#gh-head .gh-head-inner {
|
||||
height: 100%;
|
||||
grid-template-rows: auto 1fr auto;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 48px;
|
||||
}
|
||||
|
||||
#gh-head .gh-head-brand {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
grid-column-start: auto;
|
||||
max-width: none;
|
||||
display: flex;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto auto;
|
||||
grid-column-start: 1;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
user-select: none;
|
||||
height: 64px;
|
||||
}
|
||||
.no-logo #gh-head .gh-head-brand {
|
||||
justify-content: flex-end;
|
||||
|
||||
#gh-head .gh-head-logo {
|
||||
font-size: 2.2rem;
|
||||
}
|
||||
#gh-head .gh-head-menu {
|
||||
align-self: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
margin: 0 0 10vh 0;
|
||||
font-weight: 300;
|
||||
font-size: 3.6rem;
|
||||
line-height: 1.1em;
|
||||
|
||||
#gh-head .gh-head-brand .gh-search {
|
||||
margin-left: -6px;
|
||||
}
|
||||
#gh-head .gh-head-menu .nav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
font-weight: 500;
|
||||
|
||||
#gh-head .gh-burger {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#gh-head .gh-head-menu,
|
||||
#gh-head .gh-head-actions {
|
||||
flex-direction: column-reverse;
|
||||
position: fixed;
|
||||
justify-content: center;
|
||||
padding: 20px 0 32px;
|
||||
text-align: left;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
}
|
||||
/* Hide collapsed content */
|
||||
#gh-head .gh-head-actions,
|
||||
|
||||
#gh-head .gh-head-menu {
|
||||
display: none;
|
||||
margin: 0;
|
||||
transition: none;
|
||||
transform: translateY(0);
|
||||
}
|
||||
/* Open the menu */
|
||||
.gh-head-open {
|
||||
overflow: hidden;
|
||||
height: 100vh;
|
||||
|
||||
#gh-head .nav {
|
||||
gap: 16px;
|
||||
align-items: center;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
#gh-head .nav a {
|
||||
font-size: 2.6rem;
|
||||
font-weight: 600;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
#gh-head .nav li {
|
||||
opacity: 0;
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
|
||||
#gh-head .gh-head-button {
|
||||
width: 100%;
|
||||
font-size: 1.8rem;
|
||||
text-transform: none;
|
||||
opacity: 0;
|
||||
transform: translateY(8px);
|
||||
}
|
||||
|
||||
.gh-head-open #gh-head {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
z-index: 3999999;
|
||||
height: 100vh;
|
||||
overflow-y: scroll;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.gh-head-open.has-cover #gh-head,
|
||||
.gh-head-open.has-cover #gh-head .gh-head-actions {
|
||||
background-color: var(--ghost-accent-color);
|
||||
}
|
||||
|
||||
.gh-head-open #gh-head .gh-head-menu,
|
||||
.gh-head-open #gh-head .gh-head-actions {
|
||||
position: static;
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.gh-head-open #gh-head .nav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.gh-head-open #gh-head .nav li {
|
||||
opacity: 1;
|
||||
transition: transform 0.2s, opacity 0.2s;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.gh-head-open #gh-head .gh-head-actions {
|
||||
position: sticky;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 3999999;
|
||||
overflow-y: scroll;
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
padding: max(4vmin, 20px) 0;
|
||||
background-color: #fff;
|
||||
}
|
||||
.gh-head-open #gh-head .gh-head-inner {
|
||||
grid-template-rows: auto 1fr auto;
|
||||
}
|
||||
.gh-head-open #gh-head .gh-head-actions,
|
||||
.gh-head-open #gh-head .gh-head-menu {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
#gh-head .gh-head-menu {
|
||||
font-size: 6vmin;
|
||||
.gh-head-open #gh-head .gh-head-button {
|
||||
opacity: 1;
|
||||
transition: transform 0.4s, opacity 0.4s;
|
||||
transition-delay: 0.2s;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.has-cover.gh-head-open .gh-head {
|
||||
background: var(--ghost-accent-color);
|
||||
}
|
||||
|
||||
|
||||
/* 6. Post Feed
|
||||
/* ---------------------------------------------------------- */
|
||||
@ -777,6 +945,7 @@ body:not(.gh-head-open) .gh-burger:hover .gh-burger-inner::after {
|
||||
margin: 0;
|
||||
font-size: 2.6rem;
|
||||
font-weight: 800;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.post-card-content-link:hover .post-card-title {
|
||||
@ -830,12 +999,27 @@ body:not(.gh-head-open) .gh-burger:hover .gh-burger-inner::after {
|
||||
.post-card-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-top: 12px;
|
||||
padding: 0;
|
||||
font-size: 1.3rem;
|
||||
color: var(--color-secondary-text);
|
||||
}
|
||||
|
||||
.post-card-meta > * {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.post-card-meta > * + *:not(script)::before {
|
||||
width: 2px;
|
||||
height: 2px;
|
||||
content: "";
|
||||
background-color: var(--color-secondary-text);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.post-card-meta .sep {
|
||||
margin: 0 4px;
|
||||
}
|
||||
@ -914,7 +1098,7 @@ make sure this only happens on large viewports / desktop-ish devices.
|
||||
.post-card-large .post-card-title {
|
||||
margin-top: 0;
|
||||
font-size: 4.4rem;
|
||||
line-height: 1;
|
||||
line-height: 1.05;
|
||||
}
|
||||
|
||||
.post-card-large .post-card-excerpt {
|
||||
@ -994,7 +1178,7 @@ make sure this only happens on large viewports / desktop-ish devices.
|
||||
margin-bottom: 0;
|
||||
font-size: clamp(3.2rem, 5vw, 5.2rem);
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
line-height: 1.05;
|
||||
color: var(--color-darkgrey);
|
||||
}
|
||||
|
||||
@ -1392,7 +1576,7 @@ iframe.instagram-media + script + :not([id]) {
|
||||
}
|
||||
|
||||
/* Tables */
|
||||
.gh-content table {
|
||||
.gh-content table:not(.gist table) {
|
||||
display: inline-block;
|
||||
overflow-x: auto;
|
||||
max-width: 100%;
|
||||
@ -1403,9 +1587,6 @@ iframe.instagram-media + script + :not([id]) {
|
||||
font-size: 1.6rem;
|
||||
white-space: nowrap;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.gh-content table {
|
||||
-webkit-overflow-scrolling: touch;
|
||||
background: radial-gradient(ellipse at left, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 75%) 0 center, radial-gradient(ellipse at right, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 75%) 100% center;
|
||||
background-attachment: scroll, scroll;
|
||||
@ -1413,20 +1594,20 @@ iframe.instagram-media + script + :not([id]) {
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.gh-content table td:first-child {
|
||||
.gh-content table:not(.gist table) td:first-child {
|
||||
background-image: linear-gradient(to right, rgba(255,255,255, 1) 50%, rgba(255,255,255, 0) 100%);
|
||||
background-size: 20px 100%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.gh-content table td:last-child {
|
||||
.gh-content table:not(.gist table) td:last-child {
|
||||
background-image: linear-gradient(to left, rgba(255,255,255, 1) 50%, rgba(255,255,255, 0) 100%);
|
||||
background-position: 100% 0;
|
||||
background-size: 20px 100%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.gh-content table th {
|
||||
.gh-content table:not(.gist table) th {
|
||||
color: var(--color-darkgrey);
|
||||
font-size: 1.2rem;
|
||||
font-weight: 700;
|
||||
@ -1436,8 +1617,8 @@ iframe.instagram-media + script + :not([id]) {
|
||||
background-color: color-mod(var(--color-wash) l(+4%));
|
||||
}
|
||||
|
||||
.gh-content table th,
|
||||
.gh-content table td {
|
||||
.gh-content table:not(.gist table) th,
|
||||
.gh-content table:not(.gist table) td {
|
||||
padding: 6px 12px;
|
||||
border: color-mod(var(--color-wash) l(-1%) s(-5%)) 1px solid;
|
||||
}
|
||||
@ -1595,6 +1776,43 @@ iframe.instagram-media + script + :not([id]) {
|
||||
}
|
||||
}
|
||||
|
||||
/* 7.6. Comments
|
||||
/* ---------------------------------------------------------- */
|
||||
.comments {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin: 60px 0 44px;
|
||||
}
|
||||
|
||||
|
||||
.comments-head {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 32px;
|
||||
width: 100%;
|
||||
max-width: 720px;
|
||||
}
|
||||
|
||||
.comments h2 {
|
||||
width: 100%;
|
||||
max-width: 720px;
|
||||
font-weight: 800;
|
||||
font-size: 3.4rem;
|
||||
}
|
||||
|
||||
.comments .comment-count {
|
||||
color: var(--color-midgrey);
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.comments #ghost-comments-root {
|
||||
width: 100%;
|
||||
max-width: 720px;
|
||||
}
|
||||
|
||||
|
||||
/* 8. Author Template
|
||||
/* ---------------------------------------------------------- */
|
||||
@ -1636,6 +1854,13 @@ iframe.instagram-media + script + :not([id]) {
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
@media (min-width: 1001px) {
|
||||
.author-template .post-card-large .post-card-content:only-child {
|
||||
grid-column: span 2;
|
||||
max-width: 640px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* 8. Tag Template
|
||||
/* ---------------------------------------------------------- */
|
||||
@ -1649,6 +1874,12 @@ iframe.instagram-media + script + :not([id]) {
|
||||
order: 1;
|
||||
}
|
||||
|
||||
@media (min-width: 1001px) {
|
||||
.tag-template .post-card-large .post-card-content:only-child {
|
||||
grid-column: span 2;
|
||||
max-width: 640px;
|
||||
}
|
||||
}
|
||||
|
||||
/* 9. Error Template
|
||||
/* ---------------------------------------------------------- */
|
||||
@ -1861,6 +2092,10 @@ html.dark-mode .author-profile-location {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
html.dark-mode .author-profile-social-link:hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
html.dark-mode .article-title {
|
||||
color: #fff;
|
||||
}
|
||||
@ -1908,7 +2143,7 @@ html.dark-mode .gh-content :not(pre) > code {
|
||||
color: var(--color-wash);
|
||||
}
|
||||
|
||||
html.dark-mode .gh-content a:not(.kg-btn):not(.kg-nft-card-container):not(.kg-product-card-button):not(.kg-header-card-button) {
|
||||
:where(html.dark-mode) .gh-content a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@ -1938,21 +2173,21 @@ html.dark-mode figcaption {
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
}
|
||||
|
||||
html.dark-mode .gh-content table td:first-child {
|
||||
html.dark-mode .gh-content table:not(.gist table) td:first-child {
|
||||
background-image: linear-gradient(to right, var(--color-darkmode) 50%, color-mod(var(--color-darkmode) a(0%)) 100%);
|
||||
}
|
||||
|
||||
html.dark-mode .gh-content table td:last-child {
|
||||
html.dark-mode .gh-content table:not(.gist table) td:last-child {
|
||||
background-image: linear-gradient(to left, var(--color-darkmode) 50%, color-mod(var(--color-darkmode) a(0%)) 100%);
|
||||
}
|
||||
|
||||
html.dark-mode .gh-content table th {
|
||||
html.dark-mode .gh-content table:not(.gist table) th {
|
||||
color: rgba(255, 255, 255, 0.85);
|
||||
background-color: color-mod(var(--color-darkmode) l(+8%));
|
||||
}
|
||||
|
||||
html.dark-mode .gh-content table th,
|
||||
html.dark-mode .gh-content table td {
|
||||
html.dark-mode .gh-content table:not(.gist table) th,
|
||||
html.dark-mode .gh-content table:not(.gist table) td {
|
||||
border: color-mod(var(--color-darkmode) l(+8%)) 1px solid;
|
||||
}
|
||||
|
||||
@ -2037,6 +2272,10 @@ html.dark-mode .footer-cta-title {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
html.auto-color .author-profile-social-link:hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
html.auto-color .article-title {
|
||||
color: #fff;
|
||||
}
|
||||
@ -2084,7 +2323,7 @@ html.dark-mode .footer-cta-title {
|
||||
color: var(--color-wash);
|
||||
}
|
||||
|
||||
html.auto-color .gh-content a:not(.kg-btn):not(.kg-nft-card-container):not(.kg-product-card-button):not(.kg-header-card-button) {
|
||||
:where(html.auto-color) .gh-content a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@ -2114,21 +2353,21 @@ html.dark-mode .footer-cta-title {
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
}
|
||||
|
||||
html.auto-color .gh-content table td:first-child {
|
||||
html.auto-color .gh-content table:not(.gist table) td:first-child {
|
||||
background-image: linear-gradient(to right, var(--color-darkmode) 50%, color-mod(var(--color-darkmode) a(0%)) 100%);
|
||||
}
|
||||
|
||||
html.auto-color .gh-content table td:last-child {
|
||||
html.auto-color .gh-content table:not(.gist table) td:last-child {
|
||||
background-image: linear-gradient(to left, var(--color-darkmode) 50%, color-mod(var(--color-darkmode) a(0%)) 100%);
|
||||
}
|
||||
|
||||
html.auto-color .gh-content table th {
|
||||
html.auto-color .gh-content table:not(.gist table) th {
|
||||
color: rgba(255, 255, 255, 0.85);
|
||||
background-color: color-mod(var(--color-darkmode) l(+8%));
|
||||
}
|
||||
|
||||
html.auto-color .gh-content table th,
|
||||
html.auto-color .gh-content table td {
|
||||
html.auto-color .gh-content table:not(.gist table) th,
|
||||
html.auto-color .gh-content table:not(.gist table) td {
|
||||
border: color-mod(var(--color-darkmode) l(+8%)) 1px solid;
|
||||
}
|
||||
|
||||
|
81
assets/js/dropdown.js
Normal file
81
assets/js/dropdown.js
Normal file
@ -0,0 +1,81 @@
|
||||
(function () {
|
||||
const mediaQuery = window.matchMedia('(max-width: 991px)');
|
||||
|
||||
const menu = document.querySelector('.gh-head-menu');
|
||||
const nav = menu.querySelector('.nav');
|
||||
if (!nav) return;
|
||||
|
||||
const logo = document.querySelector('.gh-head-logo');
|
||||
const navHTML = nav.innerHTML;
|
||||
|
||||
if (mediaQuery.matches) {
|
||||
const items = nav.querySelectorAll('li');
|
||||
items.forEach(function (item, index) {
|
||||
item.style.transitionDelay = 0.03 * (index + 1) + 's';
|
||||
});
|
||||
}
|
||||
|
||||
const makeDropdown = function () {
|
||||
if (mediaQuery.matches) return;
|
||||
const submenuItems = [];
|
||||
|
||||
while ((nav.offsetWidth + 64) > menu.offsetWidth) {
|
||||
if (nav.lastElementChild) {
|
||||
submenuItems.unshift(nav.lastElementChild);
|
||||
nav.lastElementChild.remove();
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!submenuItems.length) {
|
||||
document.body.classList.add('is-dropdown-loaded');
|
||||
return;
|
||||
}
|
||||
|
||||
const toggle = document.createElement('button');
|
||||
toggle.setAttribute('class', 'nav-more-toggle');
|
||||
toggle.setAttribute('aria-label', 'More');
|
||||
toggle.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="currentColor"><path d="M21.333 16c0-1.473 1.194-2.667 2.667-2.667v0c1.473 0 2.667 1.194 2.667 2.667v0c0 1.473-1.194 2.667-2.667 2.667v0c-1.473 0-2.667-1.194-2.667-2.667v0zM13.333 16c0-1.473 1.194-2.667 2.667-2.667v0c1.473 0 2.667 1.194 2.667 2.667v0c0 1.473-1.194 2.667-2.667 2.667v0c-1.473 0-2.667-1.194-2.667-2.667v0zM5.333 16c0-1.473 1.194-2.667 2.667-2.667v0c1.473 0 2.667 1.194 2.667 2.667v0c0 1.473-1.194 2.667-2.667 2.667v0c-1.473 0-2.667-1.194-2.667-2.667v0z"></path></svg>';
|
||||
|
||||
const wrapper = document.createElement('div');
|
||||
wrapper.setAttribute('class', 'gh-dropdown');
|
||||
|
||||
if (submenuItems.length >= 10) {
|
||||
document.body.classList.add('is-dropdown-mega');
|
||||
wrapper.style.gridTemplateRows = 'repeat(' + Math.ceil(submenuItems.length / 2) + ', 1fr)';
|
||||
} else {
|
||||
document.body.classList.remove('is-dropdown-mega');
|
||||
}
|
||||
|
||||
submenuItems.forEach(function (child) {
|
||||
wrapper.appendChild(child);
|
||||
});
|
||||
|
||||
toggle.appendChild(wrapper);
|
||||
nav.appendChild(toggle);
|
||||
|
||||
document.body.classList.add('is-dropdown-loaded');
|
||||
|
||||
toggle.addEventListener('click', function () {
|
||||
document.body.classList.toggle('is-dropdown-open');
|
||||
});
|
||||
|
||||
window.addEventListener('click', function (e) {
|
||||
if (!toggle.contains(e.target) && document.body.classList.contains('is-dropdown-open')) {
|
||||
document.body.classList.remove('is-dropdown-open');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
imagesLoaded(logo, function () {
|
||||
makeDropdown();
|
||||
});
|
||||
|
||||
window.addEventListener('resize', function () {
|
||||
setTimeout(function () {
|
||||
nav.innerHTML = navHTML;
|
||||
makeDropdown();
|
||||
}, 1);
|
||||
});
|
||||
})();
|
7
assets/js/lib/imagesloaded.pkgd.min.js
vendored
Normal file
7
assets/js/lib/imagesloaded.pkgd.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
56
default.hbs
56
default.hbs
@ -18,51 +18,51 @@
|
||||
{{ghost_head}}
|
||||
|
||||
</head>
|
||||
<body class="{{body_class}}{{#match @custom.title_font "=" "Elegant serif"}} has-serif-title{{/match}}{{#match @custom.body_font "=" "Modern sans-serif"}} has-sans-body{{/match}}{{#if @custom.show_publication_cover}} has-cover{{/if}}{{#is "home"}}{{#unless @custom.show_logo_in_navigation}} no-logo{{/unless}}{{/is}}">
|
||||
<body class="{{body_class}} is-head-{{#match @custom.navigation_layout "Logo on cover"}}left-logo{{else match @custom.navigation_layout "Logo in the middle"}}middle-logo{{else}}stacked{{/match}}{{#match @custom.title_font "=" "Elegant serif"}} has-serif-title{{/match}}{{#match @custom.body_font "=" "Modern sans-serif"}} has-sans-body{{/match}}{{#if @custom.show_publication_cover}} has-cover{{/if}}">
|
||||
<div class="viewport">
|
||||
|
||||
<header id="gh-head" class="gh-head outer">
|
||||
<nav class="gh-head-inner inner">
|
||||
|
||||
<div class="gh-head-inner inner">
|
||||
<div class="gh-head-brand">
|
||||
<a class="gh-head-logo{{#unless @site.logo}} no-image{{/unless}}" href="{{@site.url}}">
|
||||
<a class="gh-head-logo" href="{{@site.url}}">
|
||||
{{#if @site.logo}}
|
||||
<img src="{{@site.logo}}" alt="{{@site.title}}" />
|
||||
<img src="{{@site.logo}}" alt="{{@site.title}}">
|
||||
{{else}}
|
||||
{{@site.title}}
|
||||
{{/if}}
|
||||
</a>
|
||||
<div class="gh-head-brand-wrapper">
|
||||
<button class="gh-search" data-ghost-search>{{> "icons/search"}}</button>
|
||||
<a class="gh-burger" role="button">
|
||||
<div class="gh-burger-box">
|
||||
<div class="gh-burger-inner"></div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<button class="gh-search gh-icon-btn" data-ghost-search>{{> "icons/search"}}</button>
|
||||
<button class="gh-burger"></button>
|
||||
</div>
|
||||
<div class="gh-head-menu">
|
||||
|
||||
<nav class="gh-head-menu">
|
||||
{{navigation}}
|
||||
</div>
|
||||
{{#unless @site.members_enabled}}
|
||||
{{#match @custom.navigation_layout "Stacked"}}
|
||||
<button class="gh-search gh-icon-btn" data-ghost-search>{{> "icons/search"}}</button>
|
||||
{{/match}}
|
||||
{{/unless}}
|
||||
</nav>
|
||||
|
||||
<div class="gh-head-actions">
|
||||
<button class="gh-search" data-ghost-search>{{> "icons/search"}}</button>
|
||||
<div class="gh-social">
|
||||
{{#if @site.facebook}}
|
||||
<a class="gh-social-link gh-social-facebook" href="{{facebook_url @site.facebook}}" title="Facebook" target="_blank" rel="noopener">{{> "icons/facebook"}}</a>
|
||||
{{/if}}
|
||||
{{#if @site.twitter}}
|
||||
<a class="gh-social-link gh-social-twitter" href="{{twitter_url @site.twitter}}" title="Twitter" target="_blank" rel="noopener">{{> "icons/twitter"}}</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{#if @site.members_enabled}}
|
||||
{{#unless @site.members_enabled}}
|
||||
{{^match @custom.navigation_layout "Stacked"}}
|
||||
<button class="gh-search gh-icon-btn" data-ghost-search>{{> "icons/search"}}</button>
|
||||
{{/match}}
|
||||
{{else}}
|
||||
<button class="gh-search gh-icon-btn" data-ghost-search>{{> "icons/search"}}</button>
|
||||
{{#unless @member}}
|
||||
<a class="gh-head-button" href="#/portal/signup" data-portal="signup">Subscribe</a>
|
||||
{{#unless @site.members_invite_only}}
|
||||
<a class="gh-head-button" href="#/portal/signup" data-portal="signup">Subscribe</a>
|
||||
{{else}}
|
||||
<a class="gh-head-button" href="#/portal/signin" data-portal="signin">Login</a>
|
||||
{{/unless}}
|
||||
{{else}}
|
||||
<a class="gh-head-button" href="#/portal/account" data-portal="account">Account</a>
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
{{/unless}}
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="site-content">
|
||||
|
@ -90,8 +90,9 @@ function zipper(done) {
|
||||
}
|
||||
|
||||
const cssWatcher = () => watch('assets/css/**', css);
|
||||
const jsWatcher = () => watch('assets/js/**', js);
|
||||
const hbsWatcher = () => watch(['*.hbs', 'partials/**/*.hbs'], hbs);
|
||||
const watcher = parallel(cssWatcher, hbsWatcher);
|
||||
const watcher = parallel(cssWatcher, jsWatcher, hbsWatcher);
|
||||
const build = series(css, js);
|
||||
|
||||
exports.build = build;
|
||||
|
@ -22,13 +22,13 @@ into the {body} of the default.hbs template --}}
|
||||
|
||||
{{#match @custom.header_style "!=" "Hidden"}}
|
||||
<div class="site-header-inner inner">
|
||||
{{#unless @custom.show_logo_in_navigation}}
|
||||
{{#match @custom.navigation_layout "Logo on cover"}}
|
||||
{{#if @site.logo}}
|
||||
<img class="site-logo" src="{{@site.logo}}" alt="{{@site.title}}">
|
||||
{{else}}
|
||||
<h1 class="site-title">{{@site.title}}</h1>
|
||||
{{/if}}
|
||||
{{/unless}}
|
||||
{{/match}}
|
||||
{{#if @site.description}}
|
||||
<p class="site-description">{{@site.description}}</p>
|
||||
{{/if}}
|
||||
|
20
package.json
20
package.json
@ -2,7 +2,7 @@
|
||||
"name": "casper",
|
||||
"description": "A clean, minimal default theme for the Ghost publishing platform",
|
||||
"demo": "https://demo.ghost.io",
|
||||
"version": "5.2.2",
|
||||
"version": "5.4.1",
|
||||
"engines": {
|
||||
"ghost": ">=5.0.0"
|
||||
},
|
||||
@ -45,11 +45,11 @@
|
||||
"bugs": "https://github.com/TryGhost/Casper/issues",
|
||||
"contributors": "https://github.com/TryGhost/Casper/graphs/contributors",
|
||||
"devDependencies": {
|
||||
"@tryghost/release-utils": "0.8.0",
|
||||
"@tryghost/release-utils": "0.8.1",
|
||||
"autoprefixer": "10.4.7",
|
||||
"beeper": "2.1.0",
|
||||
"cssnano": "5.1.12",
|
||||
"gscan": "4.31.2",
|
||||
"gscan": "4.34.0",
|
||||
"gulp": "4.0.2",
|
||||
"gulp-concat": "2.6.1",
|
||||
"gulp-livereload": "4.0.2",
|
||||
@ -89,6 +89,15 @@
|
||||
},
|
||||
"card_assets": true,
|
||||
"custom": {
|
||||
"navigation_layout": {
|
||||
"type": "select",
|
||||
"options": [
|
||||
"Logo on cover",
|
||||
"Logo in the middle",
|
||||
"Stacked"
|
||||
],
|
||||
"default": "Logo on cover"
|
||||
},
|
||||
"title_font": {
|
||||
"type": "select",
|
||||
"options": [
|
||||
@ -120,11 +129,6 @@
|
||||
"default": "Center aligned",
|
||||
"group": "homepage"
|
||||
},
|
||||
"show_logo_in_navigation": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"group": "homepage"
|
||||
},
|
||||
"feed_layout": {
|
||||
"type": "select",
|
||||
"options": [
|
||||
|
@ -66,9 +66,11 @@ which templates loop over to generate a list of posts. --}}
|
||||
<footer class="post-card-meta">
|
||||
<time class="post-card-meta-date" datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time>
|
||||
{{#if reading_time}}
|
||||
<span class="sep">—</span>
|
||||
<span class="post-card-meta-length">{{reading_time}}</span>
|
||||
{{/if}}
|
||||
{{#if @site.comments_enabled}}
|
||||
{{comment_count}}
|
||||
{{/if}}
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
|
14
post.hbs
14
post.hbs
@ -86,11 +86,11 @@ into the {body} tag of the default.hbs template --}}
|
||||
{{content}}
|
||||
</section>
|
||||
|
||||
{{!--
|
||||
<section class="article-comments gh-canvas">
|
||||
If you want to embed comments, this is a good place to paste your code!
|
||||
</section>
|
||||
--}}
|
||||
{{#if comments}}
|
||||
<section class="article-comments gh-canvas">
|
||||
{{comments}}
|
||||
</section>
|
||||
{{/if}}
|
||||
|
||||
</article>
|
||||
</main>
|
||||
@ -98,6 +98,7 @@ into the {body} tag of the default.hbs template --}}
|
||||
{{!-- A signup call to action is displayed here, unless viewed as a logged-in member --}}
|
||||
{{#if @site.members_enabled}}
|
||||
{{#unless @member}}
|
||||
{{#unless @site.comments_enabled}}
|
||||
{{#if access}}
|
||||
<section class="footer-cta outer">
|
||||
<div class="inner">
|
||||
@ -106,12 +107,11 @@ into the {body} tag of the default.hbs template --}}
|
||||
<div class="footer-cta-input">Enter your email</div>
|
||||
<span>Subscribe</span>
|
||||
</a>
|
||||
{{!-- ^ This looks like a form element, but it's just a link to Portal,
|
||||
making the form validation and submission much simpler. --}}
|
||||
</div>
|
||||
</section>
|
||||
{{/if}}
|
||||
{{/unless}}
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
|
||||
|
||||
|
135
yarn.lock
135
yarn.lock
@ -27,60 +27,50 @@
|
||||
tslib "^2.4.0"
|
||||
undici "^5.1.1"
|
||||
|
||||
"@sentry/core@6.19.7":
|
||||
version "6.19.7"
|
||||
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-6.19.7.tgz#156aaa56dd7fad8c89c145be6ad7a4f7209f9785"
|
||||
integrity sha512-tOfZ/umqB2AcHPGbIrsFLcvApdTm9ggpi/kQZFkej7kMphjT+SGBiQfYtjyg9jcRW+ilAR4JXC9BGKsdEQ+8Vw==
|
||||
"@sentry/core@7.8.1":
|
||||
version "7.8.1"
|
||||
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-7.8.1.tgz#d11ba7c97766d1e47edf697dbfd47fe4041477d9"
|
||||
integrity sha512-PRivbdIzApi/gSixAxozhOBTylSVdw/9VxaStYHd7JJGhs36KXkV8ylpbCmYO4ap7/Ue9/slzwpvPOJJzmzAgA==
|
||||
dependencies:
|
||||
"@sentry/hub" "6.19.7"
|
||||
"@sentry/minimal" "6.19.7"
|
||||
"@sentry/types" "6.19.7"
|
||||
"@sentry/utils" "6.19.7"
|
||||
"@sentry/hub" "7.8.1"
|
||||
"@sentry/types" "7.8.1"
|
||||
"@sentry/utils" "7.8.1"
|
||||
tslib "^1.9.3"
|
||||
|
||||
"@sentry/hub@6.19.7":
|
||||
version "6.19.7"
|
||||
resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-6.19.7.tgz#58ad7776bbd31e9596a8ec46365b45cd8b9cfd11"
|
||||
integrity sha512-y3OtbYFAqKHCWezF0EGGr5lcyI2KbaXW2Ik7Xp8Mu9TxbSTuwTe4rTntwg8ngPjUQU3SUHzgjqVB8qjiGqFXCA==
|
||||
"@sentry/hub@7.8.1":
|
||||
version "7.8.1"
|
||||
resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-7.8.1.tgz#bc255c6b8e99a3333e737f189c984c715df504aa"
|
||||
integrity sha512-AxwyGyS9Lp4XsURu4t8opa5vZ+NAB6I/n+B/Uix3YZea9z8jdWYAu9vsXSizOrtxekc/i7ZN4bnlNgXVHix0iA==
|
||||
dependencies:
|
||||
"@sentry/types" "6.19.7"
|
||||
"@sentry/utils" "6.19.7"
|
||||
"@sentry/types" "7.8.1"
|
||||
"@sentry/utils" "7.8.1"
|
||||
tslib "^1.9.3"
|
||||
|
||||
"@sentry/minimal@6.19.7":
|
||||
version "6.19.7"
|
||||
resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-6.19.7.tgz#b3ee46d6abef9ef3dd4837ebcb6bdfd01b9aa7b4"
|
||||
integrity sha512-wcYmSJOdvk6VAPx8IcmZgN08XTXRwRtB1aOLZm+MVHjIZIhHoBGZJYTVQS/BWjldsamj2cX3YGbGXNunaCfYJQ==
|
||||
"@sentry/node@7.8.1":
|
||||
version "7.8.1"
|
||||
resolved "https://registry.yarnpkg.com/@sentry/node/-/node-7.8.1.tgz#9dca7afee2d9ad38fd9756e13439ce09d2f01934"
|
||||
integrity sha512-gQHeIip7QudeK1YWrLyZPc7nfirhbVDJ3gfCfL9mLT724Sk8gKd1kcpU1niI+wwIwY7SOpJqX4Oh/F0lRKjzDQ==
|
||||
dependencies:
|
||||
"@sentry/hub" "6.19.7"
|
||||
"@sentry/types" "6.19.7"
|
||||
tslib "^1.9.3"
|
||||
|
||||
"@sentry/node@6.19.7":
|
||||
version "6.19.7"
|
||||
resolved "https://registry.yarnpkg.com/@sentry/node/-/node-6.19.7.tgz#32963b36b48daebbd559e6f13b1deb2415448592"
|
||||
integrity sha512-gtmRC4dAXKODMpHXKfrkfvyBL3cI8y64vEi3fDD046uqYcrWdgoQsffuBbxMAizc6Ez1ia+f0Flue6p15Qaltg==
|
||||
dependencies:
|
||||
"@sentry/core" "6.19.7"
|
||||
"@sentry/hub" "6.19.7"
|
||||
"@sentry/types" "6.19.7"
|
||||
"@sentry/utils" "6.19.7"
|
||||
"@sentry/core" "7.8.1"
|
||||
"@sentry/hub" "7.8.1"
|
||||
"@sentry/types" "7.8.1"
|
||||
"@sentry/utils" "7.8.1"
|
||||
cookie "^0.4.1"
|
||||
https-proxy-agent "^5.0.0"
|
||||
lru_map "^0.3.3"
|
||||
tslib "^1.9.3"
|
||||
|
||||
"@sentry/types@6.19.7":
|
||||
version "6.19.7"
|
||||
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-6.19.7.tgz#c6b337912e588083fc2896eb012526cf7cfec7c7"
|
||||
integrity sha512-jH84pDYE+hHIbVnab3Hr+ZXr1v8QABfhx39KknxqKWr2l0oEItzepV0URvbEhB446lk/S/59230dlUUIBGsXbg==
|
||||
"@sentry/types@7.8.1":
|
||||
version "7.8.1"
|
||||
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-7.8.1.tgz#c00a1ed02ad8f69d3b94fcda91e2d24e0bb3492a"
|
||||
integrity sha512-LOoaeBXVI23Kh5SpIbxSRiJ6+eYZXVOFyPFH1T1mGBj95LPwRMqOdg0lUTmFJGBKbDGDB/YNjNnu1kQ7GrXBXw==
|
||||
|
||||
"@sentry/utils@6.19.7":
|
||||
version "6.19.7"
|
||||
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-6.19.7.tgz#6edd739f8185fd71afe49cbe351c1bbf5e7b7c79"
|
||||
integrity sha512-z95ECmE3i9pbWoXQrD/7PgkBAzJYR+iXtPuTkpBjDKs86O3mT+PXOT3BAn79w2wkn7/i3vOGD2xVr1uiMl26dA==
|
||||
"@sentry/utils@7.8.1":
|
||||
version "7.8.1"
|
||||
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-7.8.1.tgz#5d8a7e1c8d834de608ad834cf648d5291c62ba39"
|
||||
integrity sha512-isUZjft4HWTOk1Z58KFJ/zzXeFtIJgP82CkYQlW464ZR2WCqPHYlXXXRWZpOHOfMnrf+gWeX9WAGS9rTAdhiSg==
|
||||
dependencies:
|
||||
"@sentry/types" "6.19.7"
|
||||
"@sentry/types" "7.8.1"
|
||||
tslib "^1.9.3"
|
||||
|
||||
"@sindresorhus/is@^0.14.0":
|
||||
@ -161,10 +151,10 @@
|
||||
json-stringify-safe "^5.0.1"
|
||||
lodash "^4.17.21"
|
||||
|
||||
"@tryghost/pretty-cli@1.2.28":
|
||||
version "1.2.28"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/pretty-cli/-/pretty-cli-1.2.28.tgz#11d4644b6d2ae4759a7015b66c3949895d92230e"
|
||||
integrity sha512-2YWNklw2VLcCPtBY0lErzCqejq0mE6w7flQhdZ9WJFm8iXhgUcgJggtr+4Vy9+b2cgobTJyO4xF7IoqSr8ytxg==
|
||||
"@tryghost/pretty-cli@1.2.29":
|
||||
version "1.2.29"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/pretty-cli/-/pretty-cli-1.2.29.tgz#1484e0aae195f7766d38807e00d5b4094cfb9172"
|
||||
integrity sha512-J+rA4D+VFCVG/hBZaPqaD5wXp9A+6TNYEqIYPpREvLpOL+fD5bP4W+xiYHEQa4aQoq0MNm5X7bXmtgxPFfdX+g==
|
||||
dependencies:
|
||||
chalk "^4.1.0"
|
||||
sywac "^1.3.0"
|
||||
@ -178,10 +168,10 @@
|
||||
moment "^2.29.1"
|
||||
prettyjson "^1.2.5"
|
||||
|
||||
"@tryghost/release-utils@0.8.0":
|
||||
version "0.8.0"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/release-utils/-/release-utils-0.8.0.tgz#2e017e0ed8326252becd9085f97d1dce61984bd6"
|
||||
integrity sha512-3KbxucGpT5N3km5pYBUAJSEhXkOWkb6ABJ7PU0UtOqfmgQRprenAxf1rcSuQK0K/85ezXamVFNkfjZcy3355Fw==
|
||||
"@tryghost/release-utils@0.8.1":
|
||||
version "0.8.1"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/release-utils/-/release-utils-0.8.1.tgz#6565e48d903b6b727bd6c8326a345a3a2fce71f1"
|
||||
integrity sha512-smSspchAfNW7KL8ERIR1F4CUS2/eB0Ajt6X4Wbx0b4bJ4crJeFAn3wFHM9c20AhNdRacQ3W2PtPO/Sq9jcx1Hg==
|
||||
dependencies:
|
||||
"@tryghost/errors" "^1.2.1"
|
||||
bluebird "^3.7.2"
|
||||
@ -244,10 +234,10 @@
|
||||
"@tryghost/root-utils" "^0.3.15"
|
||||
semver "^7.3.5"
|
||||
|
||||
"@tryghost/zip@1.1.26":
|
||||
version "1.1.26"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/zip/-/zip-1.1.26.tgz#5e6bafd8157d89ce63d034da477fd4c0511f28c7"
|
||||
integrity sha512-Gbxjfk2mnd6ae2muIHxk5hquKWQRMXMVrdiXSvb6dm+PmhLw7pMEOXXydvR7hPM3gEQQodYZt652iK/KtsfdgA==
|
||||
"@tryghost/zip@1.1.27":
|
||||
version "1.1.27"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/zip/-/zip-1.1.27.tgz#604ae4c83dd6eabf61475cc83c6b558233cd0dfe"
|
||||
integrity sha512-PokFblvBm90vtwsDJDpwYJ72lDTVj3Ig3epox035R75Dmln0Vl4wjoaeMKOv9xj3RjmXUpry/fINNMEiBX2mNg==
|
||||
dependencies:
|
||||
archiver "^5.0.0"
|
||||
bluebird "^3.7.2"
|
||||
@ -2069,17 +2059,16 @@ glob-watcher@^5.0.3:
|
||||
normalize-path "^3.0.0"
|
||||
object.defaults "^1.1.0"
|
||||
|
||||
glob@7.2.3, glob@^7.0.3, glob@^7.1.1, glob@^7.1.3, glob@^7.1.4:
|
||||
version "7.2.3"
|
||||
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
|
||||
integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==
|
||||
glob@8.0.3:
|
||||
version "8.0.3"
|
||||
resolved "https://registry.yarnpkg.com/glob/-/glob-8.0.3.tgz#415c6eb2deed9e502c68fa44a272e6da6eeca42e"
|
||||
integrity sha512-ull455NHSHI/Y1FqGaaYFaLGkNMMJbavMrEGFXG/PGrg6y7sutWHUHrz6gy6WEBH6akM1M414dWKCNs+IhKdiQ==
|
||||
dependencies:
|
||||
fs.realpath "^1.0.0"
|
||||
inflight "^1.0.4"
|
||||
inherits "2"
|
||||
minimatch "^3.1.1"
|
||||
minimatch "^5.0.1"
|
||||
once "^1.3.0"
|
||||
path-is-absolute "^1.0.0"
|
||||
|
||||
glob@^6.0.1:
|
||||
version "6.0.4"
|
||||
@ -2092,6 +2081,18 @@ glob@^6.0.1:
|
||||
once "^1.3.0"
|
||||
path-is-absolute "^1.0.0"
|
||||
|
||||
glob@^7.0.3, glob@^7.1.1, glob@^7.1.3, glob@^7.1.4:
|
||||
version "7.2.3"
|
||||
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
|
||||
integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==
|
||||
dependencies:
|
||||
fs.realpath "^1.0.0"
|
||||
inflight "^1.0.4"
|
||||
inherits "2"
|
||||
minimatch "^3.1.1"
|
||||
once "^1.3.0"
|
||||
path-is-absolute "^1.0.0"
|
||||
|
||||
global-modules@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-1.0.0.tgz#6d770f0eb523ac78164d72b5e71a8877265cc3ea"
|
||||
@ -2152,26 +2153,26 @@ 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.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb"
|
||||
integrity sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==
|
||||
|
||||
gscan@4.31.2:
|
||||
version "4.31.2"
|
||||
resolved "https://registry.yarnpkg.com/gscan/-/gscan-4.31.2.tgz#d8dd1f156f7a59f655625c3422cfd89bb42df8ac"
|
||||
integrity sha512-NuFcXRbSUSWOl6FuGPKT24dcepI/oMiUF6EGzMEGbY5ndl6Ba/BZrK9dT7hMHeyaJCn+T4fpxTPQqfXHkM2qcg==
|
||||
gscan@4.34.0:
|
||||
version "4.34.0"
|
||||
resolved "https://registry.yarnpkg.com/gscan/-/gscan-4.34.0.tgz#1835faf795163184fce0aba43b56a4374f75134c"
|
||||
integrity sha512-uITKioTZHoWatKKlV+yI963joF8+shUwaqM+A7DJng5H251YTfrW3cAiCrHyedGhJckrN7XPeEnbpNbTDoWCiw==
|
||||
dependencies:
|
||||
"@sentry/node" "6.19.7"
|
||||
"@sentry/node" "7.8.1"
|
||||
"@tryghost/config" "0.2.9"
|
||||
"@tryghost/debug" "0.1.17"
|
||||
"@tryghost/errors" "1.2.14"
|
||||
"@tryghost/logging" "2.2.3"
|
||||
"@tryghost/pretty-cli" "1.2.28"
|
||||
"@tryghost/pretty-cli" "1.2.29"
|
||||
"@tryghost/server" "0.1.21"
|
||||
"@tryghost/zip" "1.1.26"
|
||||
"@tryghost/zip" "1.1.27"
|
||||
bluebird "3.7.2"
|
||||
chalk "4.1.2"
|
||||
common-tags "1.8.2"
|
||||
express "4.18.1"
|
||||
express-hbs "2.4.0"
|
||||
fs-extra "10.1.0"
|
||||
glob "7.2.3"
|
||||
glob "8.0.3"
|
||||
lodash "4.17.21"
|
||||
multer "1.4.4"
|
||||
pluralize "8.0.0"
|
||||
@ -3113,7 +3114,7 @@ mimic-response@^1.0.0, mimic-response@^1.0.1:
|
||||
dependencies:
|
||||
brace-expansion "^1.1.7"
|
||||
|
||||
minimatch@^5.1.0:
|
||||
minimatch@^5.0.1, minimatch@^5.1.0:
|
||||
version "5.1.0"
|
||||
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.0.tgz#1717b464f4971b144f6aabe8f2d0b8e4511e09c7"
|
||||
integrity sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg==
|
||||
|
Reference in New Issue
Block a user