Compare commits

...

18 Commits

Author SHA1 Message Date
Nuno Coração b6744efbf2 Merge pull request #1123 from nunocoracao/dev
🔖 v2.48.0
2023-12-14 13:20:04 +00:00
Nuno Coração ff9839965f Merge pull request #1121 from nunocoracao/1115-external-markdown-importer-shortcode
 External Markdown Importer Shortcode
2023-12-14 12:38:03 +00:00
Nuno Coração 2fc94cb599 External Markdown Importer Shortcode 2023-12-14 12:37:23 +00:00
Nuno Coração 88731e553b Merge pull request #1120 from nunocoracao/1104-handle-enter-key-in-search
💖 Handle Enter key in search
2023-12-14 12:13:40 +00:00
Nuno Coração 4c41435a11 💖 Handle Enter key in search 2023-12-14 12:12:49 +00:00
Nuno Coração 5cae118d74 Merge pull request #1119 from nunocoracao/1102-update-theme-to-support-hugo-v01211
⚙️ Update theme to support Hugo v0.121.1
2023-12-14 12:08:32 +00:00
Nuno Coração 162f02e4b5 ⚙️ Update theme to support Hugo v0.121.1 2023-12-14 12:08:04 +00:00
Nuno Coração 4551b18fb8 add user 2023-12-14 12:03:42 +00:00
Nuno Coração ba0f9070ef Merge pull request #1113 from TechnicalDC/patch-1
👤 Added `technicaldc.github.io` in blowfish user list
2023-12-14 11:51:31 +00:00
Nuno Coração bf8170fec0 Merge pull request #1116 from nunocoracao/dependabot/npm_and_yarn/dev/prettier-3.1.1
📌 Bump prettier from 3.1.0 to 3.1.1
2023-12-14 11:46:46 +00:00
Nuno Coração 8fd87fd8a3 Merge pull request #1117 from nunocoracao/dependabot/npm_and_yarn/dev/puppeteer-21.6.0
📌 Bump puppeteer from 21.5.2 to 21.6.0
2023-12-14 11:46:17 +00:00
Nuno Coração 39695820d7 Merge pull request #1118 from nunocoracao/dependabot/github_actions/dev/actions/stale-9
👷 Bump actions/stale from 8 to 9
2023-12-14 11:46:07 +00:00
dependabot[bot] 02553cf01d 👷 Bump actions/stale from 8 to 9
Bumps [actions/stale](https://github.com/actions/stale) from 8 to 9.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v8...v9)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-13 05:30:20 +00:00
dependabot[bot] b0ecb9508f 📌 Bump puppeteer from 21.5.2 to 21.6.0
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 21.5.2 to 21.6.0.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/release-please-config.json)
- [Commits](https://github.com/puppeteer/puppeteer/compare/puppeteer-v21.5.2...puppeteer-v21.6.0)

---
updated-dependencies:
- dependency-name: puppeteer
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-13 05:28:40 +00:00
dependabot[bot] 302e035e23 📌 Bump prettier from 3.1.0 to 3.1.1
Bumps [prettier](https://github.com/prettier/prettier) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.1.0...3.1.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-13 05:28:25 +00:00
Dilip Chauhan fa650e192b Update users.json 2023-12-10 18:09:45 +05:30
Nuno Coração ea8344a4bc Merge pull request #1099 from nunocoracao/dev
🔖 v2.47.2 - small bug fix volume 2 - like button
2023-12-06 22:18:29 +00:00
Nuno Coração 80d2a65a0c small bug fix volume 2 - like button 2023-12-06 22:17:39 +00:00
10 changed files with 108 additions and 43 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ jobs:
pull-requests: write pull-requests: write
steps: steps:
- uses: actions/stale@v8 - uses: actions/stale@v9
with: with:
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue will be closed since it has been stale for 60 days.' stale-issue-message: 'This issue will be closed since it has been stale for 60 days.'
+9 -9
View File
@@ -33,9 +33,9 @@ if (typeof auth !== 'undefined') {
if (liked) { if (liked) {
liked_page = true liked_page = true
document.querySelectorAll("span[id='likes_button_heart']")[0].style.display = "" document.querySelectorAll("span[id='button_likes_heart']")[0].style.display = ""
document.querySelectorAll("span[id='likes_button_emtpty_heart']")[0].style.display = "none" document.querySelectorAll("span[id='button_likes_emtpty_heart']")[0].style.display = "none"
document.querySelectorAll("span[id='likes_button_text']")[0].innerText = "" document.querySelectorAll("span[id='button_likes_text']")[0].innerText = ""
} }
} }
@@ -47,9 +47,9 @@ function like_article(id_likes) {
docRef.get().then((doc) => { docRef.get().then((doc) => {
liked_page = true liked_page = true
localStorage.setItem(id_likes, true); localStorage.setItem(id_likes, true);
document.querySelectorAll("span[id='likes_button_heart']")[0].style.display = "" document.querySelectorAll("span[id='button_likes_heart']")[0].style.display = ""
document.querySelectorAll("span[id='likes_button_emtpty_heart']")[0].style.display = "none" document.querySelectorAll("span[id='button_likes_emtpty_heart']")[0].style.display = "none"
document.querySelectorAll("span[id='likes_button_text']")[0].innerText = "" document.querySelectorAll("span[id='button_likes_text']")[0].innerText = ""
if (doc.exists) { if (doc.exists) {
db.collection('likes').doc(id_likes).update({ db.collection('likes').doc(id_likes).update({
likes: firebase.firestore.FieldValue.increment(1) likes: firebase.firestore.FieldValue.increment(1)
@@ -75,9 +75,9 @@ function remove_like_article(id_likes) {
docRef.get().then((doc) => { docRef.get().then((doc) => {
liked_page = false liked_page = false
localStorage.removeItem(id_likes); localStorage.removeItem(id_likes);
document.querySelectorAll("span[id='likes_button_heart']")[0].style.display = "none" document.querySelectorAll("span[id='button_likes_heart']")[0].style.display = "none"
document.querySelectorAll("span[id='likes_button_emtpty_heart']")[0].style.display = "" document.querySelectorAll("span[id='button_likes_emtpty_heart']")[0].style.display = ""
document.querySelectorAll("span[id='likes_button_text']")[0].innerText = "\xa0Like" document.querySelectorAll("span[id='button_likes_text']")[0].innerText = "\xa0Like"
if (doc.exists) { if (doc.exists) {
db.collection('likes').doc(id_likes).update({ db.collection('likes').doc(id_likes).update({
likes: firebase.firestore.FieldValue.increment(-1) likes: firebase.firestore.FieldValue.increment(-1)
+1
View File
@@ -8,6 +8,7 @@ if (typeof auth !== 'undefined') {
function toggleLoaders(node){ function toggleLoaders(node){
var classesString = node.className; var classesString = node.className;
if(classesString == "") return
var classes = classesString.split(" "); var classes = classesString.split(" ");
for(var i in classes){ for(var i in classes){
node.classList.toggle(classes[i]) node.classList.toggle(classes[i])
+15
View File
@@ -63,6 +63,21 @@ document.addEventListener("keydown", function (event) {
} }
} }
} }
// Enter to get to results
if (event.key == "Enter") {
if (searchVisible && hasResults) {
event.preventDefault();
if (document.activeElement == input) {
first.focus();
} else {
document.activeElement.click();
}
}else{
event.preventDefault();
}
}
}); });
// Update search on each keypress // Update search on each keypress
+1 -1
View File
@@ -2,4 +2,4 @@
[module.hugoVersion] [module.hugoVersion]
extended = true extended = true
min = "0.87.0" min = "0.87.0"
max = "0.121.0" max = "0.121.1"
@@ -456,6 +456,31 @@ The `where` and `value` values are used in the following query `where .Site.Regu
<br/><br/><br/> <br/><br/><br/>
## Markdown Importer
This shortcode allows you to import markdown files from external sources. This is useful for including content from other repositories or websites without having to copy and paste the content.
<!-- prettier-ignore-start -->
| Parameter | Description |
| --------- | ------------------------------------------------------- |
| `url` | **Required** URL to an externally hosted markdown file. |
<!-- prettier-ignore-end -->
**Example:**
```md
{{</* mdimporter url="https://raw.githubusercontent.com/nunocoracao/nunocoracao/master/README.md" */>}}
```
{{< mdimporter url="https://raw.githubusercontent.com/nunocoracao/nunocoracao/master/README.md" >}}
<br/><br/>
## Mermaid ## Mermaid
`mermaid` allows you to draw detailed diagrams and visualisations using text. It uses Mermaid under the hood and supports a wide variety of diagrams, charts and other output formats. `mermaid` allows you to draw detailed diagrams and visualisations using text. It uses Mermaid under the hood and supports a wide variety of diagrams, charts and other output formats.
+15
View File
@@ -504,5 +504,20 @@
"Personal Site", "Personal Site",
"Blog" "Blog"
] ]
},
{
"title": "technicaldc.github.io",
"url": "https://technicaldc.github.io/",
"tags": [
"Personal Site",
"Blog"
]
},
{
"title": "binarydigit.cafe",
"url": "https://binarydigit.cafe/",
"tags": [
"Personal site"
]
} }
] ]
+6
View File
@@ -0,0 +1,6 @@
{{ $url := .Get "url"}}
{{ with resources.GetRemote (printf $url) }}
{{ .Content | markdownify }}
{{ else }}
{{ errorf "Mardown Importer Shortcode - Unable to get remote resource" . }}
{{ end }}
+32 -29
View File
@@ -1,12 +1,12 @@
{ {
"name": "hugo-blowfish-theme", "name": "hugo-blowfish-theme",
"version": "2.46.0", "version": "2.47.2",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "hugo-blowfish-theme", "name": "hugo-blowfish-theme",
"version": "2.46.0", "version": "2.47.2",
"hasInstallScript": true, "hasInstallScript": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -22,10 +22,10 @@
"jquery": "^3.7.1", "jquery": "^3.7.1",
"katex": "^0.16.9", "katex": "^0.16.9",
"packery": "^2.1.2", "packery": "^2.1.2",
"prettier": "^3.1.0", "prettier": "^3.1.1",
"prettier-plugin-go-template": "^0.0.15", "prettier-plugin-go-template": "^0.0.15",
"prettier-plugin-tailwindcss": "^0.5.9", "prettier-plugin-tailwindcss": "^0.5.9",
"puppeteer": "^21.5.2", "puppeteer": "^21.6.0",
"rimraf": "^5.0.5", "rimraf": "^5.0.5",
"tailwindcss": "^3.3.6", "tailwindcss": "^3.3.6",
"tw-elements": "1.1.0", "tw-elements": "1.1.0",
@@ -227,9 +227,9 @@
} }
}, },
"node_modules/@puppeteer/browsers": { "node_modules/@puppeteer/browsers": {
"version": "1.8.0", "version": "1.9.0",
"resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-1.8.0.tgz", "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-1.9.0.tgz",
"integrity": "sha512-TkRHIV6k2D8OlUe8RtG+5jgOF/H98Myx0M6AOafC8DdNVOFiBSFa5cpRDtpm8LXOa9sVwe0+e6Q3FC56X/DZfg==", "integrity": "sha512-QwguOLy44YBGC8vuPP2nmpX4MUN2FzWbsnvZJtiCzecU3lHmVZkaC1tq6rToi9a200m8RzlVtDyxCS0UIDrxUg==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"debug": "4.3.4", "debug": "4.3.4",
@@ -280,9 +280,9 @@
"dev": true "dev": true
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "20.9.4", "version": "20.10.4",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.9.4.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.4.tgz",
"integrity": "sha512-wmyg8HUhcn6ACjsn8oKYjkN/zUzQeNtMy44weTJSM6p4MMzEOuKbA3OjJ267uPCOW7Xex9dyrNTful8XTQYoDA==", "integrity": "sha512-D08YG6rr8X90YB56tSIuBaddy/UXAA9RKJoFvrsnogAum/0pmjkgi4+2nx96A330FmioegBWmEYQ+syqCFaveg==",
"dev": true, "dev": true,
"optional": true, "optional": true,
"dependencies": { "dependencies": {
@@ -599,9 +599,9 @@
} }
}, },
"node_modules/chromium-bidi": { "node_modules/chromium-bidi": {
"version": "0.4.33", "version": "0.5.1",
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.33.tgz", "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.5.1.tgz",
"integrity": "sha512-IxoFM5WGQOIAd95qrSXzJUv4eXIrh+RvU3rwwqIiwYuvfE7U/Llj4fejbsJnjJMUYCuGtVQsY2gv7oGl4aTNSQ==", "integrity": "sha512-dcCqOgq9fHKExc2R4JZs/oKbOghWpUNFAJODS8WKRtLhp3avtIH5UDCBrutdqZdh3pARogH8y1ObXm87emwb3g==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"mitt": "3.0.1", "mitt": "3.0.1",
@@ -2005,9 +2005,9 @@
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="
}, },
"node_modules/prettier": { "node_modules/prettier": {
"version": "3.1.0", "version": "3.1.1",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.0.tgz", "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.1.tgz",
"integrity": "sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==", "integrity": "sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==",
"dev": true, "dev": true,
"bin": { "bin": {
"prettier": "bin/prettier.cjs" "prettier": "bin/prettier.cjs"
@@ -2157,28 +2157,31 @@
} }
}, },
"node_modules/puppeteer": { "node_modules/puppeteer": {
"version": "21.5.2", "version": "21.6.0",
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-21.5.2.tgz", "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-21.6.0.tgz",
"integrity": "sha512-BaAGJOq8Fl6/cck6obmwaNLksuY0Bg/lIahCLhJPGXBFUD2mCffypa4A592MaWnDcye7eaHmSK9yot0pxctY8A==", "integrity": "sha512-u6JhSF7xaPYZ2gd3tvhYI8MwVAjLc3Cazj7UWvMV95A07/y7cIjBwYUiMU9/jm4z0FSUORriLX/RZRaiASNWPw==",
"dev": true, "dev": true,
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@puppeteer/browsers": "1.8.0", "@puppeteer/browsers": "1.9.0",
"cosmiconfig": "8.3.6", "cosmiconfig": "8.3.6",
"puppeteer-core": "21.5.2" "puppeteer-core": "21.6.0"
},
"bin": {
"puppeteer": "lib/esm/puppeteer/node/cli.js"
}, },
"engines": { "engines": {
"node": ">=16.13.2" "node": ">=16.13.2"
} }
}, },
"node_modules/puppeteer-core": { "node_modules/puppeteer-core": {
"version": "21.5.2", "version": "21.6.0",
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.5.2.tgz", "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.6.0.tgz",
"integrity": "sha512-v4T0cWnujSKs+iEfmb8ccd7u4/x8oblEyKqplqKnJ582Kw8PewYAWvkH4qUWhitN3O2q9RF7dzkvjyK5HbzjLA==", "integrity": "sha512-1vrzbp2E1JpBwtIIrriWkN+A0afUxkqRuFTC3uASc5ql6iuK9ppOdIU/CPGKwOyB4YFIQ16mRbK0PK19mbXnaQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@puppeteer/browsers": "1.8.0", "@puppeteer/browsers": "1.9.0",
"chromium-bidi": "0.4.33", "chromium-bidi": "0.5.1",
"cross-fetch": "4.0.0", "cross-fetch": "4.0.0",
"debug": "4.3.4", "debug": "4.3.4",
"devtools-protocol": "0.0.1203626", "devtools-protocol": "0.0.1203626",
@@ -2457,9 +2460,9 @@
} }
}, },
"node_modules/streamx": { "node_modules/streamx": {
"version": "2.15.5", "version": "2.15.6",
"resolved": "https://registry.npmjs.org/streamx/-/streamx-2.15.5.tgz", "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.15.6.tgz",
"integrity": "sha512-9thPGMkKC2GctCzyCUjME3yR03x2xNo0GPKGkRw2UMYN+gqWa9uqpyNWhmsNCutU5zHmkUum0LsCRQTXUgUCAg==", "integrity": "sha512-q+vQL4AAz+FdfT137VF69Cc/APqUbxy+MDOImRrMvchJpigHj9GksgDU2LYbO9rx7RX6osWgxJB2WxhYv4SZAw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"fast-fifo": "^1.1.0", "fast-fifo": "^1.1.0",
+3 -3
View File
@@ -1,6 +1,6 @@
{ {
"name": "hugo-blowfish-theme", "name": "hugo-blowfish-theme",
"version": "2.47.1", "version": "2.47.2",
"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",
@@ -40,10 +40,10 @@
"jquery": "^3.7.1", "jquery": "^3.7.1",
"katex": "^0.16.9", "katex": "^0.16.9",
"packery": "^2.1.2", "packery": "^2.1.2",
"prettier": "^3.1.0", "prettier": "^3.1.1",
"prettier-plugin-go-template": "^0.0.15", "prettier-plugin-go-template": "^0.0.15",
"prettier-plugin-tailwindcss": "^0.5.9", "prettier-plugin-tailwindcss": "^0.5.9",
"puppeteer": "^21.5.2", "puppeteer": "^21.6.0",
"rimraf": "^5.0.5", "rimraf": "^5.0.5",
"tailwindcss": "^3.3.6", "tailwindcss": "^3.3.6",
"tw-elements": "1.1.0", "tw-elements": "1.1.0",