From c66dc531f1a5a34ac77954d451f7657a223f8d7e Mon Sep 17 00:00:00 2001 From: stradichenko Date: Sun, 26 Apr 2026 15:04:34 +0200 Subject: [PATCH] Unit 14: portfolio fix + static -> assets migration - portfolio.html: replace + {{/* Bundle portfolio JS via Hugo Pipes (js.Build → minify → fingerprint, deferred). */}} + {{ $portfolio := resources.Get "js/portfolio.js" | js.Build (dict "minify" true) | fingerprint }} + - + {{ $portfolioPage := resources.Get "js/portfolio-page.js" | js.Build (dict "minify" true) | fingerprint }} + {{ end }} diff --git a/layouts/portfolio/single.json b/layouts/portfolio/single.json index 8c07391..b5950c4 100644 --- a/layouts/portfolio/single.json +++ b/layouts/portfolio/single.json @@ -4,7 +4,7 @@ "portfolio_metadata" (dict "total_images" 0 "supported_formats" (slice) - "generated_at" (now.Format "2006-01-02T15:04:05Z07:00") + "generated_at" (time.Format "2006-01-02T15:04:05Z07:00" now) "hugo_version" hugo.Version "pkb_schema_version" "1.0.0" "category_list" (slice) @@ -121,7 +121,7 @@ "portfolio_metadata" (dict "total_images" (len $portfolioImages) "supported_formats" $supportedFormats - "generated_at" (now.Format "2006-01-02T15:04:05Z07:00") + "generated_at" (time.Format "2006-01-02T15:04:05Z07:00" now) "hugo_version" hugo.Version "pkb_schema_version" "1.0.0" "category_list" $categoryList diff --git a/static/netlify.toml b/static/netlify.toml deleted file mode 100644 index e69de29..0000000