aider/_layouts
Paul Gauthier db994fb203 aider: Updated the reference to highlight_image in default.html to use page.highlight_image.
# Aider chat conversation:

USER: in default.html, how should i reference the `highlight_image` declared in the markdown front matter?

ASSISTANT: To reference the `highlight_image` front matter variable in `default.html`, you can use the Liquid syntax `{{ page.highlight_image }}`.

Here's the change in a *SEARCH/REPLACE block*:

_layouts/default.html
<source>html
<<<<<<< SEARCH
    {% if highlight_image %}
    <meta property="og:image" content="{{ site.url }}{{ highlight_image }}">
=======
    {% if page.highlight_image %}
    <meta property="og:image" content="{{ site.url }}{{ page.highlight_image }}">
>>>>>>> REPLACE
</source>

This checks if `page.highlight_image` is defined in the front matter of the current page. If so, it sets the `og:image` meta tag to the full URL of the highlight image by prepending `site.url` to `page.highlight_image`.
2024-05-06 16:26:56 -07:00
..
default.html aider: Updated the reference to highlight_image in default.html to use page.highlight_image. 2024-05-06 16:26:56 -07:00
redirect.html Add custom redirect.html without robots:noindex 2024-02-16 08:40:29 -08:00