Skip to content

Is it possible to set a twitter:image and og:image for search page? #744

Answered by razonyang
Natenom asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, those are pages, you can do it as same as your other pages, either specify the images in front matter(content/search/index.md) or save the image into page folder.

images = [
    "/images/search-icon.png"
]

You need to save your images into /static/images.

Or

$ tree content/search                
content/search
├── _index.fr.md
├── _index.ja.md
├── _index.md
├── _index.zh-hans.md
├── _index.zh-hant.md
└── feature.png

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Natenom
Comment options

You must be logged in to vote
1 reply
@razonyang
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants