Skip to content

Commit

Permalink
Script Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kristofzerbe committed Jul 15, 2024
1 parent 184387f commit 4e2e44e
Show file tree
Hide file tree
Showing 66 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion lib/social-media-image-generator.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class SocialMediaImageGenerator {
});

await this.createImage(fileName, tempFile);
await this.createThumb(fileName, tempFile);
await this.createThumb(fileName);

return;
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const log = require('hexo-log')({ debug: false, silent: false });
const { magenta } = require('chalk');
const path = require('path');
const { getMD, ensurePermaLink } = require("../lib/tools.cjs");
const { getMD, ensurePermaLink } = require("../../lib/tools.cjs");

hexo.on('generateBefore', function() {
log.info("Getting Dynamic Page " + magenta("ABOUT") + " ...");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const log = require('hexo-log')({ debug: false, silent: false });
const { magenta } = require('chalk');
const path = require('path');
const fs = require('hexo-fs');
const { getMD, getHelpers } = require("../lib/tools.cjs");
const { getMD, getHelpers } = require("../../lib/tools.cjs");

hexo.on('generateBefore', function() {
log.info("Getting Dynamic Page " + magenta("APPS") + " ...");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { magenta } = require('chalk');
const path = require('path');
const fs = require('hexo-fs');
const front = require('hexo-front-matter');
const { getMD, updateMDField } = require("../lib/tools.cjs");
const { getMD, updateMDField } = require("../../lib/tools.cjs");

const _rootDir = hexo.source_dir.replace("source", "");

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const log = require('hexo-log')({ debug: false, silent: false });
const { magenta } = require('chalk');
const path = require('path');
const { getMD } = require("../lib/tools.cjs");
const { getMD } = require("../../lib/tools.cjs");

hexo.on('generateBefore', function() {
log.info("Getting Dynamic Page " + magenta("CONSOLE") + " ...");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const log = require('hexo-log')({ debug: false, silent: false });
const { magenta } = require('chalk');
const path = require('path');
const { getMD, getHelpers } = require("../lib/tools.cjs");
const { getMD, getHelpers } = require("../../lib/tools.cjs");

hexo.on('generateBefore', function() {
log.info("Getting Dynamic Page " + magenta("FEEDS") + " ...");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { magenta } = require('chalk');
const path = require('path');
const fs = require('hexo-fs');
const front = require('hexo-front-matter');
const { getMD, updateMDField } = require("../lib/tools.cjs");
const { getMD, updateMDField } = require("../../lib/tools.cjs");

const _rootDir = hexo.source_dir.replace("source", "");

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const log = require('hexo-log')({ debug: false, silent: false });
const { magenta } = require('chalk');
const path = require('path');
const { getMD, getHelpers } = require("../lib/tools.cjs");
const { getMD, getHelpers } = require("../../lib/tools.cjs");

hexo.on('generateBefore', function() {
log.info("Getting Dynamic Page " + magenta("SEARCH") + " ...");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const log = require('hexo-log')({ debug: false, silent: false });
const { magenta } = require('chalk');
const path = require('path');
const { getMD } = require("../lib/tools.cjs");
const { getMD } = require("../../lib/tools.cjs");

hexo.on('generateBefore', function() {
log.info("Getting Dynamic Page " + magenta("SLASHES") + " ...");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require("path");
const fs = require("hexo-fs");
const front = require("hexo-front-matter");
const moment = require("moment");
const { getDataFromCardlinkCodeBlock, compileHandlebar } = require("../lib/tools.cjs");
const { getDataFromCardlinkCodeBlock, compileHandlebar } = require("../../lib/tools.cjs");

hexo.on('generateBefore', function() {
log.info("Getting " + magenta("NOTES") + " ...");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const log = require('hexo-log')({
const front = require('hexo-front-matter');
const fs = require('hexo-fs');

const photoSelector = require("../lib/photograph-selector.cjs").Selector;
const photoSelector = require("../../lib/photograph-selector.cjs").Selector;

hexo.on('new', function(data) {

Expand All @@ -23,7 +23,6 @@ hexo.on('new', function(data) {
post.photograph.name = photo.name;
post.photograph.link = photo.link;


let postStr = front.stringify(post);
postStr = '---\n' + postStr;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const SocialMediaImageGenerator = require("../lib/social-media-image-generator.cjs").SocialMediaImageGenerator;
const SocialMediaImageGenerator = require("../../lib/social-media-image-generator.cjs").SocialMediaImageGenerator;

hexo.on("ready", function() {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const photoSelector = require("../lib/photograph-selector.cjs").Selector;
const photoSelector = require("../../lib/photograph-selector.cjs").Selector;

const log = require('hexo-log')({
debug: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const axios = require('axios');
const fs = require("hexo-fs");
const feed2json = require('feed2json');
const handlebars = require("handlebars");
const { getHelpers } = require("../../../lib/tools.cjs");
const { getHelpers } = require("../../lib/tools.cjs");

const _helpers = getHelpers(hexo);
const _rootDir = hexo.source_dir.replace("source", "");
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require('path');
const axios = require('axios');
const fs = require("hexo-fs");
const handlebars = require("handlebars");
const { getHelpers, getNewestDateString, ensurePermaLink } = require("../../../lib/tools.cjs");
const { getHelpers, getNewestDateString, ensurePermaLink } = require("../../lib/tools.cjs");

const _helpers = getHelpers(hexo);
const _rootDir = hexo.source_dir.replace("source", "");
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
-> see Obsidian Auto Card Links -> https://github.com/nekoshita/obsidian-auto-card-link
*/
const { getDataFromCardlinkCodeBlock, compileHandlebar } = require("../../../lib/tools.cjs");
const { getDataFromCardlinkCodeBlock, compileHandlebar } = require("../../lib/tools.cjs");

hexo.extend.tag.register("cardlink", function(args, content){

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4e2e44e

Please sign in to comment.