Skip to content

Commit 2469fae

Browse files
committed
major updates
1 parent 255b64e commit 2469fae

File tree

10 files changed

+107
-109
lines changed

10 files changed

+107
-109
lines changed

assets/built/screen.css

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

assets/built/screen.css.map

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

assets/built/source.js.map

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

assets/css/screen.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ production stylesheet in assets/built/screen.css
5858
--color-dark-gray: #444;
5959
--color-darker-gray: #15171a;
6060
--color-black: #000;
61-
--color-primary-text: #ffffff;
61+
--color-primary-text: var(--color-darker-gray);
6262
--color-secondary-text: rgb(0 0 0 / 0.55);
6363
--color-border: rgb(0 0 0 / 0.08);
6464
--color-dark-border: rgb(0 0 0 / 0.55);
@@ -3384,8 +3384,6 @@ figcaption a {
33843384
background: none;
33853385
}
33863386

3387-
3388-
33893387
/* Share button */
33903388

33913389
.nav .nav-discord a,

assets/js/lib/reframe.min.js

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

assets/js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
wrapper.appendChild(table);
6060
});
6161
})();
62-
// dddddd
62+
// Customized SREDevOps
6363
// Share button
6464
function copyToClipboard() {
6565
var text = window.location.href;

default.hbs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@
5050
https://gomakethings.com/dynamically-changing-the-text-color-based-on-background-color-contrast-with-vanilla-js/ */
5151
var accentColor = getComputedStyle(document.documentElement).getPropertyValue('--background-color');
5252
accentColor = accentColor.trim().slice(1);
53+
54+
if (accentColor.length === 3) {
55+
accentColor = accentColor[0] + accentColor[0] + accentColor[1] + accentColor[1] + accentColor[2] + accentColor[2];
56+
}
57+
5358
var r = parseInt(accentColor.substr(0, 2), 16);
5459
var g = parseInt(accentColor.substr(2, 2), 16);
5560
var b = parseInt(accentColor.substr(4, 2), 16);
@@ -59,12 +64,9 @@
5964
document.documentElement.className = `has-${textColor}-text`;
6065
</script>
6166

62-
{{!-- The following CSS is used to style the navigation layout --}}
6367
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/brands.min.css" integrity="sha512-W/zrbCncQnky/EzL+/AYwTtosvrM+YG/V6piQLSe2HuKS6cmbw89kjYkp3tWFn1dkWV7L1ruvJyKbLz73Vlgfg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
64-
{{!-- The following CSS is used tofor TOC Bot --}}
6568
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.28.2/tocbot.min.css" integrity="sha512-4q0OX9NAYcRTFEfy9nTK0AV9N7MxM665neDXEW3CjAj1pXc6+8Bcd6ryXl6cY8mTBBXt0aXepnSDLLQZSuJRww==" crossorigin="anonymous" referrerpolicy="no-referrer" />
6669

67-
{{!-- This tag outputs all your advanced SEO meta, structured data, and other important settings, it should always be the last tag before the closing head tag --}}
6870
{{ghost_head}}
6971

7072
</head>

gulpfile.js

Lines changed: 93 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const fs = require('fs');
88
// gulp plugins and utils
99
const livereload = require('gulp-livereload');
1010
const postcss = require('gulp-postcss');
11-
const zip = require('gulp-zip');
11+
// const zip = require('gulp-zip');
1212
const concat = require('gulp-concat');
1313
const uglify = require('gulp-uglify');
1414
// const beeper = require('beeper');
@@ -71,22 +71,22 @@ function js(done) {
7171
], handleError(done));
7272
}
7373

74-
function zipper(done) {
75-
const filename = require('./package.json').name + '.zip';
76-
77-
pump([
78-
src([
79-
'**',
80-
'!node_modules', '!node_modules/**',
81-
'!dist', '!dist/**',
82-
'!yarn-error.log',
83-
'!yarn.lock',
84-
'!gulpfile.js'
85-
]),
86-
zip(filename),
87-
dest('dist/')
88-
], handleError(done));
89-
}
74+
// function zipper(done) {
75+
// const filename = require('./package.json').name + '.zip';
76+
77+
// pump([
78+
// src([
79+
// '**',
80+
// '!node_modules', '!node_modules/**',
81+
// '!dist', '!dist/**',
82+
// '!yarn-error.log',
83+
// '!yarn.lock',
84+
// '!gulpfile.js'
85+
// ]),
86+
// zip(filename),
87+
// dest('dist/')
88+
// ], handleError(done));
89+
// }
9090

9191
const cssWatcher = () => watch('assets/css/**', css);
9292
const jsWatcher = () => watch('assets/js/**', js);
@@ -95,81 +95,81 @@ const watcher = parallel(cssWatcher, jsWatcher, hbsWatcher);
9595
const build = series(css, js);
9696

9797
exports.build = build;
98-
exports.zip = series(build, zipper);
98+
// exports.zip = series(build, zipper);
9999
exports.default = series(build, serve, watcher);
100100

