updated users and package version
4
assets/lib/jquery/jquery.slim.min.js
vendored
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 88 KiB |
Before Width: | Height: | Size: 131 KiB After Width: | Height: | Size: 131 KiB |
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 88 KiB |
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 63 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 55 KiB |
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
BIN
exampleSite/content/users/m3upt.com/feature.jpg
Normal file
After Width: | Height: | Size: 101 KiB |
13
exampleSite/content/users/m3upt.com/index.md
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
title: "m3upt.com"
|
||||||
|
tags: [Project site]
|
||||||
|
externalUrl: "https://m3upt.com"
|
||||||
|
date: 9945-08-08
|
||||||
|
showDate: false
|
||||||
|
showAuthor: false
|
||||||
|
showReadingTime: false
|
||||||
|
showEdit: false
|
||||||
|
showLikes: false
|
||||||
|
showViews: false
|
||||||
|
layoutBackgroundHeaderSpace: false
|
||||||
|
---
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 93 KiB |
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 8 KiB |
After Width: | Height: | Size: 75 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 76 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 114 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 77 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 59 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 8.3 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 8.3 KiB |
After Width: | Height: | Size: 52 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 52 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 74 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 86 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 8.9 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 63 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 79 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 79 KiB |
After Width: | Height: | Size: 25 KiB |
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hugo-blowfish-theme",
|
"name": "hugo-blowfish-theme",
|
||||||
"version": "2.37.0",
|
"version": "2.38.0",
|
||||||
"description": "Blowfish theme for Hugo",
|
"description": "Blowfish theme for Hugo",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"fullinstall": "npm run preinstall && npm install && npm run postinstall",
|
"fullinstall": "npm run preinstall && npm install && npm run postinstall",
|
||||||
|
|
|
@ -6,7 +6,7 @@ const usersFolderPath = "./exampleSite/content/users/"
|
||||||
let rawdata = fs.readFileSync(usersFolderPath + 'users.json');
|
let rawdata = fs.readFileSync(usersFolderPath + 'users.json');
|
||||||
let users = JSON.parse(rawdata);
|
let users = JSON.parse(rawdata);
|
||||||
let userDict = {}
|
let userDict = {}
|
||||||
for(var i in users){
|
for (var i in users) {
|
||||||
userDict[users[i].title.replaceAll("/", "-")] = true;
|
userDict[users[i].title.replaceAll("/", "-")] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,11 +17,8 @@ for (file in files) {
|
||||||
|
|
||||||
let stats = fs.statSync(usersFolderPath + files[file]);
|
let stats = fs.statSync(usersFolderPath + files[file]);
|
||||||
if (files[file] != 'users.json' && files[file] != '_index.md') {
|
if (files[file] != 'users.json' && files[file] != '_index.md') {
|
||||||
|
|
||||||
|
|
||||||
if (stats.isDirectory()) {
|
if (stats.isDirectory()) {
|
||||||
|
if (!userDict[files[file].replaceAll("/", "-")]) {
|
||||||
if(!userDict[files[file].replaceAll("/", "-")]){
|
|
||||||
console.log('deleting: ', files[file]);
|
console.log('deleting: ', files[file]);
|
||||||
fs.rmdirSync(usersFolderPath + files[file], { recursive: true, force: true });
|
fs.rmdirSync(usersFolderPath + files[file], { recursive: true, force: true });
|
||||||
}
|
}
|
||||||
|
@ -45,13 +42,12 @@ puppeteer
|
||||||
const page = await browser.newPage();
|
const page = await browser.newPage();
|
||||||
|
|
||||||
for (var i in users) {
|
for (var i in users) {
|
||||||
console.log(i, users[i].title);
|
|
||||||
|
|
||||||
var userMDFile = "---\n\
|
var userMDFile = "---\n\
|
||||||
title: \""+ users[i].title + "\"\n\
|
title: \""+ users[i].title + "\"\n\
|
||||||
tags: ["+users[i].tags+"]\n\
|
tags: ["+ users[i].tags + "]\n\
|
||||||
externalUrl: \""+ users[i].url + "\"\n\
|
externalUrl: \""+ users[i].url + "\"\n\
|
||||||
date: "+(9999-i)+"-08-08\n\
|
date: "+ (9999 - i) + "-08-08\n\
|
||||||
showDate: false\n\
|
showDate: false\n\
|
||||||
showAuthor: false\n\
|
showAuthor: false\n\
|
||||||
showReadingTime: false\n\
|
showReadingTime: false\n\
|
||||||
|
@ -67,6 +63,7 @@ puppeteer
|
||||||
fs.mkdirSync(dir);
|
fs.mkdirSync(dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(i, users[i].title);
|
||||||
fs.writeFileSync(dir + '/index.md', userMDFile);
|
fs.writeFileSync(dir + '/index.md', userMDFile);
|
||||||
await page.goto(users[i].url);
|
await page.goto(users[i].url);
|
||||||
await page.screenshot({ path: dir + "/feature.jpg" });
|
await page.screenshot({ path: dir + "/feature.jpg" });
|
||||||
|
|