You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Move the title image generation to a computed property of
posts.11tydata.js. Title images are generated in memory and fed to
eleventy-img using its SVG Buffer support.
* Optimize auto-generated title images.
Copy file name to clipboardExpand all lines: README.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ This static website is built with [Eleventy](https://www.11ty.dev/).
11
11
Blog post data and content are generated in the following chain:
12
12
13
13
1. The markdown files in `posts` provide the slug, title, content and optionally image (used for `og:image`).
14
-
2.`posts/posts.11tydata.js` specifies the layout and sets a generated `image`if not specified.
14
+
2.`posts/posts.11tydata.js` specifies the layout and prepares an OpenGraph image. If `image`is not specified in front matter, an image is generated. Regardless of image generation, the image is resized and optimized and saved into `public/cached`.
15
15
3.`_includes/post.njk` renders the post page content and sets a permalink.
16
16
4.`_includes/base.njk` render the entire content.
17
17
5. (content only) Transformers optimize the HTML and images.
@@ -22,7 +22,6 @@ The `posts` collection is used for the following purposes:
22
22
23
23
- Render individual post pages.
24
24
- Render the all posts page with `blog/archives.njk`.
25
-
- Generate OG images with `blog/title-image.11ty.js`. This JavaScript template generates a PNG image for each post. The generated images are referenced with URLs by `posts/posts.11tydata.js`.
0 commit comments