Compare commits

...

77 Commits

Author SHA1 Message Date
Nuno Coração
00c1079609 Merge pull request #1083 from nunocoracao/dev
🔖 v2.46.0
2023-12-01 14:33:40 +00:00
Nuno Coração
20e0eb9b1b update version and user list 2023-12-01 13:45:31 +00:00
Nuno Coração
ce175a3c82 Merge branch 'dev' of https://github.com/nunocoracao/blowfish into dev 2023-12-01 13:43:12 +00:00
Nuno Coração
b15c3321a1 Merge pull request #1082 from nunocoracao/1074-card-view-in-list-shortcode
 Card View in List Shortcode
2023-12-01 13:42:03 +00:00
Nuno Coração
98fa8bf604 Card View in List Shortcode 2023-12-01 13:41:14 +00:00
Nuno Coração
f8c0ea1327 Merge pull request #1081 from nunocoracao/1053-extra-spacing-between-icons-could-push-them-to-a-second-row
reduce icon spacing
2023-12-01 13:32:38 +00:00
Nuno Coração
1b83a34d99 reduce icon spacing 2023-12-01 13:32:08 +00:00
Nuno Coração
0025b897b3 Merge pull request #1080 from nunocoracao/953-is-there-an-option-to-ommit-the-title-beside-the-logo
Add option to hide text in header
2023-12-01 13:28:54 +00:00
Nuno Coração
33b3302a61 Add option to hide text in header 2023-12-01 13:28:24 +00:00
Nuno Coração
8e2dd360fe Merge pull request #1079 from nunocoracao/949-empty-hamburger-visible
Empty hamburger visible
2023-12-01 13:21:05 +00:00
Nuno Coração
242c43ed78 Empty hamburger visible 2023-12-01 13:20:24 +00:00
Nuno Coração
723da1ace0 Merge pull request #1078 from nunocoracao/956-missing-pointer-cursor-for-tag-badge-in-article-view
Missing pointer-cursor for tag-badge in article view
2023-12-01 13:16:22 +00:00
Nuno Coração
24cd703277 Missing pointer-cursor for tag-badge in article view 2023-12-01 13:15:45 +00:00
Nuno Coração
7a1db331ee Merge pull request #1077 from nunocoracao/957-dont-center-align-code-within-blocks
Don't center-align code within blocks
2023-12-01 12:51:01 +00:00
Nuno Coração
60bdf84f37 Don't center-align code within blocks 2023-12-01 12:50:30 +00:00
Nuno Coração
be435940ac Merge pull request #1076 from nunocoracao/959-heading-first-child-styling-not-working
🐛 Heading first-child styling not working
2023-12-01 12:16:01 +00:00
Nuno Coração
4c9e372ef7 Heading first-child styling not working 2023-12-01 12:15:20 +00:00
Nuno Coração
87144481c9 Merge branch 'dev' of https://github.com/nunocoracao/blowfish into dev 2023-12-01 12:02:44 +00:00
Nuno Coração
e1883afd7d Merge pull request #1075 from nunocoracao/958-missing-overflow-hidden-in-simple-article-link
🐛 Missing overflow-hidden in simple article link
2023-12-01 12:01:55 +00:00
Nuno Coração
15027bf896 🐛 Missing overflow-hidden in simple article link 2023-12-01 11:59:54 +00:00
Nuno Coração
b3577c59cb Merge branch 'dev' of https://github.com/nunocoracao/blowfish into dev 2023-12-01 11:55:03 +00:00
Nuno Coração
c376f07876 Merge pull request #1073 from nunocoracao/dependabot/npm_and_yarn/dev/typeit-8.8.0
📌 Bump typeit from 8.7.1 to 8.8.0
2023-12-01 11:36:07 +00:00
Nuno Coração
98da3368d6 add user 2023-12-01 11:32:09 +00:00
Nuno Coração
13ebdb4af0 updated githubactions 2023-12-01 11:30:24 +00:00
Nuno Coração
bc3c87ff81 updated githubactions 2023-12-01 11:27:30 +00:00
Nuno Coração
9c89cadd3a add user 2023-12-01 11:23:14 +00:00
Nuno Coração
baa33ffeff Merge pull request #1071 from ItsJustRuby/feature/skip_request_for_zoom.js_if_disabled
Only send web request for zoom library if it is not disabled.
2023-12-01 11:21:54 +00:00
Nuno Coração
6c7b89c697 Merge pull request #1069 from vehagn/feature/add-blog.stonegarden.dev
chore: Adding blog.stonegarden.dev as user of Blowfish theme
2023-12-01 11:20:35 +00:00
dependabot[bot]
b271b3b107 📌 Bump typeit from 8.7.1 to 8.8.0
Bumps [typeit](https://github.com/alexmacarthur/typeit) from 8.7.1 to 8.8.0.
- [Release notes](https://github.com/alexmacarthur/typeit/releases)
- [Commits](https://github.com/alexmacarthur/typeit/compare/v8.7.1...typeit@8.8.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-29 05:45:10 +00:00
Ruby
a31607509e Only request zoom library if it is not disabled.
There is already a if condition in `footer.html` that only runs the JS
from the zoom library if it is enabled per-site.
This commit takes the same if condition and applies it in `head.html` as
well to save a unnecessary web request to `zoom.min.js` if that is the case.
2023-11-28 06:25:25 +01:00
Vegard Hagen
e7244b6bfe chore: Adding blog.stonegarden.dev as user of Blowfish theme 2023-11-26 12:35:52 +01:00
Nuno Coração
45d634f6ca Merge pull request #1067 from nunocoracao/dev
🔖 v2.45.0
2023-11-22 11:45:12 +00:00
Nuno Coração
3ec0017c4d Merge branch 'dev' of https://github.com/nunocoracao/blowfish into dev 2023-11-22 11:42:49 +00:00
Nuno Coração
93a1ec25f7 bump version and update users page 2023-11-22 11:42:39 +00:00
Nuno Coração
7f1be0dc51 Merge pull request #1059 from OldTyT/fix_i18n_ru/pinterest
🎏 [i18n/ru] Removing an extra letter in a pinterest string
2023-11-22 11:36:10 +00:00
Nuno Coração
9f3547d632 Merge pull request #1058 from xwjdsh/fix-custom-analytics-doc
📖 Fix custom analytics doc
2023-11-22 11:35:22 +00:00
Nuno Coração
22426a49c7 add users 2023-11-22 11:34:04 +00:00
Nuno Coração
d853f89921 Merge pull request #1048 from ctuIhu/patch-1
👤 Update users.json
2023-11-22 11:32:22 +00:00
Nuno Coração
cb2c3022dc Merge pull request #1066 from nunocoracao/1065-update-support-to-latest-version-of-hugo
updated support for version 0.120.4 of Hugo
2023-11-22 11:29:59 +00:00
Nuno Coração
18cbf92d47 updated support for version 0.120.4 of Hugo 2023-11-22 11:29:20 +00:00
Nuno Coração
1c4a452842 Merge pull request #1057 from nunocoracao/dependabot/npm_and_yarn/dev/prettier-plugin-tailwindcss-0.5.7
📌 Bump prettier-plugin-tailwindcss from 0.5.6 to 0.5.7
2023-11-22 11:22:45 +00:00
dependabot[bot]
3d111af0fb 📌 Bump prettier-plugin-tailwindcss from 0.5.6 to 0.5.7
Bumps [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) from 0.5.6 to 0.5.7.
- [Release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/compare/v0.5.6...v0.5.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-22 11:22:33 +00:00
Nuno Coração
dc732753a6 Merge pull request #1064 from nunocoracao/dependabot/npm_and_yarn/dev/puppeteer-21.5.2
📌 Bump puppeteer from 21.5.1 to 21.5.2
2023-11-22 11:21:52 +00:00
dependabot[bot]
f0de933424 📌 Bump puppeteer from 21.5.1 to 21.5.2
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 21.5.1 to 21.5.2.
- [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.1...puppeteer-v21.5.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-22 05:14:22 +00:00
Nuno Coração
26a1c27bef Merge pull request #1056 from nunocoracao/dependabot/npm_and_yarn/dev/tailwindcss/forms-0.5.7
📌 Bump @tailwindcss/forms from 0.5.6 to 0.5.7
2023-11-18 10:53:22 +00:00
Nuno Coração
9ef04fbe77 Merge pull request #1055 from nunocoracao/dependabot/npm_and_yarn/dev/puppeteer-21.5.1
📌 Bump puppeteer from 21.4.1 to 21.5.1
2023-11-18 10:52:57 +00:00
Nuno Coração
d474091a79 Merge pull request #1054 from nunocoracao/dependabot/npm_and_yarn/dev/prettier-3.1.0
📌 Bump prettier from 3.0.3 to 3.1.0
2023-11-18 10:52:43 +00:00
Old TyT
8f4610ec71 fix(i18n/ru.yaml): removing an extra letter in a pinterest string 2023-11-16 13:39:05 +03:00
Wen Sun
36d0e5295a Fix custom analytics doc 2023-11-15 17:09:49 +09:00
dependabot[bot]
43dfc43392 💄 Rebuild CSS 2023-11-15 05:41:57 +00:00
dependabot[bot]
0f6bfe7b03 📌 Bump @tailwindcss/forms from 0.5.6 to 0.5.7
Bumps [@tailwindcss/forms](https://github.com/tailwindlabs/tailwindcss-forms) from 0.5.6 to 0.5.7.
- [Release notes](https://github.com/tailwindlabs/tailwindcss-forms/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss-forms/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss-forms/compare/v0.5.6...v0.5.7)

---
updated-dependencies:
- dependency-name: "@tailwindcss/forms"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-15 05:41:25 +00:00
dependabot[bot]
97b7b229a6 📌 Bump puppeteer from 21.4.1 to 21.5.1
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 21.4.1 to 21.5.1.
- [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.4.1...puppeteer-v21.5.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-15 05:41:16 +00:00
dependabot[bot]
dccb479d1a 📌 Bump prettier from 3.0.3 to 3.1.0
Bumps [prettier](https://github.com/prettier/prettier) from 3.0.3 to 3.1.0.
- [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.0.3...3.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-15 05:41:03 +00:00
Christian Niel Angel
23a0e1d2fa Update users.json 2023-11-08 01:02:54 +08:00
Nuno Coração
77764f9005 Merge pull request #1046 from nunocoracao/dev
Update personal page
2023-11-04 16:45:58 +00:00
Nuno Coração
976bf23bb3 Merge branch 'dev' of https://github.com/nunocoracao/blowfish into dev 2023-11-04 16:42:47 +00:00
Nuno Coração
dbd0effce2 update personal page 2023-11-04 16:42:28 +00:00
Nuno Coração
784e161371 Merge pull request #1041 from nunocoracao/dev
🔖 v2.44.0
2023-11-02 23:34:06 +00:00
Nuno Coração
bf3f154014 Merge pull request #1043 from nunocoracao/1023-make-some-shortcodes-eg-github-card-get-their-information-dynamically
 Make GitHub and GitLab shortcodes update dynamically
2023-11-02 23:32:04 +00:00
Nuno Coração
c78d68dc0b made github and gitlab shortcodes dynamic 2023-11-02 23:30:55 +00:00
Nuno Coração
7970651f41 Merge pull request #1042 from nunocoracao/1030-carousel-transition-interval-not-working
🐛 Fixed carousel transition interval not working
2023-11-02 23:12:54 +00:00
Nuno Coração
b2f8082120 fixed carousel shortcode 2023-11-02 23:11:58 +00:00
Nuno Coração
25ee0ec2b7 updated user list and bumped version 2023-11-02 22:57:05 +00:00
Nuno Coração
e1b9050cfd Merge pull request #1040 from nunocoracao/1038-update-twitter-icon-to-x
🎨 Update twitter icon to X
2023-11-02 22:52:13 +00:00
Nuno Coração
9b12b03bdc update twitter icon to X 2023-11-02 22:51:09 +00:00
Nuno Coração
82251df74d Merge pull request #1039 from nunocoracao/1037-update-blowfish-to-support-latest-version-of-hugo-v01203
⚙️ updated support for Hugo v0.120.3
2023-11-02 22:43:08 +00:00
Nuno Coração
f36b17dc01 updated support for Hugo latest version 2023-11-02 22:42:13 +00:00
Nuno Coração
3a81de2bfd Merge pull request #1035 from joush007/patch-1
Remove non-existant site (404)
2023-11-02 22:22:52 +00:00
Nuno Coração
092bd16ba4 Merge pull request #1029 from TheDidek/main
Add website
2023-11-02 22:20:56 +00:00
Nuno Coração
2976eb3244 Merge pull request #1032 from nunocoracao/dependabot/npm_and_yarn/dev/tailwindcss-3.3.5
📌 Bump tailwindcss from 3.3.4 to 3.3.5
2023-11-02 22:20:21 +00:00
Nuno Coração
2e71afec00 Merge pull request #1031 from nunocoracao/dependabot/npm_and_yarn/dev/fuse.js-7.0.0
📌 Bump fuse.js from 6.6.2 to 7.0.0
2023-11-02 22:20:03 +00:00
Joshua K
7078f74b2b Remove non-existant site (404)
After browsing some of the pages on the users page of the blowfish site, I have found that there was a site returning a 404. Due to this I decided to remove it to make sure that things work good.

👍
2023-11-02 14:26:42 +11:00
dependabot[bot]
164107c436 💄 Rebuild CSS 2023-11-01 05:50:47 +00:00
dependabot[bot]
52961d3330 📦 Update packaged FuseJS 2023-11-01 05:50:31 +00:00
dependabot[bot]
1ea2c8b416 📌 Bump tailwindcss from 3.3.4 to 3.3.5
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 3.3.4 to 3.3.5.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v3.3.4...v3.3.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-01 05:50:13 +00:00
dependabot[bot]
46270689c5 📌 Bump fuse.js from 6.6.2 to 7.0.0
Bumps [fuse.js](https://github.com/krisk/Fuse) from 6.6.2 to 7.0.0.
- [Release notes](https://github.com/krisk/Fuse/releases)
- [Changelog](https://github.com/krisk/Fuse/blob/main/CHANGELOG.md)
- [Commits](https://github.com/krisk/Fuse/compare/v6.6.2...v7.0.0)

---
updated-dependencies:
- dependency-name: fuse.js
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-01 05:50:00 +00:00
Dawid Rejowski
0e798313e0 Add website 2023-10-30 15:15:16 +01:00
93 changed files with 381 additions and 155 deletions

View File

@@ -8,6 +8,9 @@ jobs:
- name: Hugo setup
uses: peaceiris/actions-hugo@v2.6.0
with:
hugo-version: 0.115.4
extended: true
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'

View File

@@ -10,6 +10,9 @@ jobs:
- name: Hugo setup
uses: peaceiris/actions-hugo@v2.6.0
with:
hugo-version: 0.120.4
extended: true
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'

View File

@@ -1,6 +1,6 @@
/*! Blowfish | MIT License | https://github.com/nunocoracao/blowfish */
/*! tailwindcss v3.3.4 | MIT License | https://tailwindcss.com */
/*! tailwindcss v3.3.5 | MIT License | https://tailwindcss.com */
/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
@@ -567,10 +567,26 @@ select {
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}
@media (forced-colors: active) {
[type='checkbox']:checked {
-webkit-appearance: auto;
-moz-appearance: auto;
appearance: auto;
}
}
[type='radio']:checked {
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}
@media (forced-colors: active) {
[type='radio']:checked {
-webkit-appearance: auto;
-moz-appearance: auto;
appearance: auto;
}
}
[type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus {
border-color: transparent;
background-color: currentColor;
@@ -585,6 +601,14 @@ select {
background-repeat: no-repeat;
}
@media (forced-colors: active) {
[type='checkbox']:indeterminate {
-webkit-appearance: auto;
-moz-appearance: auto;
appearance: auto;
}
}
[type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus {
border-color: transparent;
background-color: currentColor;
@@ -4890,6 +4914,10 @@ body:has(#menu-controller:checked) {
/* Custom */
pre {
text-align: left;
}
.thumbnail {
min-width: 300px;
height: 180px;

View File

@@ -339,6 +339,10 @@ body:has(#menu-controller:checked) {
/* Custom */
pre {
text-align: left;
}
.thumbnail {
min-width: 300px;
height: 180px;

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/></svg>

After

Width:  |  Height:  |  Size: 256 B

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

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

View File

@@ -58,6 +58,7 @@ title = "Blowfish"
# { tumblr = "https://username.tumblr.com" },
# { twitch = "https://twitch.tv/username" },
# { twitter = "https://twitter.com/username" },
# { x-twitter = "https://twitter.com/username" },
# { whatsapp = "https://wa.me/phone-number" },
# { youtube = "https://youtube.com/username" },
# { ko-fi = "https://ko-fi.com/username" },

View File

@@ -15,7 +15,8 @@ enableCodeCopy = false
# mainSections = ["section1", "section2"]
# robots = ""
disableImageOptimization = true
disableImageOptimization = false
disableTextInHeader = false
# defaultBackgroundImage = "IMAGE.jpg" # used as default for background images
# defaultFeaturedImage = "IMAGE.jpg" # used as default for featured images in all articles

View File

@@ -25,7 +25,7 @@
"url": "https://reddit.com/submit/?url=%s&resubmit=true&title=%s"
},
"twitter": {
"icon": "twitter",
"icon": "x-twitter",
"title": "sharing.twitter",
"url": "https://twitter.com/intent/tweet/?url=%s&text=%s"
},

View File

@@ -19,7 +19,7 @@ title = "Blowfish"
headline = "A powerful, lightweight theme for Hugo built with Tailwind CSS."
bio = "A powerful, lightweight theme for Hugo built with Tailwind CSS."
links = [
{ twitter = "https://twitter.com/burufugu" },
{ x-twitter = "https://twitter.com/burufugu" },
{ mastodon = "https://masto.ai/@blowfish" },
{ github = "https://github.com/nunocoracao/blowfish" },
]

View File

@@ -58,7 +58,7 @@
[[main]]
identifier = "twitter"
pre = "twitter"
pre = "x-twitter"
url = "https://twitter.com/burufugu"
weight = 200

View File

@@ -16,6 +16,7 @@ mainSections = ["docs"]
# robots = ""
disableImageOptimization = false
disableTextInHeader = false
defaultBackgroundImage = "/img/ocean.jpg"
defaultFeaturedImage = "/img/ocean.jpg"

View File

@@ -167,6 +167,7 @@ Many of the article defaults here can be overridden on a per article basis by sp
| `robots` | _Not set_ | String that indicates how robots should handle your site. If set, it will be output in the page head. Refer to [Google's docs](https://developers.google.com/search/docs/advanced/robots/robots_meta_tag#directives) for valid values. |
| `disableImageZoom` | `false` | Disables image zoom feature across all the images in the site. |
| `disableImageOptimization` | `false` | Disables image resize and optimization features across all the images in the site. |
| `disableTextInHeader` | `false` | Disables text in header, useful for logo based headers. |
| `defaultBackgroundImage` | _Not set_ | Default background image for both `background` homepage layout and `background` hero style |
| `defaultFeaturedImage` | _Not set_ | Default background image for all `featured` images across articles, will be overriden by a local `featured` image. |
| `highlightCurrentMenuArea` | _Not set_ | Marks menu entries in the main manu when selected |

View File

@@ -42,7 +42,7 @@ googleAnalytics = "G-MEASUREMENT_ID"
### Custom analytics providers
If you wish to use a different analytics provider on your website you can also override the analytics partial and provide your own script. Simply create the file `layouts/partials/analytics.html` in your project and it will automatically include it in the `<head>` of the website.
If you wish to use a different analytics provider on your website you can also override the analytics partial and provide your own script. Simply create the file `layouts/partials/extend-head.html` in your project and it will automatically include it in the `<head>` of the website.
## Comments

View File

@@ -16,12 +16,12 @@ In addition to all the [default Hugo shortcodes](https://gohugo.io/content-manag
`alert` outputs its contents as a stylised message box within your article. It's useful for drawing attention to important information that you don't want the reader to miss.
<!-- prettier-ignore-start -->
| Parameter | Description |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `icon` | **Optional.** the icon to display on the left side.<br>**Default:** `exclaimation triangle icon` (Check out the [icon shortcode](#icon) for more details on using icons.) |
| `iconColor` | **Optional.** the color for the icon in basic CSS style.<br>Can be either hex values (`#FFFFFF`) or color names (`white`)<br>By default chosen based on the current color theme . |
| `cardColor` | **Optional.** the color for the card background in basic CSS style.<br>Can be either hex values (`#FFFFFF`) or color names (`white`)<br>By default chosen based on the current color theme . |
| `textColor` | **Optional.** the color for the text in basic CSS style.<br>Can be either hex values (`#FFFFFF`) or color names (`white`)<br>By default chosen based on the current color theme . |
| Parameter | Description |
| ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `icon` | **Optional.** the icon to display on the left side.<br>**Default:** `exclaimation triangle icon` (Check out the [icon shortcode](#icon) for more details on using icons.) |
| `iconColor` | **Optional.** the color for the icon in basic CSS style.<br>Can be either hex values (`#FFFFFF`) or color names (`white`)<br>By default chosen based on the current color theme . |
| `cardColor` | **Optional.** the color for the card background in basic CSS style.<br>Can be either hex values (`#FFFFFF`) or color names (`white`)<br>By default chosen based on the current color theme . |
| `textColor` | **Optional.** the color for the text in basic CSS style.<br>Can be either hex values (`#FFFFFF`) or color names (`white`)<br>By default chosen based on the current color theme . |
<!-- prettier-ignore-end -->
The input is written in Markdown so you can format it however you please.
@@ -297,7 +297,7 @@ In order to add images to the gallery, use `img` tags for each image and add `cl
<!-- prettier-ignore-start -->
| Parameter | Description |
|-----------|-------------------------------------------------------|
| --------- | ----------------------------------------------------- |
| `repo` | [String] github repo in the format of `username/repo` |
<!-- prettier-ignore-end -->
@@ -320,7 +320,7 @@ Finaly custom GitLab instace URL can be provided, as long as the `api/v4/project
<!-- prettier-ignore-start -->
| Parameter | Description |
|-------------|------------------------------------------------------------------------|
| ----------- | ---------------------------------------------------------------------- |
| `projectID` | [String] gitlab numeric ProjectID |
| `baseURL` | [String] optional gitlab instace URL, default is `https://gitlab.com/` |
<!-- prettier-ignore-end -->
@@ -400,12 +400,13 @@ When life gives you lemons, make lemonade.
`List` will display a list of recent articles. This shortcode requires a limit value to constraint the list. Additionally, it supports a `where` and a `value` in order to filter articles by their parameters. Note that this shortcode will not display its parent page but it will count for the limit value.
<!-- prettier-ignore-start -->
| Parameter | Description |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `limit` | **Required.** the number of recent articles to display. |
| `title` | Optional title for the list, default is `Recent` |
| `where` | The variable to be used for the query of articles e.g. `Type` |
| `value` | The value that will need to match the parameter defined in `where` for the query of articles e.g. for `where` == `Type` a valid value could be `sample` |
| Parameter | Description |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `limit` | **Required.** the number of recent articles to display. |
| `title` | Optional title for the list, default is `Recent` |
| `cardView` | Optional card view enabled for the list, default is `false` |
| `where` | The variable to be used for the query of articles e.g. `Type` |
| `value` | The value that will need to match the parameter defined in `where` for the query of articles e.g. for `where` == `Type` a valid value could be `sample` |
{{< alert >}}
The `where` and `value` values are used in the following query `where .Site.RegularPages $where $value` in the code of the shortcode. Check [Hugo docs](https://gohugo.io/variables/page/) to learn more about which parameters are available to use.
@@ -424,10 +425,10 @@ The `where` and `value` values are used in the following query `where .Site.Regu
**Example #2:**
```md
{{</* list title="Samples" limit=5 where="Type" value="sample" */>}}
{{</* list title="Samples" cardView=true limit=5 where="Type" value="sample" */>}}
```
{{< list title="Samples" limit=5 where="Type" value="sample">}}
{{< list title="Samples" cardView=true limit=6 where="Type" value="sample">}}
<br/><br/><br/>

View File

@@ -106,5 +106,6 @@ The full list of built-in icons and their corresponding names can referenced bel
| twitter | {{< icon twitter >}} |
| wand-magic-sparkles | {{< icon wand-magic-sparkles >}} |
| whatsapp | {{< icon whatsapp >}} |
| x-twitter | {{< icon x-twitter >}} |
| xmark | {{< icon xmark >}} |
| youtube | {{< icon youtube >}} |

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

View File

@@ -1,8 +1,8 @@
---
title: "jahsehj.github.io"
tags: [Personal site mainly in Chinese]
externalUrl: "https://jahsehj.github.io/"
date: 9947-08-08
title: "BoringTech.net"
tags: [Personal Site,Blog]
externalUrl: "https://boringtech.net/"
date: 9928-08-08
showDate: false
showAuthor: false
showReadingTime: false

View File

@@ -2,7 +2,7 @@
title: "adilhyz.github.io"
tags: [Personal site]
externalUrl: "https://adilhyz.github.io"
date: 9938-08-08
date: 9939-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 80 KiB

View File

@@ -2,7 +2,7 @@
title: "bbagwang.com"
tags: [Personal site]
externalUrl: "https://bbagwang.com"
date: 9944-08-08
date: 9945-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 173 KiB

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

View File

@@ -0,0 +1,13 @@
---
title: "blog.stonegarden.dev"
tags: [Personal Site]
externalUrl: "https://blog.stonegarden.dev/"
date: 9930-08-08
showDate: false
showAuthor: false
showReadingTime: false
showEdit: false
showLikes: false
showViews: false
layoutBackgroundHeaderSpace: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

View File

@@ -0,0 +1,13 @@
---
title: "ctulhu.me"
tags: [Personal site]
externalUrl: "https://ctulhu.me"
date: 9932-08-08
showDate: false
showAuthor: false
showReadingTime: false
showEdit: false
showLikes: false
showViews: false
layoutBackgroundHeaderSpace: false

View File

@@ -2,7 +2,7 @@
title: "deepumohan.com/tech"
tags: [Technology Blog]
externalUrl: "https://deepumohan.com/tech/"
date: 9935-08-08
date: 9936-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View File

@@ -2,7 +2,7 @@
title: "gma.name"
tags: [Personal site]
externalUrl: "https://gma.name"
date: 9941-08-08
date: 9942-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 52 KiB

View File

@@ -2,7 +2,7 @@
title: "jamiemoxon.tech"
tags: [Personal site]
externalUrl: "https://jamiemoxon.tech"
date: 9943-08-08
date: 9944-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 79 KiB

View File

@@ -2,7 +2,7 @@
title: "joush007.github.io"
tags: [Personal Site]
externalUrl: "https://joush007.github.io"
date: 9933-08-08
date: 9934-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 63 KiB

View File

@@ -2,7 +2,7 @@
title: "jundimubarok.com"
tags: [Personal site]
externalUrl: "https://jundimubarok.com/"
date: 9946-08-08
date: 9947-08-08
showDate: false
showAuthor: false
showReadingTime: false

View File

@@ -2,7 +2,7 @@
title: "kylemalloy.com"
tags: [Personal site]
externalUrl: "https://kylemalloy.com"
date: 9934-08-08
date: 9935-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 KiB

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 78 KiB

View File

@@ -2,7 +2,7 @@
title: "mayer.life"
tags: [Personal site]
externalUrl: "https://mayer.life"
date: 9940-08-08
date: 9941-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

View File

@@ -1,7 +1,7 @@
---
title: "nunocoracao.com"
title: "n9o.xyz"
tags: [Personal site,Theme author]
externalUrl: "https://nunocoracao.com"
externalUrl: "https://n9o.xyz"
date: 9999-08-08
showDate: false
showAuthor: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 94 KiB

View File

@@ -2,7 +2,7 @@
title: "ohdmire.github.io"
tags: [Personal site]
externalUrl: "https://ohdmire.github.io"
date: 9937-08-08
date: 9938-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

View File

@@ -0,0 +1,13 @@
---
title: "rejowski.xyz"
tags: [Personal Site]
externalUrl: "https://rejowski.xyz/"
date: 9933-08-08
showDate: false
showAuthor: false
showReadingTime: false
showEdit: false
showLikes: false
showViews: false
layoutBackgroundHeaderSpace: false

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

View File

@@ -0,0 +1,13 @@
---
title: "renaud.warnotte.be"
tags: [Personal site]
externalUrl: "https://renaud.warnotte.be"
date: 9929-08-08
showDate: false
showAuthor: false
showReadingTime: false
showEdit: false
showLikes: false
showViews: false
layoutBackgroundHeaderSpace: false

View File

@@ -2,7 +2,7 @@
title: "ricklan.photography"
tags: [Personal site]
externalUrl: "https://ricklan.photography"
date: 9936-08-08
date: 9937-08-08
showDate: false
showAuthor: false
showReadingTime: false

View File

@@ -2,7 +2,7 @@
title: "scottmckendry.tech"
tags: [Personal site]
externalUrl: "https://scottmckendry.tech"
date: 9939-08-08
date: 9940-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 KiB

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 88 KiB

View File

@@ -2,7 +2,7 @@
title: "theindiecoder.cloud"
tags: [Personal site]
externalUrl: "https://theindiecoder.cloud"
date: 9942-08-08
date: 9943-08-08
showDate: false
showAuthor: false
showReadingTime: false

View File

@@ -1,7 +1,7 @@
[
{
"title": "nunocoracao.com",
"url": "https://nunocoracao.com",
"title": "n9o.xyz",
"url": "https://n9o.xyz",
"tags": [
"Personal site",
"Theme author"
@@ -364,13 +364,6 @@
"Personal site"
]
},
{
"title": "jahsehj.github.io",
"url": "https://jahsehj.github.io/",
"tags": [
"Personal site mainly in Chinese"
]
},
{
"title": "jundimubarok.com",
"url": "https://jundimubarok.com/",
@@ -468,5 +461,48 @@
"tags": [
"Personal Site"
]
},
{
"title": "rejowski.xyz",
"url": "https://rejowski.xyz/",
"tags": [
"Personal Site"
]
},
{
"title": "ctulhu.me",
"url": "https://ctulhu.me",
"tags": [
"Personal site"
]
},
{
"title": "v-y-s.com",
"url": "https://v-y-s.com/",
"tags": [
"Personal Site"
]
},
{
"title": "blog.stonegarden.dev",
"url": "https://blog.stonegarden.dev/",
"tags": [
"Personal Site"
]
},
{
"title": "renaud.warnotte.be",
"url": "https://renaud.warnotte.be",
"tags": [
"Personal site"
]
},
{
"title": "BoringTech.net",
"url": "https://boringtech.net/",
"tags": [
"Personal Site",
"Blog"
]
}
]

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@@ -0,0 +1,13 @@
---
title: "v-y-s.com"
tags: [Personal Site]
externalUrl: "https://v-y-s.com/"
date: 9931-08-08
showDate: false
showAuthor: false
showReadingTime: false
showEdit: false
showLikes: false
showViews: false
layoutBackgroundHeaderSpace: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 KiB

After

Width:  |  Height:  |  Size: 139 KiB

View File

@@ -2,7 +2,7 @@
title: "vkmki001.github.io"
tags: [Personal site]
externalUrl: "https://vkmki001.github.io/"
date: 9945-08-08
date: 9946-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

View File

@@ -60,7 +60,7 @@ sharing:
email: "Отправить по электронной почте"
facebook: "Поделиться через Facebook"
linkedin: "Поделиться через LinkedIn"
pinterest: "PДобавить в Pinterest"
pinterest: "Добавить в Pinterest"
reddit: "Отправить в Reddit"
twitter: "Твитнуть в Twitter"

View File

@@ -1,8 +1,10 @@
<div id="{{ .Anchor | safeURL }}" class="anchor"></div>
<h{{ .Level }} class="relative group">{{ .Text | safeHTML }}
{{ if.Page.Params.showHeadingAnchors | default (.Page.Site.Params.article.showHeadingAnchors | default true) }}<span
<div id="{{ .Anchor | safeURL }}" class="anchor"></div>
{{ if.Page.Params.showHeadingAnchors | default (.Page.Site.Params.article.showHeadingAnchors | default true) }}
<span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
<a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700"
style="text-decoration-line: none !important;" href="#{{ .Anchor | safeURL }}" aria-label="{{ i18n "article.anchor_label" }}">#</a></span>
style="text-decoration-line: none !important;" href="#{{ .Anchor | safeURL }}" aria-label="{{ i18n "article.anchor_label" }}">#</a>
</span>
{{ end }}
</h{{ .Level }}>

View File

@@ -2,7 +2,7 @@
{{ $articleClasses := "flex flex-wrap article" }}
{{ if .Site.Params.list.showCards }}
{{ $articleClasses = delimit (slice $articleClasses "border border-neutral-200 dark:border-neutral-700 border-2 rounded-md backdrop-blur") " " }}
{{ $articleClasses = delimit (slice $articleClasses "border border-neutral-200 dark:border-neutral-700 border-2 rounded-md backdrop-blur overflow-hidden") " " }}
{{ else }}
{{ $articleClasses = delimit (slice $articleClasses "") " " }}
{{ end }}

View File

@@ -47,10 +47,10 @@
{{ end }}
<div class="flex flex-row flex-wrap items-center">
<div style="cursor: default;" class="flex flex-row flex-wrap items-center">
{{/* Output partials */}}
{{ with ($meta.Get "partials") }}
{{ delimit . "<span class=\"px-2 text-primary-500\">&middot;</span>" }}
{{ delimit . "<span class=\"px-2 text-primary-500\">&middot;</span>" | safeHTML }}
{{ end }}
{{/* Output draft label */}}
@@ -60,7 +60,7 @@
</div>
{{ if .Params.showAuthorsBadges | default (.Site.Params.article.showAuthorsBadges | default false) }}
<div class="flex flex-row flex-wrap items-center">
<div style="cursor: pointer;" class="flex flex-row flex-wrap items-center">
{{ range $taxonomy, $terms := .Site.Taxonomies }}
{{ if (eq $taxonomy "authors")}}
{{ if (gt (len ($context.GetTerms $taxonomy)) 0) }}
@@ -75,7 +75,7 @@
{{/* Output taxonomies */}}
{{ if .Params.showTaxonomies | default (.Site.Params.article.showTaxonomies | default false) }}
<div class="flex flex-row flex-wrap items-center">
<div style="cursor: pointer;" class="flex flex-row flex-wrap items-center">
{{ range $taxonomy, $terms := .Site.Taxonomies }}
{{ if and (not (eq $taxonomy "authors")) (not (eq $taxonomy "series"))}}
{{ if (gt (len ($context.GetTerms $taxonomy)) 0) }}

View File

@@ -29,7 +29,7 @@
<div class="flex flex-row flex-wrap items-center">
{{/* Output partials */}}
{{ with ($meta.Get "partials") }}
{{ delimit . "<span class=\"px-2 text-primary-500\">&middot;</span>" }}
{{ delimit . "<span class=\"px-2 text-primary-500\">&middot;</span>" | safeHTML}}
{{ end }}
</div>

View File

@@ -29,7 +29,7 @@
<div class="flex flex-row flex-wrap items-center">
{{/* Output partials */}}
{{ with ($meta.Get "partials") }}
{{ delimit . "<span class=\"px-2 text-primary-500\">&middot;</span>" }}
{{ delimit . "<span class=\"px-2 text-primary-500\">&middot;</span>" | safeHTML}}
{{ end }}
</div>

View File

@@ -29,7 +29,7 @@
<div class="flex flex-row flex-wrap items-center">
{{/* Output partials */}}
{{ with ($meta.Get "partials") }}
{{ delimit . "<span class=\"px-2 text-primary-500\">&middot;</span>" }}
{{ delimit . "<span class=\"px-2 text-primary-500\">&middot;</span>" | safeHTML}}
{{ end }}
</div>

View File

@@ -73,7 +73,9 @@
integrity="{{ $bundleJS.Data.Integrity }}" data-copy="{{ i18n " code.copy" }}" data-copied="{{ i18n " code.copied"
}}"></script>
{{ end }}
{{ if not .Site.Params.disableImageZoom | default true }}
<script src="{{ "js/zoom.min.js" | relURL }}"></script>
{{ end }}
{{/* Icons */}}
{{ if templates.Exists "partials/favicons.html" }}
{{ partialCached "favicons.html" .Site }}

View File

@@ -17,10 +17,11 @@
<div class="flex flex-1 items-center justify-between">
<nav class="flex space-x-3">
{{ if not .Site.Params.disableTextInHeader | default true }}
<a href="{{ "" | relLangURL }}" class="text-base font-medium text-gray-500 hover:text-gray-900">{{
.Site.Title | markdownify
| emojify }}</a>
{{ end }}
</nav>
<nav class="hidden md:flex items-center space-x-5 md:ml-12 h-12">
@@ -88,6 +89,7 @@
<label id="menu-button" for="menu-controller" class="block">
<input type="checkbox" id="menu-controller" class="hidden" />
{{ if .Site.Menus.main }}
<div class="cursor-pointer hover:text-primary-600 dark:hover:text-primary-400">
{{ partial "icon.html" "bars" }}
</div>
@@ -104,13 +106,11 @@
"xmark" }}</span>
</li>
{{ if .Site.Menus.main }}
{{ range .Site.Menus.main }}
{{ partial "header/header-mobile-option.html" . }}
{{ end }}
{{ end }}
</ul>
{{ if .Site.Menus.subnavigation }}
@@ -137,6 +137,7 @@
</ul>
{{ end }}
{{ end }}
</div>
</label>

View File

@@ -42,7 +42,7 @@
<div class="flex flex-wrap">
{{ range $links := . }}
{{ range $name, $url := $links }}
<a class="px-2 hover:text-primary-400 text-primary-800 dark:text-primary-200" href="{{ $url }}" target="_blank"
<a class="px-1 hover:text-primary-400 text-primary-800 dark:text-primary-200" href="{{ $url }}" target="_blank"
aria-label="{{ $name | title }}" rel="me noopener noreferrer">{{ partial
"icon.html" $name }}</a>
{{ end }}

View File

@@ -39,7 +39,7 @@
<div class="flex flex-wrap">
{{ range $links := . }}
{{ range $name, $url := $links }}
<a class="px-2 hover:text-primary-400 text-primary-300" href="{{ $url }}" target="_blank"
<a class="px-1 hover:text-primary-400 text-primary-300" href="{{ $url }}" target="_blank"
aria-label="{{ $name | title }}" rel="me noopener noreferrer">{{ partial
"icon.html" $name }}</a>
{{ end }}

View File

@@ -3,7 +3,7 @@
{{ $images := .Page.Resources.Match (.Get "images") }}
{{ $interval := default "2000" (.Get "interval") }}
<div id="{{ $id }}" class="relative" data-te-carousel-init data-te-carousel-slide>
<div id="{{ $id }}" class="relative" data-te-carousel-init data-te-ride="carousel">
<div class="absolute right-0 bottom-0 left-0 z-[2] mx-[15%] mb-10 flex list-none justify-center p-0"
data-te-carousel-indicators>

View File

@@ -1,26 +1,32 @@
{{- $githubData := getJSON (print "https://api.github.com/repos/" (.Get "repo")) -}}
{{ $id := delimit (slice "github" .Ordinal now.UnixNano) "-" }}
{{- $githubURL := print "https://api.github.com/repos/" (.Get "repo") -}}
{{- $githubData := getJSON ($githubURL) -}}
{{- $githubColors := .Site.Data.githubColors -}}
{{- with $githubData -}}
<a target="_blank" href="{{ .html_url }}" class="cursor-pointer">
<div class="w-full md:w-auto pt-3 p-5 border border-neutral-200 dark:border-neutral-700 border rounded-md backdrop-blur shadow-2xl">
<a id="{{ $id }}" target="_blank" href="{{ .html_url }}" class="cursor-pointer">
<div
class="w-full md:w-auto pt-3 p-5 border border-neutral-200 dark:border-neutral-700 border rounded-md backdrop-blur shadow-2xl">
<div class="flex items-center">
<span class="text-2xl text-neutral-800 dark:text-neutral" style="margin-right:10px;">
{{ partial "icon.html" "github" }}
</span>
<div class="m-0 font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral">
<div
id="{{ $id }}-full_name"
class="m-0 font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral">
{{ .full_name | markdownify | emojify }}
</div>
</div>
<p class="m-0 mt-2 text-md text-neutral-800 dark:text-neutral">
<p id="{{ $id }}-description" class="m-0 mt-2 text-md text-neutral-800 dark:text-neutral">
{{ .description | markdownify | emojify }}
</p>
<div class="m-0 mt-2 flex items-center">
<span class="mr-1 inline-block h-3 w-3 rounded-full" style="background-color: {{ if .language }} {{- index $githubColors .language -}} {{ else }} #0077b6 {{ end }}"></span>
<span class="mr-1 inline-block h-3 w-3 rounded-full"
style="background-color: {{ if .language }} {{- index $githubColors .language -}} {{ else }} #0077b6 {{ end }}"></span>
<div class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
{{ if .language }} {{ .language }} {{ else }} null {{ end }}
</div>
@@ -28,19 +34,34 @@
<span class="text-md mr-1 text-neutral-800 dark:text-neutral">
{{ partial "icon.html" "star" }}
</span>
<div class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
<div id="{{ $id }}-stargazers" class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
{{ .stargazers_count }}
</div>
<span class="text-md mr-1 text-neutral-800 dark:text-neutral">
{{ partial "icon.html" "fork" }}
</span>
<div class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
<div id="{{ $id }}-forks" class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
{{ .forks }}
</div>
</div>
</div>
<script>
fetch({{ $githubURL }}, {
headers: new Headers({
'User-agent': 'Mozilla/4.0 Custom User Agent'
})
})
.then(response => response.json())
.then(data => {
document.getElementById('{{ $id }}-full_name').innerHTML = data.full_name;
document.getElementById('{{ $id }}-description').innerHTML = data.description;
document.getElementById('{{ $id }}-stargazers').innerHTML = data.stargazers_count;
document.getElementById('{{ $id }}-forks').innerHTML = data.forks;
})
.catch(error => console.error(error))
</script>
</a>
{{- end -}}

View File

@@ -1,4 +1,7 @@
{{- $gitLabData := getJSON (print (default "https://gitlab.com/" (.Get "baseURL")) "api/v4/projects/" (.Get "projectID")) -}}
{{ $id := delimit (slice "gitlab" .Ordinal now.UnixNano) "-" }}
{{- $gitlabURL := print (default "https://gitlab.com/" (.Get "baseURL")) "api/v4/projects/" (.Get "projectID") -}}
{{- $gitLabData := getJSON ($gitlabURL) -}}
{{- with $gitLabData -}}
<a target="_blank" href="{{ .html_url }}" class="cursor-pointer">
@@ -8,12 +11,12 @@
<span class="text-2xl text-neutral-800 dark:text-neutral" style="margin-right:10px;">
{{ partial "icon.html" "gitlab" }}
</span>
<div class="m-0 font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral">
<div id="{{ $id }}-name_with_namespace" class="m-0 font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral">
{{ .name_with_namespace | markdownify | emojify }}
</div>
</div>
<p class="m-0 mt-2 text-md text-neutral-800 dark:text-neutral">
<p id="{{ $id }}-description" class="m-0 mt-2 text-md text-neutral-800 dark:text-neutral">
{{ .description | markdownify | emojify }}
</p>
@@ -21,19 +24,36 @@
<span class="text-md mr-1 text-neutral-800 dark:text-neutral">
{{ partial "icon.html" "star" }}
</span>
<div class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
<div id="{{ $id }}-star_count" class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
{{ .star_count }}
</div>
<span class="text-md mr-1 text-neutral-800 dark:text-neutral">
{{ partial "icon.html" "fork" }}
</span>
<div class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
<div id="{{ $id }}-forks_count" class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
{{ .forks_count }}
</div>
</div>
</div>
<script>
console.log({{ $gitlabURL }})
fetch({{ $gitlabURL }}, {
headers: new Headers({
'User-agent': 'Mozilla/4.0 Custom User Agent'
})
})
.then(response => response.json())
.then(data => {
console.log(data)
document.getElementById('{{ $id }}-name_with_namespace').innerHTML = data.name_with_namespace;
document.getElementById('{{ $id }}-description').innerHTML = data.description;
document.getElementById('{{ $id }}-star_count').innerHTML = data.star_count;
document.getElementById('{{ $id }}-forks_count').innerHTML = data.forks_count;
})
.catch(error => console.error(error))
</script>
</a>
{{- end -}}

View File

@@ -2,9 +2,32 @@
{{ $limit := .Get "limit" | default 1 }}
{{ $title := .Get "title" | default (i18n "shortcode.recent_articles" | emojify) }}
{{ $parent := .Page.RelPermalink }}
{{ $cardView := .Get "cardView" }}
{{ $where := .Get "where" }}
{{ $value := .Get "value" }}
<h2 class="mt-20 text-2xl font-extrabold mb-10">{{ $title }}</h2>
{{ if $cardView | default false}}
<section class="w-full grid gap-4 sm:grid-cols-2 md:grid-cols-3">
{{ if $where }}
{{ range ( where .Site.RegularPages $where $value | first $limit ) }}
{{ if not (eq .RelPermalink $parent) }}
{{ partial "article-link/card.html" . }}
{{ end }}
{{end}}
{{ else }}
{{ range .Site.RegularPages | first $limit }}
{{ if not (eq .RelPermalink $parent) }}
{{ partial "article-link/card.html" . }}
{{ end }}
{{end}}
{{ end }}
</section>
{{ else }}
<section class="space-y-10 w-full mt-10 mb-10">
{{ if $where }}
{{ range ( where .Site.RegularPages $where $value | first $limit ) }}
@@ -19,4 +42,6 @@
{{ end }}
{{end}}
{{ end }}
</section>
</section>
{{ end }}

125
package-lock.json generated
View File

@@ -1,35 +1,35 @@
{
"name": "hugo-blowfish-theme",
"version": "2.43.0",
"version": "2.45.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "hugo-blowfish-theme",
"version": "2.43.0",
"version": "2.45.0",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
"@headlessui/react": "^1.7.17",
"@heroicons/react": "^2.0.18",
"@tailwindcss/forms": "^0.5.6",
"@tailwindcss/forms": "^0.5.7",
"commander": "^11.1.0"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.10",
"chart.js": "^4.4.0",
"fuse.js": "^6.6.2",
"fuse.js": "^7.0.0",
"jquery": "^3.7.1",
"katex": "^0.16.9",
"packery": "^2.1.2",
"prettier": "^3.0.3",
"prettier": "^3.1.0",
"prettier-plugin-go-template": "^0.0.15",
"prettier-plugin-tailwindcss": "^0.5.6",
"puppeteer": "^21.4.1",
"prettier-plugin-tailwindcss": "^0.5.7",
"puppeteer": "^21.5.2",
"rimraf": "^5.0.5",
"tailwindcss": "^3.3.4",
"tailwindcss": "^3.3.5",
"tw-elements": "1.0.0",
"typeit": "^8.7.1",
"typeit": "^8.8.0",
"vendor-copy": "^3.0.1"
}
},
@@ -248,9 +248,9 @@
}
},
"node_modules/@tailwindcss/forms": {
"version": "0.5.6",
"resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.6.tgz",
"integrity": "sha512-Fw+2BJ0tmAwK/w01tEFL5TiaJBX1NLT1/YbWgvm7ws3Qcn11kiXxzNTEQDMs5V3mQemhB56l3u0i9dwdzSQldA==",
"version": "0.5.7",
"resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.7.tgz",
"integrity": "sha512-QE7X69iQI+ZXwldE+rzasvbJiyV/ju1FGHH0Qn2W3FKbuYtqp8LKcy6iSw79fVUT5/Vvf+0XgLCeYVG+UV6hOw==",
"dependencies": {
"mini-svg-data-uri": "^1.2.3"
},
@@ -280,19 +280,25 @@
"dev": true
},
"node_modules/@types/node": {
"version": "20.8.8",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.8.tgz",
"integrity": "sha512-YRsdVxq6OaLfmR9Hy816IMp33xOBjfyOgUd77ehqg96CFywxAPbDbXvAsuN2KVg2HOT8Eh6uAfU+l4WffwPVrQ==",
"version": "20.9.4",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.9.4.tgz",
"integrity": "sha512-wmyg8HUhcn6ACjsn8oKYjkN/zUzQeNtMy44weTJSM6p4MMzEOuKbA3OjJ267uPCOW7Xex9dyrNTful8XTQYoDA==",
"dev": true,
"optional": true,
"dependencies": {
"undici-types": "~5.25.1"
"undici-types": "~5.26.4"
}
},
"node_modules/@types/web-animations-js": {
"version": "2.2.16",
"resolved": "https://registry.npmjs.org/@types/web-animations-js/-/web-animations-js-2.2.16.tgz",
"integrity": "sha512-ATELeWMFwj8eQiH0KmvsCl1V2lu/qx/CjOBmv4ADSZS5u8r4reMyjCXtxG7khqyiwH3IOMNdrON/Ugn94OUcRA==",
"dev": true
},
"node_modules/@types/yauzl": {
"version": "2.10.2",
"resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.2.tgz",
"integrity": "sha512-Km7XAtUIduROw7QPgvcft0lIupeG8a8rdKL8RiSyKvlE7dYY31fEn41HVuQsRFDuROA8tA4K2UVL+WdfFmErBA==",
"version": "2.10.3",
"resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz",
"integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==",
"dev": true,
"optional": true,
"dependencies": {
@@ -593,9 +599,9 @@
}
},
"node_modules/chromium-bidi": {
"version": "0.4.32",
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.32.tgz",
"integrity": "sha512-RJnw0PW3sNdx1WclINVfVVx8JUH+tWTHZNpnEzlcM+Qgvf40dUH34U7gJq+cc/0LE+rbPxeT6ldqWrCbUf4jeg==",
"version": "0.4.33",
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.33.tgz",
"integrity": "sha512-IxoFM5WGQOIAd95qrSXzJUv4eXIrh+RvU3rwwqIiwYuvfE7U/Llj4fejbsJnjJMUYCuGtVQsY2gv7oGl4aTNSQ==",
"dev": true,
"dependencies": {
"mitt": "3.0.1",
@@ -859,9 +865,9 @@
}
},
"node_modules/devtools-protocol": {
"version": "0.0.1191157",
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1191157.tgz",
"integrity": "sha512-Fu2mUhX7zkzLHMJZk5wQTiHdl1eJrhK0GypUoSzogUt51MmYEv/46pCz4PtGGFlr0f2ZyYDzzx5CPtbEkuvcTA==",
"version": "0.0.1203626",
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1203626.tgz",
"integrity": "sha512-nEzHZteIUZfGCZtTiS1fRpC8UZmsfD1SiyPvaUNvS13dvKf666OAm8YTi0+Ca3n1nLEyu49Cy4+dPWpaHFJk9g==",
"dev": true
},
"node_modules/didyoumean": {
@@ -1123,9 +1129,9 @@
"integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
},
"node_modules/fuse.js": {
"version": "6.6.2",
"resolved": "https://registry.npmjs.org/fuse.js/-/fuse.js-6.6.2.tgz",
"integrity": "sha512-cJaJkxCCxC8qIIcPBF9yGxY0W/tVZS3uEISDxhYIdtk8OL93pe+6Zj7LjCqVV4dzbqcriOZ+kQ/NE4RXZHsIGA==",
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/fuse.js/-/fuse.js-7.0.0.tgz",
"integrity": "sha512-14F4hBIxqKvD4Zz/XjDc3y94mNZN6pRv3U13Udo0lNLCWRBUsrMv2xwcF/y/Z5sV6+FQW+/ow68cHpm4sunt8Q==",
"dev": true,
"engines": {
"node": ">=10"
@@ -1999,9 +2005,9 @@
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="
},
"node_modules/prettier": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz",
"integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==",
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.0.tgz",
"integrity": "sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==",
"dev": true,
"bin": {
"prettier": "bin/prettier.cjs"
@@ -2029,9 +2035,9 @@
}
},
"node_modules/prettier-plugin-tailwindcss": {
"version": "0.5.6",
"resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.5.6.tgz",
"integrity": "sha512-2Xgb+GQlkPAUCFi3sV+NOYcSI5XgduvDBL2Zt/hwJudeKXkyvRS65c38SB0yb9UB40+1rL83I6m0RtlOQ8eHdg==",
"version": "0.5.7",
"resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.5.7.tgz",
"integrity": "sha512-4v6uESAgwCni6YF6DwJlRaDjg9Z+al5zM4JfngcazMy4WEf/XkPS5TEQjbD+DZ5iNuG6RrKQLa/HuX2SYzC3kQ==",
"dev": true,
"engines": {
"node": ">=14.21.3"
@@ -2154,35 +2160,35 @@
}
},
"node_modules/puppeteer": {
"version": "21.4.1",
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-21.4.1.tgz",
"integrity": "sha512-opJqQeYMjAB3ICG8lCF3wtSs9k05dozmrEMrHgo3ZWbISiy8qbv/yAJz/6Io221qSh3yURfVf6Z7crrlzKZjLQ==",
"version": "21.5.2",
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-21.5.2.tgz",
"integrity": "sha512-BaAGJOq8Fl6/cck6obmwaNLksuY0Bg/lIahCLhJPGXBFUD2mCffypa4A592MaWnDcye7eaHmSK9yot0pxctY8A==",
"dev": true,
"hasInstallScript": true,
"dependencies": {
"@puppeteer/browsers": "1.8.0",
"cosmiconfig": "8.3.6",
"puppeteer-core": "21.4.1"
"puppeteer-core": "21.5.2"
},
"engines": {
"node": ">=16.3.0"
"node": ">=16.13.2"
}
},
"node_modules/puppeteer-core": {
"version": "21.4.1",
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.4.1.tgz",
"integrity": "sha512-Lh0e+oGhUquxVOi1U701gTfFLFvw5gDBFh3CWpnfAvtItmyZKUce4R54VNfOJfi+KKnzhVPdB/lDrg65gdRIng==",
"version": "21.5.2",
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.5.2.tgz",
"integrity": "sha512-v4T0cWnujSKs+iEfmb8ccd7u4/x8oblEyKqplqKnJ582Kw8PewYAWvkH4qUWhitN3O2q9RF7dzkvjyK5HbzjLA==",
"dev": true,
"dependencies": {
"@puppeteer/browsers": "1.8.0",
"chromium-bidi": "0.4.32",
"chromium-bidi": "0.4.33",
"cross-fetch": "4.0.0",
"debug": "4.3.4",
"devtools-protocol": "0.0.1191157",
"devtools-protocol": "0.0.1203626",
"ws": "8.14.2"
},
"engines": {
"node": ">=16.3.0"
"node": ">=16.13.2"
}
},
"node_modules/queue-microtask": {
@@ -2454,9 +2460,9 @@
}
},
"node_modules/streamx": {
"version": "2.15.1",
"resolved": "https://registry.npmjs.org/streamx/-/streamx-2.15.1.tgz",
"integrity": "sha512-fQMzy2O/Q47rgwErk/eGeLu/roaFWV0jVsogDmrszM9uIw8L5OA+t+V93MgYlufNptfjmYR1tOMWhei/Eh7TQA==",
"version": "2.15.5",
"resolved": "https://registry.npmjs.org/streamx/-/streamx-2.15.5.tgz",
"integrity": "sha512-9thPGMkKC2GctCzyCUjME3yR03x2xNo0GPKGkRw2UMYN+gqWa9uqpyNWhmsNCutU5zHmkUum0LsCRQTXUgUCAg==",
"dev": true,
"dependencies": {
"fast-fifo": "^1.1.0",
@@ -2651,9 +2657,9 @@
}
},
"node_modules/tailwindcss": {
"version": "3.3.4",
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.4.tgz",
"integrity": "sha512-JXZNOkggUAc9T5E7nCrimoXHcSf9h3NWFe5sh36CGD/3M5TRLuQeFnQoDsit2uVTqgoOZHLx5rTykLUu16vsMQ==",
"version": "3.3.5",
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.5.tgz",
"integrity": "sha512-5SEZU4J7pxZgSkv7FP1zY8i2TIAOooNZ1e/OGtxIEv6GltpoiXUqWvLy89+a10qYTB1N5Ifkuw9lqQkN9sscvA==",
"dependencies": {
"@alloc/quick-lru": "^5.2.0",
"arg": "^5.0.2",
@@ -2920,11 +2926,14 @@
}
},
"node_modules/typeit": {
"version": "8.7.1",
"resolved": "https://registry.npmjs.org/typeit/-/typeit-8.7.1.tgz",
"integrity": "sha512-Bx/O4NMz10NWh9FWYtVwV4XwGHF9UDJfpCZPJRtw2/oUcahFAStU8J0t19aroPfTV6s1UlS5ICoqilOqmEnh2Q==",
"version": "8.8.0",
"resolved": "https://registry.npmjs.org/typeit/-/typeit-8.8.0.tgz",
"integrity": "sha512-GQp6OW7vxro1HN3F7UPL0C2KzkGs8bFtUgmJSeK+xNhdofI40mkWxrBT2AXQwtS5Txkg7ttwplxvWCQxnUXyrw==",
"dev": true,
"hasInstallScript": true
"hasInstallScript": true,
"dependencies": {
"@types/web-animations-js": "^2.2.16"
}
},
"node_modules/ulid": {
"version": "2.3.0",
@@ -2946,9 +2955,9 @@
}
},
"node_modules/undici-types": {
"version": "5.25.3",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.25.3.tgz",
"integrity": "sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA==",
"version": "5.26.5",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
"integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
"dev": true,
"optional": true
},

View File

@@ -1,6 +1,6 @@
{
"name": "hugo-blowfish-theme",
"version": "2.43.1",
"version": "2.46.0",
"description": "Blowfish theme for Hugo",
"scripts": {
"fullinstall": "npm run preinstall && npm install && npm run postinstall",
@@ -36,18 +36,18 @@
"devDependencies": {
"@tailwindcss/typography": "^0.5.10",
"chart.js": "^4.4.0",
"fuse.js": "^6.6.2",
"fuse.js": "^7.0.0",
"jquery": "^3.7.1",
"katex": "^0.16.9",
"packery": "^2.1.2",
"prettier": "^3.0.3",
"prettier": "^3.1.0",
"prettier-plugin-go-template": "^0.0.15",
"prettier-plugin-tailwindcss": "^0.5.6",
"puppeteer": "^21.4.1",
"prettier-plugin-tailwindcss": "^0.5.7",
"puppeteer": "^21.5.2",
"rimraf": "^5.0.5",
"tailwindcss": "^3.3.4",
"tailwindcss": "^3.3.5",
"tw-elements": "1.0.0",
"typeit": "^8.7.1",
"typeit": "^8.8.0",
"vendor-copy": "^3.0.1"
},
"vendorCopy": [],
@@ -96,7 +96,7 @@
"dependencies": {
"@headlessui/react": "^1.7.17",
"@heroicons/react": "^2.0.18",
"@tailwindcss/forms": "^0.5.6",
"@tailwindcss/forms": "^0.5.7",
"commander": "^11.1.0"
}
}