Routing Deploy Blogs

This commit is contained in:
九歌天上有 2024-12-12 18:13:20 +08:00
parent 396692e017
commit 688d458f44
6 changed files with 12 additions and 6 deletions

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 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">

View file

@ -1,7 +1,7 @@
{{ $recentArticles := 5 }}
{{ $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"
.Site.Params.mainSections)).Pages }}
{{ partial "article-link/card.html" . }}

View file

@ -1,6 +1,6 @@
<a href="{{ .Page.RelPermalink }}" class="min-w-full">
<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 }}

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

View file

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