Welcome to Shaun Luttin's public notebook. It contains rough, practical notes. The guiding idea is that, despite what marketing tells us, there are no experts at anything. Sharing our half-baked ideas helps everyone. We're all just muddling thru. Find out more about our work at bigfont.ca.

Add an HTML meta Element to the document head from an Orchard theme

Tags: orchard-cms, asp.net, asp.net-mvc

From within Layout.cshtml, use SetMeta. For example:

SetMeta(name: "", content: "IE=edge", httpEquiv: "X-UA-Compatible", charset: "");
SetMeta(name: "viewport", content: "width=device-width, initial-scale=1.0", httpEquiv: "", charset: "");