meta-tags

Browser not using metatag Content Security Policy

ε祈祈猫儿з 提交于 2019-12-11 05:18:54
问题 I am trying to load some css and scripts via some CDNs to improve loading times but I am getting a content security policy issue, but after a fair amount of time reading up on it and trying out different polices it is still giving my the same error. Currently my policy looks like this - <meta http-equiv="Content-Security-Policy" content="default-src 'self' https://code.jquery.com/ https://cdnjs.cloudflare.com/ https://maxcdn.bootstrapcdn.com/"> which from my understanding should mean I can

Should og:image and og:url put in <meta> or <link>?

我与影子孤独终老i 提交于 2019-12-11 04:49:33
问题 For og:image and og:url , since they have URL, can I place them in a link tag instead of a meta tag, and is it preferable? Also what is the difference in using these two tags w.r.t. og:image and og:url ? 回答1: I don't know about other major consumers of the OGP so this might not be a problem for your case, but if you plan to implement it for Facebook, stick to meta tags. Doing a quick live test with the open graph debugger and fiddling with the og: tags, it appears that facebook only

Angular Meta Service not adding and updating dynamic tag values

不想你离开。 提交于 2019-12-11 04:21:01
问题 I'm working on SeoService for my Angular 6 project https://mypleaks.com. I'm trying to add and update Meta tag as my content URL changes dynamically. I'm able to console.log('18 ' + title); console.log('19 ' + description); but when I'm appending title and description in addTag and updateTag tag only static value('myPleaks | ') getting appended, and can be seen on inspecting page sources on this link https://mypleaks.com/#/content/16/Manikarnika-Teaser-Launch-Kangana-Ranaut-Celebrates-with

Meta refresh with semicolon

霸气de小男生 提交于 2019-12-11 03:29:49
问题 I have semicolon as query string separator in my urls instead of and (&). My problem is that when I try to do a meta refresh to a url with semicolon in query string it will translate it to %253b instead. So when forwarded, I can't read the query string parameters as the separator is not there anymore. example: http://domain.com/?foo=1;bar=2 becomes: http://domain.com?foo=1%253bbar=2 How can I solve this, so it doesn't translate the semicolon when doing a meta refresh? Grateful for any help!

How can I set a meta description tag in Sailsjs using ejs templates?

好久不见. 提交于 2019-12-11 02:44:06
问题 I would like to be able to set the description meta tag from the sails controller action. I have searched all over, but the only example involves the page title. This is my first node.js and sailsjs site, am I going about this the wrong way? Something like this: module.exports = { index: function (){ res.view( { title: 'The Title Text', metaDescription: "The Description Text" }); } }; 回答1: Yes, this is correct. You can insert in your template with <!DOCTYPE html> <html> <head> <title><%=

How can we check that what font the browser is using?

笑着哭i 提交于 2019-12-11 02:38:01
问题 I have used font-family in css as simsun. But there is no font in my system called simsun but I have to know what the font is taken by a browser to display. 回答1: Try cutting and pasting into word (or another word processor), and then look at what font word is using. 回答2: It depends on browser. But you can set list of fonts in your css-file: font-family:'Lucida Grande','Verdana',sans-serif; 来源: https://stackoverflow.com/questions/4223276/how-can-we-check-that-what-font-the-browser-is-using

Set min-width in viewport metatag

≯℡__Kan透↙ 提交于 2019-12-11 02:14:38
问题 I'm designing a web page [responsive]. Min-width of the screen should be 480px. how do i do it? Right now i'm fixing the width to 480px which looks perfect on the phones but looks pretty huge on the tablets. For big screens the width should change dynamically. 回答1: min-width in view port meta tag <meta name="viewport" content="width=480"> or @-o-viewport { width: 480px; } for responsive design <meta name="viewport" content="width=device-width, initial-scale=1.0"> Using media queries @media

append meta tag to the head of the main document from iframe

*爱你&永不变心* 提交于 2019-12-11 02:12:33
问题 So I've got an issue where i've made a document responsive but it's displayed in an iframe which where the parent document has the wrong meta tag. I set up a test to see if i could do it in an iframe. It's appending the meta tag to the head of the iframe not the main document. Anyone have any suggestions? index.html <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Iframe Test</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <

G+ doesn't accept my og:image

帅比萌擦擦* 提交于 2019-12-10 23:59:19
问题 I can't seem to figure out why G+ doesn't show the photo on my page http://cruiser.mototribe.com/photo/march-contest It has the proper meta tags: <meta property="og:image" content="http://cruiser.mototribe.com/sites/default/files/styles/large/public/photos/new/bikeer%2520pose.jpg" /> The testing tool confirms the og:image tags http://www.google.com/webmasters/tools/richsnippets?url=http://cruiser.mototribe.com/photo/march-contest What am I missing? 回答1: From https://developers.google.com/+

Change facebook meta data based on URL / Anchor

冷暖自知 提交于 2019-12-10 23:14:06
问题 I've discovered whilst typing my question a small exchange on this at Adding a URL hash into meta data for Facebook and Twitter share cards which suggests that this may not be feasible but as things change over time I thought I'd seek guidance. The scenario: I have a URL http://example.com/ which includes appropriate Facebook meta in the header. I'm most interested in: <meta property="og:image" content="whatever.jpg" /> At a later date I may add some additional info on the page and link to it