101-
exports.release = async () => {
102-
// @NOTE: https://yarnpkg.com/lang/en/docs/cli/version/
103-
// require(./package.json) can run into caching issues, this re-reads from file everytime on release
104-
let packageJSON = JSON.parse(fs.readFileSync('./package.json'));
105-
const newVersion = packageJSON.version;
106-
107-
if (!newVersion || newVersion === '') {
108-
console.log(`Invalid version: ${newVersion}`);
109-
return;
110-
}
111-
112-
console.log(`\nCreating release for ${newVersion}...`);
113-
114-
const githubToken = process.env.GST_TOKEN;
115-
116-
if (!githubToken) {
117-
console.log('Please configure your environment with a GitHub token located in GST_TOKEN');
118-
return;
119-
}
120-
121-
try {
122-
const result = await inquirer.prompt([{
123-
type: 'input',
124-
name: 'compatibleWithGhost',
125-
message: 'Which version of Ghost is it compatible with?',
126-
default: '5.0.0'
127-
}]);
128-
129-
const compatibleWithGhost = result.compatibleWithGhost;
130-
131-
const releasesResponse = await releaseUtils.releases.get({
132-
userAgent: 'Source',
133-
uri: `https://api.github.com/repos/${REPO_READONLY}/releases`
134-
});
135-
136-
if (!releasesResponse || !assetsResponse) {
137-
console.log('No releases found. Skipping...');
138-
return;
139-
}
140-
141-
let previousVersion = releasesResponse[0].tag_name || releasesResponse[0].name;
142-
console.log(`Previous version: ${previousVersion}`);
143-
144-
const changelog = new releaseUtils.Changelog({
145-
changelogPath: CHANGELOG_PATH,
146-
folder: path.join(process.cwd(), '.')
147-
});
148-
149-
changelog
150-
.write({
151-
githubRepoPath: `https://github.com/${REPO}`,
152-
lastVersion: previousVersion
153-
})
154-
.sort()
155-
.clean();
156-
157-
const newReleaseResponse = await releaseUtils.releases.create({
158-
draft: true,
159-
preRelease: false,
160-
tagName: 'v' + newVersion,
161-
releaseName: newVersion,
162-
userAgent: 'Source',
163-
uri: `https://api.github.com/repos/${REPO}/releases`,
164-
github: {
165-
token: githubToken
166-
},
167-
content: [`**Compatible with Ghost ≥ ${compatibleWithGhost}**\n\n`],
168-
changelogPath: CHANGELOG_PATH
169-
});
170-
console.log(`\nRelease draft generated: ${newReleaseResponse.releaseUrl}\n`);
171-
} catch (err) {
172-
console.error(err);
173-
process.exit(1);
174-
}
175-
};
101+
// exports.release = async () => {
102+
// // @NOTE: https://yarnpkg.com/lang/en/docs/cli/version/
103+
// // require(./package.json) can run into caching issues, this re-reads from file everytime on release
104+
// let packageJSON = JSON.parse(fs.readFileSync('./package.json'));
105+
// const newVersion = packageJSON.version;
106+
107+
// if (!newVersion || newVersion === '') {
108+
// console.log(`Invalid version: ${newVersion}`);
109+
// return;
110+
// }
111+
112+
// console.log(`\nCreating release for ${newVersion}...`);
113+
114+
// const githubToken = process.env.GST_TOKEN;
115+
116+
// if (!githubToken) {
117+
// console.log('Please configure your environment with a GitHub token located in GST_TOKEN');
118+
// return;
119+
// }
120+
121+
// try {
122+
// const result = await inquirer.prompt([{
123+
// type: 'input',
124+
// name: 'compatibleWithGhost',
125+
// message: 'Which version of Ghost is it compatible with?',
126+
// default: '5.0.0'
127+
// }]);
128+
129+
// const compatibleWithGhost = result.compatibleWithGhost;
130+
131+
// const releasesResponse = await releaseUtils.releases.get({
132+
// userAgent: 'Source',
133+
// uri: `https://api.github.com/repos/${REPO_READONLY}/releases`
134+
// });
135+
136+
// if (!releasesResponse || !assetsResponse) {
137+
// console.log('No releases found. Skipping...');
138+
// return;
139+
// }
140+
141+
// let previousVersion = releasesResponse[0].tag_name || releasesResponse[0].name;
142+
// console.log(`Previous version: ${previousVersion}`);
143+
144+
// const changelog = new releaseUtils.Changelog({
145+
// changelogPath: CHANGELOG_PATH,
146+
// folder: path.join(process.cwd(), '.')
147+
// });
148+
149+
// changelog
150+
// .write({
151+
// githubRepoPath: `https://github.com/${REPO}`,
152+
// lastVersion: previousVersion
153+
// })
154+
// .sort()
155+
// .clean();
156+
157+
// const newReleaseResponse = await releaseUtils.releases.create({
158+
// draft: true,
159+
// preRelease: false,
160+
// tagName: 'v' + newVersion,
161+
// releaseName: newVersion,
162+
// userAgent: 'Source',
163+
// uri: `https://api.github.com/repos/${REPO}/releases`,
164+
// github: {
165+
// token: githubToken
166+
// },
167+
// content: [`**Compatible with Ghost ≥ ${compatibleWithGhost}**\n\n`],
168+
// changelogPath: CHANGELOG_PATH
169+
// });
170+
// console.log(`\nRelease draft generated: ${newReleaseResponse.releaseUrl}\n`);
171+
// } catch (err) {
172+
// console.error(err);
173+
// process.exit(1);
174+
// }
175+
// };

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ghost-source-theme",
33
"description": "Fork of the default theme of Ghost publishing platform, customized for sredevops.org",
44
"demo": "https://sredevops.org",
5-
"version": "1.4.1",
5+
"version": "1.4.2",
66
"engines": {
77
"ghost": ">=5.0.0"
88
},
@@ -13,9 +13,7 @@
1313
"test": "gscan .",
1414
"test:ci": "gscan --fatal --verbose .",
1515
"pretest": "gulp build",
16-
"preship": "yarn test",
17-
"ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn version && git push --follow-tags; else echo \"Uncomitted changes found.\" && exit 1; fi",
18-
"postship": "git fetch && gulp release"
16+
"preship": "yarn test"
1917
},
2018
"author": {
2119
"name": "Ghost Foundation",

partials/feature-image.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{{img_url feature_image size="l"}} 960w,
77
{{img_url feature_image size="xl"}} 1200w,
88
{{img_url feature_image size="xxl"}} 2000w"
9-
src="{{img_url feature_image size="m"}}"
9+
src="{{img_url feature_image size="s"}}"
1010
alt="{{title}}"
1111
>
1212
{{#if feature_image_caption}}

0 commit comments

Comments
 (0)