updated users and package version

This commit is contained in:
Nuno Coração 2023-07-20 21:34:37 +01:00
parent 5ee491bc0a
commit 044736208a
57 changed files with 21 additions and 11 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

View 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
---

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 93 KiB

View file

@ -1,6 +1,6 @@
{
"name": "hugo-blowfish-theme",
"version": "2.37.0",
"version": "2.38.0",
"description": "Blowfish theme for Hugo",
"scripts": {
"fullinstall": "npm run preinstall && npm install && npm run postinstall",

View file

@ -6,7 +6,7 @@ const usersFolderPath = "./exampleSite/content/users/"
let rawdata = fs.readFileSync(usersFolderPath + 'users.json');
let users = JSON.parse(rawdata);
let userDict = {}
for(var i in users){
for (var i in users) {
userDict[users[i].title.replaceAll("/", "-")] = true;
}
@ -17,11 +17,8 @@ for (file in files) {
let stats = fs.statSync(usersFolderPath + files[file]);
if (files[file] != 'users.json' && files[file] != '_index.md') {
if (stats.isDirectory()) {
if(!userDict[files[file].replaceAll("/", "-")]){
if (!userDict[files[file].replaceAll("/", "-")]) {
console.log('deleting: ', files[file]);
fs.rmdirSync(usersFolderPath + files[file], { recursive: true, force: true });
}
@ -45,13 +42,12 @@ puppeteer
const page = await browser.newPage();
for (var i in users) {
console.log(i, users[i].title);
var userMDFile = "---\n\
title: \""+ users[i].title + "\"\n\
tags: ["+users[i].tags+"]\n\
tags: ["+ users[i].tags + "]\n\
externalUrl: \""+ users[i].url + "\"\n\
date: "+(9999-i)+"-08-08\n\
date: "+ (9999 - i) + "-08-08\n\
showDate: false\n\
showAuthor: false\n\
showReadingTime: false\n\
@ -67,6 +63,7 @@ puppeteer
fs.mkdirSync(dir);
}
console.log(i, users[i].title);
fs.writeFileSync(dir + '/index.md', userMDFile);
await page.goto(users[i].url);
await page.screenshot({ path: dir + "/feature.jpg" });