Meta tag in head

@kapa.ai How would I add a meta tag to the head of the document in the web-app?
1 Reply
kapa.ai
kapa.ai2w ago
Hi @cmilazzo. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- You can add a meta tag to the head of the document in your Wasp web app by using the head field in the app declaration. The head field accepts a list of strings, each representing a line of HTML to be included in the <head> of your HTML document. Here is an example of how you can add a meta tag:
app myApp {
wasp: {
version: "^0.13.0"
},
title: "My App",
head: [
"<meta name=\"viewport\" content=\"minimum-scale=1, initial-scale=1, width=device-width\" />"
]
}
app myApp {
wasp: {
version: "^0.13.0"
},
title: "My App",
head: [
"<meta name=\"viewport\" content=\"minimum-scale=1, initial-scale=1, width=device-width\" />"
]
}
In this example, a viewport meta tag is added to the head of the document. You can replace the content of the string with any meta tag you wish to include. For more details, you can check out the Wasp documentation on customizing the app (https://wasp-lang.dev/docs/project/customizing-app). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @cmilazzo, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Want results from more Discord servers?
Add your server