We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 44175a7 + 1268698 commit 4ae4dbbCopy full SHA for 4ae4dbb
layouts/_default/baseof.html
@@ -1,3 +1,4 @@
1
+{{ partial "process-frontmatter-assets.html" . }}
2
<!doctype html>
3
<html lang="{{ .Lang | default "en" }}">
4
<head>
layouts/partials/process-frontmatter-assets.html
@@ -0,0 +1,13 @@
+{{/* This partial processes all documents in the assets/documents directory without fingerprinting */}}
+{{ $allDocuments := resources.Match "documents/**" }}
+{{ range $allDocuments }}
+ {{/* Get the file path relative to the assets directory */}}
5
+ {{ $relPath := .RelPermalink }}
6
+
7
+ {{/* Process and publish with the original filename */}}
8
+ {{ $processed := . | resources.Copy $relPath }}
9
10
+ {{/* Store for debugging */}}
11
+ {{ $.Scratch.Add "processedDocs" (slice $processed.RelPermalink) }}
12
+{{ end }}
13
+{{ $.Scratch.Set "documentsCount" (len $allDocuments) }}
0 commit comments