Closed juanbrujo closed 9 years ago
I did it using __meta__
:
__meta__: function(){
return '<meta charset="utf-8">\n<meta http-equiv="X-UA-Compatible" content="IE=edge">';
},
That should work. Where are you adding the code?
@taylorhughes I'd like it below <title>
but it is being inserted below <link>
. I'm seeing how to insert more meta as description and opengraph.
Ah, I see. There's no way currently to add anything above < title>.
Why do you need the IE=edge and charset declarations? The charset is specified in the Content-Type header coming back from the server, and IE=edge should be enabled by <!DOCTYPE html>, right?
It was just an example, I need more SEO data into <head>
.
OK, are you having trouble doing that or did you get it working?
(closing due to inactivity)
sorry, it worked using __meta__
. thnx.
@taylorhughes I didn't know where to reach you, but this issue was part of my SkitJS + WordPress integration, successful. I want to share it with you https://github.com/juanbrujo/wp-skitjs
I ca't find a method do alter
adding elements (like UTF-8 meta content)., I see in https://github.com/clusterinc/skit/blob/81b71420f332e6af59ea0e2a2da4e717e1c5fa35/lib/SkitServer.js#L432 but it's not rendering in any of your examples.