mirror of
https://github.com/spaytac/Casper.git
synced 2026-01-22 01:04:57 +00:00
Compare commits
68 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4710ac85d6 | |||
| 92bd3eb4a7 | |||
| 0bd5d16246 | |||
| bae9f5f49b | |||
|
|
592226b75e | ||
|
|
9f9348544e | ||
|
|
840b1b9c50 | ||
|
|
cc3fca004f | ||
|
|
f8b34f9786 | ||
|
|
b9f5d591d3 | ||
|
|
a60e3e976a | ||
|
|
d9c9390e17 | ||
|
|
84f201d293 | ||
|
|
c7fdfb7479 | ||
|
|
d3483498d4 | ||
|
|
4ae190c1a6 | ||
|
|
22c83f9128 | ||
|
|
10fd2f3a1c | ||
|
|
b1a10873ff | ||
|
|
0e76b5abef | ||
|
|
d75ffc78ac | ||
|
|
fa76f77006 | ||
|
|
dda827ded3 | ||
|
|
bdf150658e | ||
|
|
2fafe722d1 | ||
|
|
0721600075 | ||
|
|
a18367200f | ||
|
|
294b1e30e5 | ||
|
|
aa8ca0794b | ||
| 6fbaffb998 | |||
| 01b04e59da | |||
| 5ba628d1a3 | |||
| 6abe0a1e25 | |||
| 2fa6b68cc3 | |||
|
|
ba0b3d08cc | ||
|
|
50d5727f77 | ||
|
|
23f7c30365 | ||
|
|
8ff3c6fcf1 | ||
| 78b58e47dd | |||
| 14c5d004f4 | |||
| d1595f421a | |||
|
|
5c7fb39df9 | ||
|
|
4851606d9d | ||
|
|
afca9cb27e | ||
|
|
b56bec2cb8 | ||
| ed555444ff | |||
| c9ff48c131 | |||
| 34493249e2 | |||
| 4e27a49fcf | |||
| 92de638579 | |||
| 37d5139f22 | |||
| 210f2fa112 | |||
| a462835afc | |||
|
|
0c4164c5bd | ||
|
|
e6326eadf9 | ||
|
|
3ed94d68fa | ||
| c1571e5a4e | |||
| db6a864b90 | |||
| 3e4aba10fe | |||
| 88bdc1fc4b | |||
| 50991c37ca | |||
|
|
505503a63b | ||
|
|
bd3fc7c2af | ||
|
|
5e0f765852 | ||
|
|
4293dab0a7 | ||
|
|
f00918589f | ||
|
|
0200889148 | ||
|
|
248c122f86 |
44
.github/workflows/yarn-gulp.yml
vendored
Normal file
44
.github/workflows/yarn-gulp.yml
vendored
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
name: NodeJS with Gulp
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "main" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "main" ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [18.x]
|
||||||
|
# node-version: [14.x, 16.x, 18.x]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
cache: 'yarn'
|
||||||
|
- name: Install dependencies
|
||||||
|
run: yarn
|
||||||
|
- name: Theme Test
|
||||||
|
run: yarn test
|
||||||
|
- name: Build & zip package
|
||||||
|
run: yarn zip
|
||||||
|
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [build]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: Create release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
with:
|
||||||
|
files: dist/casper-aytac.zip
|
||||||
|
draft: true
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GST_TOKEN }}
|
||||||
2
LICENSE
2
LICENSE
@ -1,4 +1,4 @@
|
|||||||
Copyright (c) 2013-2022 Ghost Foundation
|
Copyright (c) 2013-2023 Ghost Foundation
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person
|
Permission is hereby granted, free of charge, to any person
|
||||||
obtaining a copy of this software and associated documentation
|
obtaining a copy of this software and associated documentation
|
||||||
|
|||||||
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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -89,17 +89,10 @@ video {
|
|||||||
body {
|
body {
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ol,
|
|
||||||
ul {
|
|
||||||
list-style: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
blockquote,
|
blockquote,
|
||||||
q {
|
q {
|
||||||
quotes: none;
|
quotes: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote:before,
|
blockquote:before,
|
||||||
blockquote:after,
|
blockquote:after,
|
||||||
q:before,
|
q:before,
|
||||||
@ -107,18 +100,15 @@ q:after {
|
|||||||
content: "";
|
content: "";
|
||||||
content: none;
|
content: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
display: block;
|
display: block;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
@ -126,42 +116,34 @@ html {
|
|||||||
-ms-text-size-adjust: 100%;
|
-ms-text-size-adjust: 100%;
|
||||||
-webkit-text-size-adjust: 100%;
|
-webkit-text-size-adjust: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
*,
|
*,
|
||||||
*:before,
|
*:before,
|
||||||
*:after {
|
*:after {
|
||||||
box-sizing: inherit;
|
box-sizing: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:active,
|
a:active,
|
||||||
a:hover {
|
a:hover {
|
||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
b,
|
b,
|
||||||
strong {
|
strong {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
i,
|
i,
|
||||||
em,
|
em,
|
||||||
dfn {
|
dfn {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
margin: 0.67em 0;
|
margin: 0.67em 0;
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
small {
|
small {
|
||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub,
|
sub,
|
||||||
sup {
|
sup {
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -169,27 +151,21 @@ sup {
|
|||||||
line-height: 0;
|
line-height: 0;
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
}
|
}
|
||||||
|
|
||||||
sup {
|
sup {
|
||||||
top: -0.5em;
|
top: -0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub {
|
sub {
|
||||||
bottom: -0.25em;
|
bottom: -0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
svg:not(:root) {
|
svg:not(:root) {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
mark {
|
mark {
|
||||||
background-color: #fdffb6;
|
background-color: #fdffb6;
|
||||||
}
|
}
|
||||||
|
|
||||||
code,
|
code,
|
||||||
kbd,
|
kbd,
|
||||||
pre,
|
pre,
|
||||||
@ -197,7 +173,6 @@ samp {
|
|||||||
font-family: monospace, monospace;
|
font-family: monospace, monospace;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
kbd {
|
kbd {
|
||||||
padding: 3px 5px;
|
padding: 3px 5px;
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
@ -207,109 +182,81 @@ kbd {
|
|||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
box-shadow: inset 0 -1px 0 rgba(124, 139, 154, 0.25);
|
box-shadow: inset 0 -1px 0 rgba(124, 139, 154, 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
kbd {
|
kbd {
|
||||||
font-size: 1.3rem;
|
font-size: 1.3rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
button,
|
button,
|
||||||
input,
|
input,
|
||||||
optgroup,
|
optgroup,
|
||||||
select,
|
select,
|
||||||
textarea {
|
textarea {
|
||||||
margin: 0;
|
margin: 0; /* 3 */
|
||||||
/* 3 */
|
color: inherit; /* 1 */
|
||||||
color: inherit;
|
font: inherit; /* 2 */
|
||||||
/* 1 */
|
|
||||||
font: inherit;
|
|
||||||
/* 2 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
button,
|
button,
|
||||||
select {
|
select {
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
button,
|
button,
|
||||||
html input[type="button"],
|
html input[type="button"],
|
||||||
/* 1 */
|
/* 1 */
|
||||||
input[type="reset"],
|
input[type="reset"],
|
||||||
input[type="submit"] {
|
input[type="submit"] {
|
||||||
cursor: pointer;
|
cursor: pointer; /* 3 */
|
||||||
/* 3 */
|
|
||||||
|
|
||||||
-webkit-appearance: button;
|
-webkit-appearance: button; /* 2 */
|
||||||
/* 2 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
button[disabled],
|
button[disabled],
|
||||||
html input[disabled] {
|
html input[disabled] {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
button::-moz-focus-inner,
|
button::-moz-focus-inner,
|
||||||
input::-moz-focus-inner {
|
input::-moz-focus-inner {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
line-height: normal;
|
line-height: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
input:focus {
|
input:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="checkbox"],
|
input[type="checkbox"],
|
||||||
input[type="radio"] {
|
input[type="radio"] {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box; /* 1 */
|
||||||
/* 1 */
|
padding: 0; /* 2 */
|
||||||
padding: 0;
|
|
||||||
/* 2 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="number"]::-webkit-inner-spin-button,
|
input[type="number"]::-webkit-inner-spin-button,
|
||||||
input[type="number"]::-webkit-outer-spin-button {
|
input[type="number"]::-webkit-outer-spin-button {
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="search"] {
|
input[type="search"] {
|
||||||
box-sizing: content-box;
|
box-sizing: content-box; /* 2 */
|
||||||
/* 2 */
|
|
||||||
|
|
||||||
-webkit-appearance: textfield;
|
-webkit-appearance: textfield; /* 1 */
|
||||||
/* 1 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="search"]::-webkit-search-cancel-button,
|
input[type="search"]::-webkit-search-cancel-button,
|
||||||
input[type="search"]::-webkit-search-decoration {
|
input[type="search"]::-webkit-search-decoration {
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
legend {
|
legend {
|
||||||
padding: 0;
|
padding: 0; /* 2 */
|
||||||
/* 2 */
|
border: 0; /* 1 */
|
||||||
border: 0;
|
|
||||||
/* 1 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
|
|
||||||
td,
|
td,
|
||||||
th {
|
th {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@ -324,7 +271,6 @@ html {
|
|||||||
|
|
||||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
color: var(--color-darkgrey);
|
color: var(--color-darkgrey);
|
||||||
font-family: var(--font-sans);
|
font-family: var(--font-sans);
|
||||||
@ -415,7 +361,7 @@ li {
|
|||||||
line-height: 1.6em;
|
line-height: 1.6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
li+li {
|
li + li {
|
||||||
margin-top: 0.5em;
|
margin-top: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -445,7 +391,6 @@ blockquote small {
|
|||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Quotation marks */
|
/* Quotation marks */
|
||||||
blockquote small:before {
|
blockquote small:before {
|
||||||
content: "\2014 \00A0";
|
content: "\2014 \00A0";
|
||||||
@ -454,7 +399,6 @@ blockquote small:before {
|
|||||||
blockquote cite {
|
blockquote cite {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote cite a {
|
blockquote cite a {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
@ -483,7 +427,6 @@ h1 {
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
letter-spacing: -0.015em;
|
letter-spacing: -0.015em;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 2.8rem;
|
font-size: 2.8rem;
|
||||||
@ -495,7 +438,6 @@ h2 {
|
|||||||
font-size: 2.8rem;
|
font-size: 2.8rem;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 2.3rem;
|
font-size: 2.3rem;
|
||||||
@ -507,7 +449,6 @@ h3 {
|
|||||||
font-size: 2.4rem;
|
font-size: 2.4rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
h3 {
|
h3 {
|
||||||
font-size: 1.7rem;
|
font-size: 1.7rem;
|
||||||
@ -518,7 +459,6 @@ h4 {
|
|||||||
margin: 1.5em 0 0.5em 0;
|
margin: 1.5em 0 0.5em 0;
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
h4 {
|
h4 {
|
||||||
font-size: 1.7rem;
|
font-size: 1.7rem;
|
||||||
@ -534,188 +474,3 @@ h6 {
|
|||||||
margin: 1.5em 0 0.5em 0;
|
margin: 1.5em 0 0.5em 0;
|
||||||
font-size: 1.8rem;
|
font-size: 1.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-tag-content {
|
|
||||||
padding: max(8vmin,40px) max(4vmin,20px) max(8vmin,64px);
|
|
||||||
position: relative;
|
|
||||||
margin: 0 auto;
|
|
||||||
max-width: 1200px;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-tag-grid {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
|
|
||||||
column-gap: 30px;
|
|
||||||
row-gap: 30px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 1080px) {
|
|
||||||
.post-tag-grid {
|
|
||||||
column-gap: 30px;
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
||||||
row-gap: 30px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
|
||||||
.site-footer .post-tag-content {
|
|
||||||
max-width: 500px;
|
|
||||||
grid-template-columns: 1fr;
|
|
||||||
grid-gap: 0;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.site-footer .copyright,
|
|
||||||
.site-footer .copyright a {
|
|
||||||
color: #fff;
|
|
||||||
font-size: 1.5rem;
|
|
||||||
}
|
|
||||||
.site-footer .copyright {
|
|
||||||
margin-bottom: 16px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 700px) {
|
|
||||||
.post-tag-grid {
|
|
||||||
column-gap: 30px;
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: minmax(0,1fr);
|
|
||||||
row-gap: 30px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-tag-grid-item {
|
|
||||||
overflow: hidden;
|
|
||||||
text-align:center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-tag-grid-item-svg{
|
|
||||||
width: 320px;
|
|
||||||
height: 180px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-tag-grid-item-svg-first{
|
|
||||||
height: 180px;
|
|
||||||
width: 80px;
|
|
||||||
fill: var(--ghost-accent-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-tag-grid-item-svg-first-obj{
|
|
||||||
height: 28px;
|
|
||||||
width: 80px;
|
|
||||||
x:0;
|
|
||||||
y:80;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-tag-grid-item-svg-first-obj-text{
|
|
||||||
color: white;
|
|
||||||
font-size: 32px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-tag-grid-item-svg-second, .post-tag-grid-item-svg-second-obj{
|
|
||||||
height: 180px;
|
|
||||||
width: 240px;
|
|
||||||
x: 80;
|
|
||||||
y: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-tag-grid-item-svg-second-obj-inner{
|
|
||||||
padding: max(0.5vmin,2px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-tag-grid-item-svg-second{
|
|
||||||
fill: black;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-tag-grid-item-svg-second-obj, .post-tag-grid-item-svg-second-obj-description{
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-tag-grid-item h2 {
|
|
||||||
font-size: 28px;
|
|
||||||
margin: 0.3em 0;
|
|
||||||
position: relative;
|
|
||||||
text-align: center;
|
|
||||||
text-transform: uppercase;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-tag-grid-item-subtext:after,
|
|
||||||
.post-tag-grid-item-subtext:before {
|
|
||||||
content: " ";
|
|
||||||
height: 1px;
|
|
||||||
background: #000;
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-tag-grid-item-subtext:after {
|
|
||||||
margin-left: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-tag-grid-item-subtext:before {
|
|
||||||
margin-right: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-tags {
|
|
||||||
margin: 1.2em 0em -1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-tags a {
|
|
||||||
border-bottom: none !important;
|
|
||||||
font-size: small;
|
|
||||||
margin: 0 1% 0 0
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-tags a .post-tag-title::before {
|
|
||||||
content: '#'
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-tags a .post-tag-title {
|
|
||||||
margin-top: 2%
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-tags a .post-tag-title:hover {
|
|
||||||
background-color: var(--color-background-hover);
|
|
||||||
color: var(--ghost-main-color) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 980px) {
|
|
||||||
article .post-tags a .post-tag-title {
|
|
||||||
margin-top: 2%
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-tags .post-tags-box-label {
|
|
||||||
font-size: 1rem;
|
|
||||||
line-height: 1em;
|
|
||||||
font-weight: 600;
|
|
||||||
text-transform: uppercase;
|
|
||||||
color: --color-content-light
|
|
||||||
}
|
|
||||||
|
|
||||||
.article-share{
|
|
||||||
margin: 6vmin 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.article-share ul {
|
|
||||||
list-style: none;
|
|
||||||
padding-left: 0em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.article-share li {
|
|
||||||
display: inline;
|
|
||||||
padding-left: 0em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.article-share li+li {
|
|
||||||
padding-left: 0.3em;
|
|
||||||
}
|
|
||||||
|
|
||||||
a.social-share-link svg {
|
|
||||||
height: 32px;
|
|
||||||
width: 32px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-card-title-custom{
|
|
||||||
text-transform: uppercase;
|
|
||||||
}
|
|
||||||
@ -6,20 +6,19 @@ production stylesheet in assets/built/screen.css
|
|||||||
|
|
||||||
1. Global Styles
|
1. Global Styles
|
||||||
2. Layout
|
2. Layout
|
||||||
3. Special Templates
|
3. Site Header
|
||||||
4. Site Header
|
4. Site Navigation
|
||||||
5. Site Navigation
|
5. Post Feed
|
||||||
6. Post Feed
|
6. Single Post
|
||||||
7. Single Post
|
6.1. Post Byline
|
||||||
7.1. Post Byline
|
6.2. Subscribe
|
||||||
7.2. Members Subscribe Form
|
6.3. Read More
|
||||||
7.4. Related Posts
|
6.4. Comments
|
||||||
7.5. Koenig Styles
|
7. Author Template
|
||||||
7.6 Comments
|
8. Tag Template
|
||||||
8. Author Template
|
|
||||||
9. Error Template
|
9. Error Template
|
||||||
11. Site Footer
|
10. Site Footer
|
||||||
12. Dark Mode
|
11. Dark Mode
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -64,6 +63,7 @@ production stylesheet in assets/built/screen.css
|
|||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
.viewport {
|
.viewport {
|
||||||
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
@ -87,7 +87,7 @@ production stylesheet in assets/built/screen.css
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* 4. Site Header
|
/* 3. Site Header
|
||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
.site-header {
|
.site-header {
|
||||||
@ -258,7 +258,7 @@ production stylesheet in assets/built/screen.css
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* 5. Site Navigation
|
/* 4. Site Navigation
|
||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
.gh-head {
|
.gh-head {
|
||||||
@ -266,6 +266,7 @@ production stylesheet in assets/built/screen.css
|
|||||||
font-size: 1.6rem;
|
font-size: 1.6rem;
|
||||||
line-height: 1.3em;
|
line-height: 1.3em;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
z-index: 150;
|
||||||
}
|
}
|
||||||
|
|
||||||
.has-cover:not(.home-template) .gh-head {
|
.has-cover:not(.home-template) .gh-head {
|
||||||
@ -834,7 +835,7 @@ production stylesheet in assets/built/screen.css
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* 6. Post Feed
|
/* 5. Post Feed
|
||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
.post-feed {
|
.post-feed {
|
||||||
@ -1024,6 +1025,11 @@ production stylesheet in assets/built/screen.css
|
|||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:is(.tag-template, .author-template) .post-card-large .post-card-excerpt {
|
||||||
|
display: block;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.post-card-meta {
|
.post-card-meta {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -1208,24 +1214,23 @@ html.no-infinite-scroll .pagination {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* 7. Single Post
|
/* 6. Single Post
|
||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
.article {
|
.article {
|
||||||
padding: max(8vmin, 40px) 0 max(8vmin, 64px);
|
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-template .article {
|
.post-template .article {
|
||||||
padding-top: max(12vmin, 64px);
|
padding: max(8vmin, 40px) 0 max(8vmin, 64px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.article-header {
|
.post-template .article-header {
|
||||||
padding: 0 0 max(6.4vmin, 40px) 0;
|
padding: 0 0 max(6.4vmin, 40px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-template .article-header {
|
.page-template .article-header {
|
||||||
padding-bottom: max(3.2vmin, 28px);
|
padding: max(12vmin, 64px) 0 max(3.2vmin, 28px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.article-tag {
|
.article-tag {
|
||||||
@ -1294,28 +1299,28 @@ html.no-infinite-scroll .pagination {
|
|||||||
is laid out on top of. Canvas just defines the grid, we don't
|
is laid out on top of. Canvas just defines the grid, we don't
|
||||||
use it for applying any other styles. */
|
use it for applying any other styles. */
|
||||||
|
|
||||||
.gh-canvas {
|
.gh-canvas,
|
||||||
|
.kg-width-full.kg-content-wide {
|
||||||
|
--gap: max(4vmin, 20px);
|
||||||
|
--main: min(var(--content-width, 720px), 100% - var(--gap) * 2);
|
||||||
|
--wide: minmax(0, calc((var(--container-width, 1200px) - var(--content-width, 720px)) / 2));
|
||||||
|
--full: minmax(var(--gap), 1fr);
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns:
|
grid-template-columns:
|
||||||
[full-start]
|
[full-start] var(--full)
|
||||||
minmax(max(4vmin, 20px), auto)
|
[wide-start] var(--wide)
|
||||||
[wide-start]
|
[main-start] var(--main) [main-end]
|
||||||
minmax(auto, 240px)
|
var(--wide) [wide-end]
|
||||||
[main-start]
|
var(--full) [full-end];
|
||||||
min(720px, calc(100% - max(8vmin, 40px)))
|
|
||||||
[main-end]
|
|
||||||
minmax(auto, 240px)
|
|
||||||
[wide-end]
|
|
||||||
minmax(max(4vmin, 20px), auto)
|
|
||||||
[full-end]
|
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-canvas > * {
|
.gh-canvas > * {
|
||||||
grid-column: main-start / main-end;
|
grid-column: main-start / main-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.kg-width-wide {
|
.kg-width-wide,
|
||||||
|
.kg-content-wide > div {
|
||||||
grid-column: wide-start / wide-end;
|
grid-column: wide-start / wide-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1341,6 +1346,11 @@ headings, text, images and lists. We deal with cards lower down. */
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Remove space between full-width cards */
|
||||||
|
.gh-content > .kg-width-full + .kg-width-full:not(.kg-width-full.kg-card-hascaption + .kg-width-full) {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* [id] represents all headings h1-h6, reset all margins */
|
/* [id] represents all headings h1-h6, reset all margins */
|
||||||
.gh-content > [id] {
|
.gh-content > [id] {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -1391,6 +1401,14 @@ is the very first element in the post content */
|
|||||||
line-height: 1.6em;
|
line-height: 1.6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-template .gh-content:only-child > *:first-child:not(.kg-width-full) {
|
||||||
|
margin-top: max(12vmin, 64px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-template .gh-content > *:last-child:not(.kg-width-full) {
|
||||||
|
margin-bottom: max(12vmin, 64px);
|
||||||
|
}
|
||||||
|
|
||||||
.gh-content .kg-callout-card .kg-callout-text,
|
.gh-content .kg-callout-card .kg-callout-text,
|
||||||
.gh-content .kg-toggle-card .kg-toggle-content > ol,
|
.gh-content .kg-toggle-card .kg-toggle-content > ol,
|
||||||
.gh-content .kg-toggle-card .kg-toggle-content > ul,
|
.gh-content .kg-toggle-card .kg-toggle-content > ul,
|
||||||
@ -1478,6 +1496,14 @@ is the very first element in the post content */
|
|||||||
box-shadow: 0 2px 6px -2px rgba(0,0,0,.1), 0 0 1px rgba(0,0,0,.4);
|
box-shadow: 0 2px 6px -2px rgba(0,0,0,.1), 0 0 1px rgba(0,0,0,.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gh-content ol ol li {
|
||||||
|
list-style-type: lower-alpha;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-content ol ol ol li {
|
||||||
|
list-style-type: lower-roman;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 650px) {
|
@media (max-width: 650px) {
|
||||||
.gh-content > blockquote:not([class]),
|
.gh-content > blockquote:not([class]),
|
||||||
.gh-content > ol,
|
.gh-content > ol,
|
||||||
@ -1515,11 +1541,9 @@ make sure they look good, and are given a bit of extra spacing. */
|
|||||||
except for when immediately preceeded by a heading */
|
except for when immediately preceeded by a heading */
|
||||||
.gh-content :not(.kg-card):not([id]) + .kg-card {
|
.gh-content :not(.kg-card):not([id]) + .kg-card {
|
||||||
margin-top: 6vmin;
|
margin-top: 6vmin;
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
}
|
||||||
.gh-content .kg-card + :not(.kg-card) {
|
.gh-content .kg-card + :not(.kg-card) {
|
||||||
margin-top: 6vmin;
|
margin-top: 6vmin;
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This keeps small embeds centered */
|
/* This keeps small embeds centered */
|
||||||
@ -1687,7 +1711,7 @@ iframe.instagram-media + script + :not([id]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* 7.1. Post Byline
|
/* 6.1. Post Byline
|
||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
.article-byline {
|
.article-byline {
|
||||||
@ -1750,7 +1774,7 @@ iframe.instagram-media + script + :not([id]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* 7.3. Subscribe
|
/* 6.2. Subscribe
|
||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
.footer-cta {
|
.footer-cta {
|
||||||
@ -1800,7 +1824,7 @@ iframe.instagram-media + script + :not([id]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* 7.4. Read more
|
/* 6.3. Read more
|
||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
.read-more-wrap {
|
.read-more-wrap {
|
||||||
@ -1839,7 +1863,7 @@ iframe.instagram-media + script + :not([id]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 7.6. Comments
|
/* 6.4. Comments
|
||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
.comments {
|
.comments {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -1877,7 +1901,7 @@ iframe.instagram-media + script + :not([id]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* 8. Author Template
|
/* 7. Author Template
|
||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
.author-profile-pic {
|
.author-profile-pic {
|
||||||
@ -2011,7 +2035,7 @@ iframe.instagram-media + script + :not([id]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* 11. Site Footer
|
/* 10. Site Footer
|
||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
.site-footer {
|
.site-footer {
|
||||||
@ -2023,6 +2047,10 @@ iframe.instagram-media + script + :not([id]) {
|
|||||||
background: color-mod(var(--color-darkgrey) l(-5%));
|
background: color-mod(var(--color-darkgrey) l(-5%));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-template .site-footer {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.site-footer .inner {
|
.site-footer .inner {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-gap: 40px;
|
grid-gap: 40px;
|
||||||
@ -2098,7 +2126,7 @@ iframe.instagram-media + script + :not([id]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* 12. Dark Mode
|
/* 11. Dark Mode
|
||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
html.dark-mode body {
|
html.dark-mode body {
|
||||||
@ -2118,13 +2146,14 @@ html.dark-mode figcaption a {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
html.dark-mode .gh-head {
|
html.dark-mode body:not(.has-cover) .gh-head {
|
||||||
background: var(--color-darkmode);
|
background: var(--color-darkmode);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
html.dark-mode .gh-burger-box {
|
html.dark-mode .gh-burger::before,
|
||||||
color: #fff;
|
html.dark-mode .gh-burger::after {
|
||||||
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
html.dark-mode .site-header-content {
|
html.dark-mode .site-header-content {
|
||||||
@ -2258,7 +2287,7 @@ html.dark-mode .gh-content table:not(.gist table) td {
|
|||||||
border: color-mod(var(--color-darkmode) l(+8%)) 1px solid;
|
border: color-mod(var(--color-darkmode) l(+8%)) 1px solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
html.dark-mode .gh-content input {
|
html.dark-mode .gh-content :is(input, textarea) {
|
||||||
color: color-mod(var(--color-midgrey) l(-30%));
|
color: color-mod(var(--color-midgrey) l(-30%));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2284,6 +2313,13 @@ html.dark-mode .footer-cta-title {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
html.dark-mode .gh-head-open:not(.has-cover) #gh-head,
|
||||||
|
html.dark-mode .gh-head-open:not(.has-cover) #gh-head .gh-head-actions {
|
||||||
|
background: var(--color-darkmode);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
html.auto-color body {
|
html.auto-color body {
|
||||||
color: rgba(255, 255, 255, 0.75);
|
color: rgba(255, 255, 255, 0.75);
|
||||||
@ -2302,13 +2338,14 @@ html.dark-mode .footer-cta-title {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
html.auto-color .gh-head {
|
html.auto-color body:not(.has-cover) .gh-head {
|
||||||
background: var(--color-darkmode);
|
background: var(--color-darkmode);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
html.auto-color .gh-burger-box {
|
html.auto-color .gh-burger::before,
|
||||||
color: #fff;
|
html.auto-color .gh-burger::after {
|
||||||
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
html.auto-color .site-header-content {
|
html.auto-color .site-header-content {
|
||||||
@ -2442,7 +2479,7 @@ html.dark-mode .footer-cta-title {
|
|||||||
border: color-mod(var(--color-darkmode) l(+8%)) 1px solid;
|
border: color-mod(var(--color-darkmode) l(+8%)) 1px solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
html.auto-color .gh-content input {
|
html.auto-color .gh-content :is(input, textarea) {
|
||||||
color: color-mod(var(--color-midgrey) l(-30%));
|
color: color-mod(var(--color-midgrey) l(-30%));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2467,6 +2504,13 @@ html.dark-mode .footer-cta-title {
|
|||||||
html.auto-color .footer-cta-title {
|
html.auto-color .footer-cta-title {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
html.auto-color .gh-head-open:not(.has-cover) #gh-head,
|
||||||
|
html.auto-color .gh-head-open:not(.has-cover) #gh-head .gh-head-actions {
|
||||||
|
background: var(--color-darkmode);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -2483,3 +2527,4 @@ file to add some of your own styles. Well, you've come to
|
|||||||
the right place. Onward!
|
the right place. Onward!
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@ -16,6 +16,7 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var windowClickListener;
|
||||||
const makeDropdown = function () {
|
const makeDropdown = function () {
|
||||||
if (mediaQuery.matches) return;
|
if (mediaQuery.matches) return;
|
||||||
const submenuItems = [];
|
const submenuItems = [];
|
||||||
@ -62,11 +63,12 @@
|
|||||||
document.body.classList.toggle('is-dropdown-open');
|
document.body.classList.toggle('is-dropdown-open');
|
||||||
});
|
});
|
||||||
|
|
||||||
window.addEventListener('click', function (e) {
|
windowClickListener = function (e) {
|
||||||
if (!toggle.contains(e.target) && document.body.classList.contains('is-dropdown-open')) {
|
if (!toggle.contains(e.target) && document.body.classList.contains('is-dropdown-open')) {
|
||||||
document.body.classList.remove('is-dropdown-open');
|
document.body.classList.remove('is-dropdown-open');
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
|
window.addEventListener('click', windowClickListener);
|
||||||
}
|
}
|
||||||
|
|
||||||
imagesLoaded(head, function () {
|
imagesLoaded(head, function () {
|
||||||
@ -75,6 +77,7 @@
|
|||||||
|
|
||||||
window.addEventListener('resize', function () {
|
window.addEventListener('resize', function () {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
window.removeEventListener('click', windowClickListener);
|
||||||
nav.innerHTML = navHTML;
|
nav.innerHTML = navHTML;
|
||||||
makeDropdown();
|
makeDropdown();
|
||||||
}, 1);
|
}, 1);
|
||||||
|
|||||||
10
default.hbs
10
default.hbs
@ -9,6 +9,10 @@
|
|||||||
<meta name="HandheldFriendly" content="True" />
|
<meta name="HandheldFriendly" content="True" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
|
||||||
|
{{!-- Preload scripts --}}
|
||||||
|
<link rel="preload" as="style" href="{{asset "built/screen.css"}}" />
|
||||||
|
<link rel="preload" as="script" href="{{asset "built/casper.js"}}" />
|
||||||
|
|
||||||
{{!-- Theme assets - use the {asset} helper to reference styles & scripts,
|
{{!-- Theme assets - use the {asset} helper to reference styles & scripts,
|
||||||
this will take care of caching and cache-busting automatically --}}
|
this will take care of caching and cache-busting automatically --}}
|
||||||
<link rel="stylesheet" type="text/css" href="{{asset "built/screen.css"}}" />
|
<link rel="stylesheet" type="text/css" href="{{asset "built/screen.css"}}" />
|
||||||
@ -31,7 +35,7 @@
|
|||||||
{{@site.title}}
|
{{@site.title}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</a>
|
</a>
|
||||||
<button class="gh-search gh-icon-btn" data-ghost-search>{{> "icons/search"}}</button>
|
<button class="gh-search gh-icon-btn" aria-label="Search this site" data-ghost-search>{{> "icons/search"}}</button>
|
||||||
<button class="gh-burger"></button>
|
<button class="gh-burger"></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -39,7 +43,7 @@
|
|||||||
{{navigation}}
|
{{navigation}}
|
||||||
{{#unless @site.members_enabled}}
|
{{#unless @site.members_enabled}}
|
||||||
{{#match @custom.navigation_layout "Stacked"}}
|
{{#match @custom.navigation_layout "Stacked"}}
|
||||||
<button class="gh-search gh-icon-btn" data-ghost-search>{{> "icons/search"}}</button>
|
<button class="gh-search gh-icon-btn" aria-label="Search this site" data-ghost-search>{{> "icons/search"}}</button>
|
||||||
{{/match}}
|
{{/match}}
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
</nav>
|
</nav>
|
||||||
@ -80,7 +84,7 @@
|
|||||||
<nav class="site-footer-nav">
|
<nav class="site-footer-nav">
|
||||||
{{navigation type="secondary"}}
|
{{navigation type="secondary"}}
|
||||||
</nav>
|
</nav>
|
||||||
<div><a href="https://ghost.org/" target="_blank" rel="noopener">Powered by Ghost</a></div>
|
<div class="gh-powered-by"><a href="https://ghost.org/" target="_blank" rel="noopener">Powered by Ghost</a></div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
|||||||
@ -19,8 +19,8 @@ const colorFunction = require('postcss-color-mod-function');
|
|||||||
const cssnano = require('cssnano');
|
const cssnano = require('cssnano');
|
||||||
const easyimport = require('postcss-easy-import');
|
const easyimport = require('postcss-easy-import');
|
||||||
|
|
||||||
const REPO = 'TryGhost/Casper';
|
const REPO = 'tryghost/Casper';
|
||||||
const REPO_READONLY = 'TryGhost/Casper';
|
const REPO_READONLY = 'tryghost/Casper';
|
||||||
const CHANGELOG_PATH = path.join(process.cwd(), '.', 'changelog.md');
|
const CHANGELOG_PATH = path.join(process.cwd(), '.', 'changelog.md');
|
||||||
|
|
||||||
function serve(done) {
|
function serve(done) {
|
||||||
@ -113,6 +113,8 @@ exports.release = async () => {
|
|||||||
console.log(`\nCreating release for ${newVersion}...`);
|
console.log(`\nCreating release for ${newVersion}...`);
|
||||||
|
|
||||||
const githubToken = process.env.GST_TOKEN;
|
const githubToken = process.env.GST_TOKEN;
|
||||||
|
const repo_readonly = process.env.REPO_READONLY ?? REPO_READONLY;
|
||||||
|
const repo = process.env.REPO ?? REPO;
|
||||||
|
|
||||||
if (!githubToken) {
|
if (!githubToken) {
|
||||||
console.log('Please configure your environment with a GitHub token located in GST_TOKEN');
|
console.log('Please configure your environment with a GitHub token located in GST_TOKEN');
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"name": "casper-aytac",
|
"name": "casper-aytac",
|
||||||
"description": "A clean, minimal default theme for the Ghost publishing platform with little modifications by Aytac",
|
"description": "A clean, minimal default theme for the Ghost publishing platform with little modifications by Aytac",
|
||||||
"demo": "https://aytac.kirmizi.online",
|
"demo": "https://aytac.kirmizi.online",
|
||||||
"version": "5.4.5",
|
"version": "5.6.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"ghost": ">=5.0.0"
|
"ghost": ">=5.0.0"
|
||||||
},
|
},
|
||||||
@ -49,7 +49,7 @@
|
|||||||
"autoprefixer": "10.4.7",
|
"autoprefixer": "10.4.7",
|
||||||
"beeper": "2.1.0",
|
"beeper": "2.1.0",
|
||||||
"cssnano": "5.1.12",
|
"cssnano": "5.1.12",
|
||||||
"gscan": "4.34.0",
|
"gscan": "4.36.1",
|
||||||
"gulp": "4.0.2",
|
"gulp": "4.0.2",
|
||||||
"gulp-concat": "2.6.1",
|
"gulp-concat": "2.6.1",
|
||||||
"gulp-livereload": "4.0.2",
|
"gulp-livereload": "4.0.2",
|
||||||
|
|||||||
44
page.hbs
44
page.hbs
@ -10,30 +10,32 @@ into the {body} tag of the default.hbs template --}}
|
|||||||
<main id="site-main" class="site-main">
|
<main id="site-main" class="site-main">
|
||||||
<article class="article {{post_class}}">
|
<article class="article {{post_class}}">
|
||||||
|
|
||||||
<header class="article-header gh-canvas">
|
{{#match @page.show_title_and_feature_image}}
|
||||||
|
<header class="article-header gh-canvas">
|
||||||
|
|
||||||
<h1 class="article-title">{{title}}</h1>
|
<h1 class="article-title">{{title}}</h1>
|
||||||
|
|
||||||
{{#if feature_image}}
|
{{#if feature_image}}
|
||||||
<figure class="article-image">
|
<figure class="article-image">
|
||||||
{{!-- This is a responsive image, it loads different sizes depending on device
|
{{!-- This is a responsive image, it loads different sizes depending on device
|
||||||
https://medium.freecodecamp.org/a-guide-to-responsive-images-with-ready-to-use-templates-c400bd65c433 --}}
|
https://medium.freecodecamp.org/a-guide-to-responsive-images-with-ready-to-use-templates-c400bd65c433 --}}
|
||||||
<img
|
<img
|
||||||
srcset="{{img_url feature_image size="s"}} 300w,
|
srcset="{{img_url feature_image size="s"}} 300w,
|
||||||
{{img_url feature_image size="m"}} 600w,
|
{{img_url feature_image size="m"}} 600w,
|
||||||
{{img_url feature_image size="l"}} 1000w,
|
{{img_url feature_image size="l"}} 1000w,
|
||||||
{{img_url feature_image size="xl"}} 2000w"
|
{{img_url feature_image size="xl"}} 2000w"
|
||||||
sizes="(min-width: 1400px) 1400px, 92vw"
|
sizes="(min-width: 1400px) 1400px, 92vw"
|
||||||
src="{{img_url feature_image size="xl"}}"
|
src="{{img_url feature_image size="xl"}}"
|
||||||
alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}"
|
alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}"
|
||||||
/>
|
/>
|
||||||
{{#if feature_image_caption}}
|
{{#if feature_image_caption}}
|
||||||
<figcaption>{{feature_image_caption}}</figcaption>
|
<figcaption>{{feature_image_caption}}</figcaption>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</figure>
|
</figure>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
{{/match}}
|
||||||
|
|
||||||
<section class="gh-content gh-canvas">
|
<section class="gh-content gh-canvas">
|
||||||
{{content}}
|
{{content}}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user