Display cover image #878
-
| 
         I want to add an image as a cover - to be displayed alongside the post on a main page. I have (simplified): ---
title: "test"
date: 2022-02-24
draft: false
cover:
    image: "/0.jpg"
---
start

endWhen I open the post I see a rendered   | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            orimdominic
          
      
      
        Apr 15, 2022 
      
    
    Replies: 1 comment 4 replies
-
| 
         This is what I use cover:
    image: "../path/to/image.png"
    alt: "The alt text"
    caption: ""
    relative: falseYou may want to check the path again and/or use the relative attribute  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    4 replies
                  
                
            
      Answer selected by
        adityatelange
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
This is what I use
cover: image: "../path/to/image.png" alt: "The alt text" caption: "" relative: falseYou may want to check the path again and/or use the relative attribute
See this part of the documentation Post Cover Image