champorado
  • 2022-11-15 21:41:34 +0800 +0800
    champorado

    champorado

    2022.11.15

    Image display consistency

    Allows images in the home feed to look the same way they do in their actual pages (having curved corners).

    The below line was added after the {{ end }} of the {{ if in .Params.Categories "note" }} section

    {{ if and (isset .Params "image") .Params.image }}
        <img class="enclosure" src="{{.Params.image |   absURL}}">
    {{ end }}
    

    I copied that from layouts/_default/_markup/render-image.html

    This applies the theme’s image styles to images in the home feed as well.

    2022-11-15 21:41:34 +0800 +0800 2022.11.15