mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-22 14:35:43 -06:00
wrapped script
This commit is contained in:
parent
ba7d7d5a6c
commit
fef151c3eb
14 changed files with 84 additions and 151 deletions
|
@ -1,13 +0,0 @@
|
||||||
---
|
|
||||||
title: "nunocoracao.com"
|
|
||||||
slug: "users"
|
|
||||||
tags: []
|
|
||||||
externalUrl: ""
|
|
||||||
showDate: false
|
|
||||||
showAuthor: false
|
|
||||||
showReadingTime: false
|
|
||||||
showEdit: false
|
|
||||||
showLikes: false
|
|
||||||
showViews: false
|
|
||||||
layoutBackgroundHeaderSpace: false
|
|
||||||
---
|
|
BIN
exampleSite/content/users/0nunocoracao.com/feature.png
Normal file
BIN
exampleSite/content/users/0nunocoracao.com/feature.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 MiB |
13
exampleSite/content/users/0nunocoracao.com/index.md
Normal file
13
exampleSite/content/users/0nunocoracao.com/index.md
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
title: "nunocoracao.com"
|
||||||
|
slug: "users"
|
||||||
|
tags: []
|
||||||
|
externalUrl: "https://nunocoracao.com"
|
||||||
|
showDate: false
|
||||||
|
showAuthor: false
|
||||||
|
showReadingTime: false
|
||||||
|
showEdit: false
|
||||||
|
showLikes: false
|
||||||
|
showViews: false
|
||||||
|
layoutBackgroundHeaderSpace: false
|
||||||
|
---
|
|
@ -1,13 +0,0 @@
|
||||||
---
|
|
||||||
title: "madoke.org"
|
|
||||||
slug: "users"
|
|
||||||
tags: []
|
|
||||||
externalUrl: ""
|
|
||||||
showDate: false
|
|
||||||
showAuthor: false
|
|
||||||
showReadingTime: false
|
|
||||||
showEdit: false
|
|
||||||
showLikes: false
|
|
||||||
showViews: false
|
|
||||||
layoutBackgroundHeaderSpace: false
|
|
||||||
---
|
|
BIN
exampleSite/content/users/1madoke.org/feature.png
Normal file
BIN
exampleSite/content/users/1madoke.org/feature.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 59 KiB |
13
exampleSite/content/users/1madoke.org/index.md
Normal file
13
exampleSite/content/users/1madoke.org/index.md
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
title: "madoke.org"
|
||||||
|
slug: "users"
|
||||||
|
tags: []
|
||||||
|
externalUrl: "https://madoke.org/"
|
||||||
|
showDate: false
|
||||||
|
showAuthor: false
|
||||||
|
showReadingTime: false
|
||||||
|
showEdit: false
|
||||||
|
showLikes: false
|
||||||
|
showViews: false
|
||||||
|
layoutBackgroundHeaderSpace: false
|
||||||
|
---
|
|
@ -20,7 +20,7 @@ Real websites that are built with Blowfish.
|
||||||
|
|
||||||
{{< alert >}}
|
{{< alert >}}
|
||||||
|
|
||||||
**Blowfish user?** To add your site to this list, [submit a pull request](https://github.com/nunocoracao/blowfish/blob/main/exampleSite/content/users/index.md).
|
**Blowfish user?** To add your site to this list, [submit a pull request](https://github.com/nunocoracao/blowfish/blob/main/exampleSite/content/users/users.json).
|
||||||
|
|
||||||
{{</ alert >}}
|
{{</ alert >}}
|
||||||
|
|
||||||
|
|
|
@ -1,91 +0,0 @@
|
||||||
---
|
|
||||||
title: "Users"
|
|
||||||
date: 2020-08-14
|
|
||||||
draft: false
|
|
||||||
description: "Some real-life Blowfish examples."
|
|
||||||
slug: "users"
|
|
||||||
tags: ["users", "sample"]
|
|
||||||
showDate: false
|
|
||||||
showAuthor: false
|
|
||||||
showReadingTime: false
|
|
||||||
showEdit: false
|
|
||||||
layoutBackgroundHeaderSpace: false
|
|
||||||
---
|
|
||||||
|
|
||||||
|
|
||||||
{{< lead >}}
|
|
||||||
Real websites that are built with Blowfish.
|
|
||||||
{{< /lead >}}
|
|
||||||
|
|
||||||
|
|
||||||
{{< alert >}}
|
|
||||||
|
|
||||||
**Blowfish user?** To add your site to this list, [submit a pull request](https://github.com/nunocoracao/blowfish/blob/main/exampleSite/content/users/index.md).
|
|
||||||
|
|
||||||
{{</ alert >}}
|
|
||||||
|
|
||||||
| Website | Details |
|
|
||||||
| --------------------------------------------------------------------- | ---------------------------- |
|
|
||||||
| [nunocoracao.com](https://nunocoracao.com) | Personal site - Theme author |
|
|
||||||
| [madoke.org](https://madoke.org/) | Personal site |
|
|
||||||
| [code-chimp.com](https://code-chimp.com) | Personal site |
|
|
||||||
| [mucahitkurtlar.github.io](https://mucahitkurtlar.github.io) | Personal site |
|
|
||||||
| [brendanwallace.github.io](https://brendanwallace.github.io) | Personal site |
|
|
||||||
| [fedeizzo.dev](https://fedeizzo.dev) | Personal site |
|
|
||||||
| [cuttontail.blog](https://cuttontail.blog) | Personal site |
|
|
||||||
| [pmnxis.github.io](https://pmnxis.github.io) | Personal site |
|
|
||||||
| [ciicadalab.github.io](https://ciicadalab.github.io) | Organization site |
|
|
||||||
| [georgiancodeclub.github.io](https://georgiancodeclub.github.io) | College club site |
|
|
||||||
| [albertolvera.com](https://albertolvera.com) | Personal site |
|
|
||||||
| [chris.banes.dev](https://chris.banes.dev) | Personal site |
|
|
||||||
| [fahru.my.id](https://www.fahru.my.id) | Personal site |
|
|
||||||
| [jeknom.github.io](https://jeknom.github.io) | Personal site |
|
|
||||||
| [blog.watchstep.me](https://blog.watchstep.me) | Personal site |
|
|
||||||
| [overdevelop.io](https://overdevelop.io) | Personal site |
|
|
||||||
| [loisvelasco.is-a.dev](https://loisvelasco.is-a.dev) | Personal site |
|
|
||||||
| [tabletopflore.com](https://www.tabletopflore.com) | Personal site |
|
|
||||||
| [omarohn.de](https://omarohn.de) | Personal site |
|
|
||||||
| [spelucin.me](https://spelucin.me) | Personal site |
|
|
||||||
| [insidemordecai.com](https://insidemordecai.com) | Personal site |
|
|
||||||
| [jamesdixon.dev](https://jamesdixon.dev) | Personal site |
|
|
||||||
| [blastomussa.dev](https://blastomussa.dev) | Personal site |
|
|
||||||
| [cdell.io](https://cdell.io) | Personal site |
|
|
||||||
| [jam.dsg.li](https://jam.dsg.li) | Organization site |
|
|
||||||
| [priyakdey.com](https://priyakdey.com) | Personal site |
|
|
||||||
| [sdehm.dev](https://sdehm.dev) | Personal site |
|
|
||||||
| [dizzytech.de](https://dizzytech.de) | Personal site |
|
|
||||||
| [alejandro-ao.com](https://alejandro-ao.com/) | Personal site |
|
|
||||||
| [adir1.com](https://adir1.com/) | Personal site |
|
|
||||||
| [niklas-hartmann-dev.de](https://niklas-hartmann-dev.de/) | Personal site |
|
|
||||||
| [blog.muffn.io](https://blog.muffn.io/) | Personal site |
|
|
||||||
| [nick.bouwhuis.net](https://nick.bouwhuis.net) | Personal site |
|
|
||||||
| [vividscc.com](https://vividscc.com/) | Business site |
|
|
||||||
| [muhalvin.github.io](https://muhalvin.github.io/) | Personal site |
|
|
||||||
| [mariuskimmina.com](https://mariuskimmina.com/) | Personal site |
|
|
||||||
| [ashwinbalaji.xyz](https://ashwinbalaji.xyz/) | Personal site |
|
|
||||||
| [technicat.com](https://technicat.com/) | Company site |
|
|
||||||
| [fugugames.com](https://fugugames.com/) | Games site |
|
|
||||||
| [hyperbowl3d.com](https://hyperbowl3d.com/) | Game site |
|
|
||||||
| [talkdimsum.com](https://talkdimsum.com/) | App site |
|
|
||||||
| [alanctanner.com](https://alanctanner.com/) | Personal site |
|
|
||||||
| [rdgo.dev](https://rdgo.dev/) | Personal site |
|
|
||||||
| [ripplesding.github.io](https://ripplesding.github.io/) | Personal site |
|
|
||||||
| [terraformbuch.de](https://terraformbuch.de/) | Book site |
|
|
||||||
| [shenshu.fun](https://shenshu.fun/) | Personal site |
|
|
||||||
| [hellstabber.github.io](https://hellstabber.github.io/) | Personal site |
|
|
||||||
| [clemsau.com](https://clemsau.com/) | Personal site |
|
|
||||||
| [lelouvincx.github.io](https://lelouvincx.github.io/) | Personal site |
|
|
||||||
| [weaxsey.org](https://weaxsey.org/) | Personal site |
|
|
||||||
| [nikarashihatsu.github.io](https://nikarashihatsu.github.io/) | Personal site |
|
|
||||||
| [blog.enmanuelmoreira.com](https://blog.enmanuelmoreira.com) | Personal site |
|
|
||||||
| [halcyonstraits.com](https://www.halcyonstraits.com/) | Doll photography |
|
|
||||||
| [50-nuances-octets.fr](https://www.50-nuances-octets.fr/) | Organization site |
|
|
||||||
| [marupanda.art/marucomics](https://marupanda.art/marucomics/) | Comics site |
|
|
||||||
| [seanomahoney.com](https://seanomahoney.com/) | Personal site |
|
|
||||||
| [pacochan.net](https://pacochan.net) | Personal site |
|
|
||||||
|
|
||||||
{{< alert >}}
|
|
||||||
|
|
||||||
**Blowfish user?** To add your site to this list, [submit a pull request](https://github.com/nunocoracao/blowfish/blob/main/exampleSite/content/users/index.md).
|
|
||||||
|
|
||||||
{{</ alert >}}
|
|
|
@ -1,13 +0,0 @@
|
||||||
---
|
|
||||||
title: "nunocoracao.com"
|
|
||||||
slug: "users"
|
|
||||||
tags: ["Personal site", "Theme author"]
|
|
||||||
externalUrl: "https://nunocoracao.com"
|
|
||||||
showDate: false
|
|
||||||
showAuthor: false
|
|
||||||
showReadingTime: false
|
|
||||||
showEdit: false
|
|
||||||
showLikes: false
|
|
||||||
showViews: false
|
|
||||||
layoutBackgroundHeaderSpace: false
|
|
||||||
---
|
|
Binary file not shown.
After Width: | Height: | Size: 866 KiB |
Binary file not shown.
After Width: | Height: | Size: 213 KiB |
Binary file not shown.
After Width: | Height: | Size: 48 KiB |
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
|
@ -6,31 +6,68 @@ 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);
|
||||||
|
|
||||||
|
const files = fs.readdirSync(usersFolderPath);
|
||||||
|
console.log(files);
|
||||||
|
|
||||||
|
for (file in files) {
|
||||||
|
|
||||||
for(var i in users){
|
let stats = fs.statSync(usersFolderPath + files[file]);
|
||||||
console.log(i, users[i].title);
|
if (files[file] != 'users.json' && files[file] != '_index.md' && files[file] != 'tempusers.txt' && files[file] != 'oldindex.md') {
|
||||||
|
console.log('deleting: ', files[file]);
|
||||||
var userMDFile = "---\n\
|
if (stats.isDirectory()) {
|
||||||
title: \""+users[i].title+"\"\n\
|
fs.rmdirSync(usersFolderPath + files[file], { recursive: true, force: true });
|
||||||
slug: \"users\"\n\
|
} else {
|
||||||
tags: []\n\
|
fs.unlinkSync(usersFolderPath + files[file]);
|
||||||
externalUrl: \"\"\n\
|
}
|
||||||
showDate: false\n\
|
}
|
||||||
showAuthor: false\n\
|
|
||||||
showReadingTime: false\n\
|
|
||||||
showEdit: false\n\
|
|
||||||
showLikes: false\n\
|
|
||||||
showViews: false\n\
|
|
||||||
layoutBackgroundHeaderSpace: false\n\
|
|
||||||
\r---\n"
|
|
||||||
|
|
||||||
fs.writeFileSync(usersFolderPath + i + users[i].title + '.md', userMDFile);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
puppeteer
|
||||||
|
.launch({
|
||||||
|
defaultViewport: {
|
||||||
|
width: 1280,
|
||||||
|
height: 800,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
.then(async (browser) => {
|
||||||
|
|
||||||
|
const page = await browser.newPage();
|
||||||
|
|
||||||
|
for (var i in users) {
|
||||||
|
console.log(i, users[i].title);
|
||||||
|
|
||||||
|
var userMDFile = "---\n\
|
||||||
|
title: \""+ users[i].title + "\"\n\
|
||||||
|
slug: \"users\"\n\
|
||||||
|
tags: []\n\
|
||||||
|
externalUrl: \""+ users[i].url + "\"\n\
|
||||||
|
showDate: false\n\
|
||||||
|
showAuthor: false\n\
|
||||||
|
showReadingTime: false\n\
|
||||||
|
showEdit: false\n\
|
||||||
|
showLikes: false\n\
|
||||||
|
showViews: false\n\
|
||||||
|
layoutBackgroundHeaderSpace: false\n\
|
||||||
|
\r---\n";
|
||||||
|
|
||||||
|
var dir = usersFolderPath + i + users[i].title;
|
||||||
|
|
||||||
|
if (!fs.existsSync(dir)) {
|
||||||
|
fs.mkdirSync(dir);
|
||||||
|
}
|
||||||
|
|
||||||
|
fs.writeFileSync(dir + '/index.md', userMDFile);
|
||||||
|
|
||||||
|
await page.goto(users[i].url);
|
||||||
|
await page.screenshot({ path: dir + "/feature.png" });
|
||||||
|
}
|
||||||
|
|
||||||
|
await browser.close();
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
puppeteer
|
puppeteer
|
||||||
.launch({
|
.launch({
|
||||||
|
|
Loading…
Reference in a new issue