File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -413,11 +413,25 @@ enableRobotsTXT = true
413413 root = false
414414 ugly = false
415415 weight = 0
416+ [outputFormats .headers ]
417+ baseName = ' _headers'
418+ isHTML = false
419+ isPlainText = true
420+ mediaType = ' text/plain'
421+ noUgly = false
422+ notAlternative = true
423+ path = ' '
424+ permalinkable = false
425+ protocol = ' '
426+ rel = ' alternate'
427+ root = true
428+ ugly = false
429+ weight = 0
416430
417431[outputs ]
418432 # JSON output is required for search functionality
419433 # The search index (/index.json) includes only pages from sections defined in params.taxonomies.mainSections
420- home = [' HTML' , ' RSS' , ' JSON' ] # Ensure JSON is included for search
434+ home = [' HTML' , ' RSS' , ' JSON' , ' headers ' ]
421435 page = [' HTML' , ' JSON' ] # needed for portfolio.json
422436 rss = [' RSS' ]
423437 section = [' HTML' , ' RSS' , ' JSON' ]
Original file line number Diff line number Diff line change 1+ /*
2+ # Content Security Policy to allow Matomo analytics
3+ Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' {{ .Site.BaseURL | strings.TrimSuffix "/" }}/analytics http://localhost:8080; connect-src 'self' {{ .Site.BaseURL | strings.TrimSuffix "/" }}/analytics http://localhost:8080; img-src 'self' data: {{ .Site.BaseURL | strings.TrimSuffix "/" }}/analytics http://localhost:8080; style-src 'self' 'unsafe-inline'; font-src 'self' data:
4+
5+ # Security headers
6+ X-Frame-Options: DENY
7+ X-Content-Type-Options: nosniff
8+ X-XSS-Protection: 1; mode=block
9+ Referrer-Policy: strict-origin-when-cross-origin
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments