This commit is contained in:
九歌天上有 2024-12-12 17:19:11 +00:00 committed by GitHub
commit e449126c7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 14 additions and 8 deletions

View file

@ -119,7 +119,7 @@ blowfish-tools new mynewsite
3. In the root folder of your website, delete the `config.toml` file that was generated by Hugo. Copy the `*.toml` config files from the theme into your `config/_default/` folder. 3. In the root folder of your website, delete the `config.toml` file that was generated by Hugo. Copy the `*.toml` config files from the theme into your `config/_default/` folder.
You will find these theme config files in the Hugo cache directory, or [download a copy](https://github.com/nunocoracao/blowfish/releases/latest/download/config-default.zip) from GitHub. You will find these theme config files in the Hugo cache directory, or [download a copy](https://github.com/nunocoracao/blowfish/releases/download/latest/config-default.zip) from GitHub.
4. Follow the [Getting Started](https://blowfish.page/docs/getting-started/) instructions to configure your website. 4. Follow the [Getting Started](https://blowfish.page/docs/getting-started/) instructions to configure your website.
@ -146,7 +146,7 @@ blowfish-tools new mynewsite
> **Note:** Do not overwrite the `module.toml` file you created above! > **Note:** Do not overwrite the `module.toml` file you created above!
You will find these theme config files in the Hugo cache directory, or [download a copy](https://github.com/nunocoracao/blowfish/releases/latest/download/config-default.zip) from GitHub. You will find these theme config files in the Hugo cache directory, or [download a copy](https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nunocoracao/blowfish/tree/main/config/_default) from GitHub.
5. Follow the [Getting Started](https://blowfish.page/docs/getting-started/) instructions to configure your website. 5. Follow the [Getting Started](https://blowfish.page/docs/getting-started/) instructions to configure your website.

View file

@ -1,4 +1,4 @@
<div class="relative pt-16 pb-32"> <div class="relative pt-16 pb-32" >
<div aria-hidden="true" class="absolute inset-x-0 top-0 h-48 bg-gradient-to-b from-gray-100"></div> <div aria-hidden="true" class="absolute inset-x-0 top-0 h-48 bg-gradient-to-b from-gray-100"></div>
<div class="relative"> <div class="relative">
<div class="lg:mx-auto lg:grid lg:max-w-7xl lg:grid-flow-col-dense lg:grid-cols-2 lg:gap-24 lg:px-8"> <div class="lg:mx-auto lg:grid lg:max-w-7xl lg:grid-flow-col-dense lg:grid-cols-2 lg:gap-24 lg:px-8">

View file

@ -1,7 +1,7 @@
{{ $recentArticles := 5 }} {{ $recentArticles := 5 }}
{{ $recentArticles = .Site.Params.homepage.showRecentItems }} {{ $recentArticles = .Site.Params.homepage.showRecentItems }}
<section class="w-full grid gap-4 sm:grid-cols-2 md:grid-cols-3"> <section class="w-full grid gap-4 sm:grid-cols-2 md:grid-cols-3" >
{{ range first $recentArticles (.Paginate (where .Site.RegularPages "Type" "in" {{ range first $recentArticles (.Paginate (where .Site.RegularPages "Type" "in"
.Site.Params.mainSections)).Pages }} .Site.Params.mainSections)).Pages }}
{{ partial "article-link/card.html" . }} {{ partial "article-link/card.html" . }}

View file

@ -1,6 +1,6 @@
<a href="{{ .Page.RelPermalink }}" class="min-w-full"> <a href="{{ .Page.RelPermalink }}" class="min-w-full">
<div <div
class="border border-neutral-200 dark:border-neutral-700 border-2 rounded overflow-hidden shadow-2xl relative"> class="border border-neutral-200 dark:border-neutral-700 border-2 rounded overflow-hidden shadow-2xl relative" >
{{ $disableImageOptimization := .Page.Site.Params.disableImageOptimization | default false }} {{ $disableImageOptimization := .Page.Site.Params.disableImageOptimization | default false }}

View file

@ -1,4 +1,4 @@
<article class="w-full px-2 my-3 overflow-hidden sm:w-1/2 md:w-1/3 lg:w-1/4 xl:w-1/4"> <article class="w-full px-2 my-3 overflow-hidden sm:w-1/2 md:w-1/3 lg:w-1/4 xl:w-1/4" >
<h2 class="flex items-center"> <h2 class="flex items-center">
<a <a
class="text-xl font-medium decoration-primary-500 hover:underline hover:underline-offset-2" class="text-xl font-medium decoration-primary-500 hover:underline hover:underline-offset-2"

7
package-lock.json generated
View file

@ -14,7 +14,8 @@
"@heroicons/react": "^2.1.5", "@heroicons/react": "^2.1.5",
"@iamtraction/google-translate": "^2.0.1", "@iamtraction/google-translate": "^2.0.1",
"@tailwindcss/forms": "^0.5.9", "@tailwindcss/forms": "^0.5.9",
"commander": "^12.1.0" "commander": "^12.1.0",
"hugo-blowfish-theme": "file:"
}, },
"devDependencies": { "devDependencies": {
"@tailwindcss/typography": "^0.5.15", "@tailwindcss/typography": "^0.5.15",
@ -2419,6 +2420,10 @@
"node": ">= 14" "node": ">= 14"
} }
}, },
"node_modules/hugo-blowfish-theme": {
"resolved": "",
"link": true
},
"node_modules/iconv-lite": { "node_modules/iconv-lite": {
"version": "0.6.3", "version": "0.6.3",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",

View file

@ -113,6 +113,7 @@
"@heroicons/react": "^2.1.5", "@heroicons/react": "^2.1.5",
"@iamtraction/google-translate": "^2.0.1", "@iamtraction/google-translate": "^2.0.1",
"@tailwindcss/forms": "^0.5.9", "@tailwindcss/forms": "^0.5.9",
"commander": "^12.1.0" "commander": "^12.1.0",
"hugo-blowfish-theme": "file:"
} }
} }