mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 23:35:31 -04:00
stop hardcoding images/ directory in content frontmatter
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
{{/* Article image (with fallback to default image */}}
|
||||
{{- with .Params.image }}
|
||||
{{- $imagePath := (path.Join "content" $.File.Dir "images/" .) }}
|
||||
{{- $imagePath := (path.Join "content" $.File.Dir .) }}
|
||||
|
||||
{{- $.Scratch.Set "socialImage_url" (replace $imagePath "content/" "") }}
|
||||
{{- with (imageConfig $imagePath) }}
|
||||
|
Reference in New Issue
Block a user