Merge pull request #840 from nunocoracao/dev

🔖 v2.38.0
This commit is contained in:
Nuno Coração 2023-07-20 21:39:33 +01:00 committed by GitHub
commit 17a53b56e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
65 changed files with 76 additions and 45 deletions

View file

@ -51,7 +51,7 @@ jobs:
run: | run: |
hugo --minify -s exampleSite --themesDir ../.. -d ../docs --baseURL https://nunocoracao.github.io/blowfish/ hugo --minify -s exampleSite --themesDir ../.. -d ../docs --baseURL https://nunocoracao.github.io/blowfish/
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v1 uses: actions/upload-pages-artifact@v2
with: with:
path: ./docs path: ./docs

2
FUNDING.yml Normal file
View file

@ -0,0 +1,2 @@
github: [nunocoracao]
custom: ["https://www.paypal.me/nunocoracao", "https://www.buymeacoffee.com/nunocoracao"]

View file

@ -1,6 +1,6 @@
/*! Blowfish | MIT License | https://github.com/nunocoracao/blowfish */ /*! Blowfish | MIT License | https://github.com/nunocoracao/blowfish */
/*! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com */ /*! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com */
/* /*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
@ -191,6 +191,10 @@ select,
textarea { textarea {
font-family: inherit; font-family: inherit;
/* 1 */ /* 1 */
font-feature-settings: inherit;
/* 1 */
font-variation-settings: inherit;
/* 1 */
font-size: 100%; font-size: 100%;
/* 1 */ /* 1 */
font-weight: inherit; font-weight: inherit;
@ -341,6 +345,14 @@ menu {
padding: 0; padding: 0;
} }
/*
Reset default styling for dialogs.
*/
dialog {
padding: 0;
}
/* /*
Prevent resizing textareas horizontally by default. Prevent resizing textareas horizontally by default.
*/ */
@ -422,7 +434,7 @@ video {
display: none; display: none;
} }
[type='text'],[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select { [type='text'],input:where(:not([type])),[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select {
-webkit-appearance: none; -webkit-appearance: none;
-moz-appearance: none; -moz-appearance: none;
appearance: none; appearance: none;
@ -439,7 +451,7 @@ video {
--tw-shadow: 0 0 #0000; --tw-shadow: 0 0 #0000;
} }
[type='text']:focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus { [type='text']:focus, input:where(:not([type])):focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus {
outline: 2px solid transparent; outline: 2px solid transparent;
outline-offset: 2px; outline-offset: 2px;
--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/); --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
@ -485,7 +497,7 @@ select {
print-color-adjust: exact; print-color-adjust: exact;
} }
[multiple] { [multiple],[size]:where(select:not([size="1"])) {
background-image: initial; background-image: initial;
background-position: initial; background-position: initial;
background-repeat: unset; background-repeat: unset;

File diff suppressed because one or more lines are too long

View file

@ -2,4 +2,4 @@
[module.hugoVersion] [module.hugoVersion]
extended = true extended = true
min = "0.87.0" min = "0.87.0"
max = "0.115.3" max = "0.115.4"

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

@ -378,6 +378,13 @@
"Personal site" "Personal site"
] ]
}, },
{
"title": "m3upt.com",
"url": "https://m3upt.com",
"tags": [
"Project site"
]
},
{ {
"title": "pacochan.net", "title": "pacochan.net",
"url": "https://pacochan.net", "url": "https://pacochan.net",

View file

@ -17,7 +17,7 @@
<link>{{ .Permalink }}</link> <link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description> <description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator> <generator>Hugo -- gohugo.io</generator>
<language>{{ site.Language.LanguageCode }}</language>{{ with .Site.Author.email }} <language>{{ site.LanguageCode }}</language>{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }} <managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}} <webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}
{{ if .Site.Params.footer.showCopyright | default true -}} {{ if .Site.Params.footer.showCopyright | default true -}}

View file

@ -34,7 +34,7 @@
{{ . | markdownify | emojify }} {{ . | markdownify | emojify }}
</h2> </h2>
{{ end }} {{ end }}
<div class="mt-1 mb-10 text-2xl"> <div class="mt-3 mb-10 text-2xl">
{{ with .Site.Author.links }} {{ with .Site.Author.links }}
<div class="flex flex-wrap"> <div class="flex flex-wrap">
{{ range $links := . }} {{ range $links := . }}

44
package-lock.json generated
View file

@ -24,8 +24,8 @@
"packery": "^2.1.2", "packery": "^2.1.2",
"prettier": "^2.8.8", "prettier": "^2.8.8",
"prettier-plugin-go-template": "^0.0.13", "prettier-plugin-go-template": "^0.0.13",
"prettier-plugin-tailwindcss": "^0.4.0", "prettier-plugin-tailwindcss": "^0.4.1",
"puppeteer": "^20.8.2", "puppeteer": "^20.8.3",
"rimraf": "^5.0.1", "rimraf": "^5.0.1",
"tailwindcss": "^3.3.3", "tailwindcss": "^3.3.3",
"tw-elements": "1.0.0-beta2", "tw-elements": "1.0.0-beta2",
@ -1839,9 +1839,9 @@
} }
}, },
"node_modules/prettier-plugin-tailwindcss": { "node_modules/prettier-plugin-tailwindcss": {
"version": "0.4.0", "version": "0.4.1",
"resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.4.0.tgz", "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.4.1.tgz",
"integrity": "sha512-Rna0sDPETA0KNhMHlN8wxKNgfSa8mTl2hPPAGxnbv6tUcHT6J4RQmQ8TLXyhB7Dm5Von4iHloBxTyClYM6wT0A==", "integrity": "sha512-hwn2EiJmv8M+AW4YDkbjJ6HlZCTzLyz1QlySn9sMuKV/Px0fjwldlB7tol8GzdgqtkdPtzT3iJ4UzdnYXP25Ag==",
"dev": true, "dev": true,
"engines": { "engines": {
"node": ">=12.17.0" "node": ">=12.17.0"
@ -1938,24 +1938,24 @@
} }
}, },
"node_modules/puppeteer": { "node_modules/puppeteer": {
"version": "20.8.2", "version": "20.8.3",
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-20.8.2.tgz", "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-20.8.3.tgz",
"integrity": "sha512-+VRywTRGF09UyiesFL7pcU19Cq7vf2HsE/eulwSpl7YHcr8g8X+Va4qLmp7mOECwteGvP7rU8vQ7PP43fcubbA==", "integrity": "sha512-NaJEZkhRmcIR0KTLfJktLF2aRpf+Nvr/YQi1geUSUkANWKRmIj+u+Fh9Us9tEzuuuuk56okJ+fhV4vrimQzI3g==",
"dev": true, "dev": true,
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@puppeteer/browsers": "1.4.5", "@puppeteer/browsers": "1.4.5",
"cosmiconfig": "8.2.0", "cosmiconfig": "8.2.0",
"puppeteer-core": "20.8.2" "puppeteer-core": "20.8.3"
}, },
"engines": { "engines": {
"node": ">=16.3.0" "node": ">=16.3.0"
} }
}, },
"node_modules/puppeteer-core": { "node_modules/puppeteer-core": {
"version": "20.8.2", "version": "20.8.3",
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-20.8.2.tgz", "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-20.8.3.tgz",
"integrity": "sha512-dWo60gFuFPdNhdabW9MMm6GpvkG6tND2D8FvrZ2MF+HggNApHrvLfbERj8vD6vXKV7UqDAJO0KI1OMo3S3Cm5w==", "integrity": "sha512-/57/tKtjjRyPP/FgZMG+nkmyajm4OXms6Qu0r8sbTu5tyIbCQTqx82yZj859Rx0Zf0enOVEnN1pD9cqVc9i78g==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@puppeteer/browsers": "1.4.5", "@puppeteer/browsers": "1.4.5",
@ -4270,9 +4270,9 @@
} }
}, },
"prettier-plugin-tailwindcss": { "prettier-plugin-tailwindcss": {
"version": "0.4.0", "version": "0.4.1",
"resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.4.0.tgz", "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.4.1.tgz",
"integrity": "sha512-Rna0sDPETA0KNhMHlN8wxKNgfSa8mTl2hPPAGxnbv6tUcHT6J4RQmQ8TLXyhB7Dm5Von4iHloBxTyClYM6wT0A==", "integrity": "sha512-hwn2EiJmv8M+AW4YDkbjJ6HlZCTzLyz1QlySn9sMuKV/Px0fjwldlB7tol8GzdgqtkdPtzT3iJ4UzdnYXP25Ag==",
"dev": true, "dev": true,
"requires": {} "requires": {}
}, },
@ -4299,20 +4299,20 @@
} }
}, },
"puppeteer": { "puppeteer": {
"version": "20.8.2", "version": "20.8.3",
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-20.8.2.tgz", "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-20.8.3.tgz",
"integrity": "sha512-+VRywTRGF09UyiesFL7pcU19Cq7vf2HsE/eulwSpl7YHcr8g8X+Va4qLmp7mOECwteGvP7rU8vQ7PP43fcubbA==", "integrity": "sha512-NaJEZkhRmcIR0KTLfJktLF2aRpf+Nvr/YQi1geUSUkANWKRmIj+u+Fh9Us9tEzuuuuk56okJ+fhV4vrimQzI3g==",
"dev": true, "dev": true,
"requires": { "requires": {
"@puppeteer/browsers": "1.4.5", "@puppeteer/browsers": "1.4.5",
"cosmiconfig": "8.2.0", "cosmiconfig": "8.2.0",
"puppeteer-core": "20.8.2" "puppeteer-core": "20.8.3"
} }
}, },
"puppeteer-core": { "puppeteer-core": {
"version": "20.8.2", "version": "20.8.3",
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-20.8.2.tgz", "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-20.8.3.tgz",
"integrity": "sha512-dWo60gFuFPdNhdabW9MMm6GpvkG6tND2D8FvrZ2MF+HggNApHrvLfbERj8vD6vXKV7UqDAJO0KI1OMo3S3Cm5w==", "integrity": "sha512-/57/tKtjjRyPP/FgZMG+nkmyajm4OXms6Qu0r8sbTu5tyIbCQTqx82yZj859Rx0Zf0enOVEnN1pD9cqVc9i78g==",
"dev": true, "dev": true,
"requires": { "requires": {
"@puppeteer/browsers": "1.4.5", "@puppeteer/browsers": "1.4.5",

View file

@ -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",
@ -42,8 +42,8 @@
"packery": "^2.1.2", "packery": "^2.1.2",
"prettier": "^2.8.8", "prettier": "^2.8.8",
"prettier-plugin-go-template": "^0.0.13", "prettier-plugin-go-template": "^0.0.13",
"prettier-plugin-tailwindcss": "^0.4.0", "prettier-plugin-tailwindcss": "^0.4.1",
"puppeteer": "^20.8.2", "puppeteer": "^20.8.3",
"rimraf": "^5.0.1", "rimraf": "^5.0.1",
"tailwindcss": "^3.3.3", "tailwindcss": "^3.3.3",
"tw-elements": "1.0.0-beta2", "tw-elements": "1.0.0-beta2",

View file

@ -17,10 +17,7 @@ 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,7 +42,6 @@ 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\
@ -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" });