Pelican blog - Verify ownership Bing webmaster - blogs

To verify ownership of my blog, the bing webmaster requires one of the following three approaches:
Upload the file "BingSiteAuth.xml" to my website as https://mywebsite/BingSiteAuth.xml
Copy and paste a meta tag in my default webpage e.g. <meta name="msvalidate.01" content="...." />
An example given:
<html>
<head>
<meta name="msvalidate.01" content="...." />
<title>Your SEO optimized title</title>
</head>
<body>
page contents
</body>
</html>
Add CNAME record to DNS
Question:
What would be the easiest approach and what would be the steps for a beginner ?
Note I am using the AboutWilson template in Pelican. Thanks

Sounds like the copy and paste meta tag would be the easiest, i have done it on my blog. All you need to do is go to your theme template directory and paste the required meta tag line in the base.html file in the head section.

Related

Problem index site on Google created with blogdown in R software?

I am facing a problem with indexing my site on the internet (created with R software) and I am limited by my lack of knowledge: to make a long story short, the site is not found in the search bar, but is displayed well when the URL is directly entered in the URL bar. So the site is well deployed.
The site was following the blogdown vignette and deployed with netlify. However, I didn't use a pre-existing theme (maybe that's why the site is not found?). I followed the file structure as explained in the blogdown vignette (it is composed of an HTML index file, some additional HTML pages that the index file refers to, and a CSS file for some features). I compile the HTML files from Rmd documents in R (using Rmarkdown; R studio 4.1.3 with ubuntu 20.04).
Before reaching you for help, I tried to solve this issue and:
created a header file that I added to every HTML page in which I added metadata with title, name of author keywords, description. Here is an example of the structure (while preserving anonymity):
<title> My name </title>
<link rel="icon" href="Images/pacman_ghost.ico">
<meta name="author" content="My name">
<meta name="keywords" content="Keyword 1, keyword 2" />
<meta name="description" content="A brief description">
<meta name="viewport" content="width=device-width, initial-scale=1" />
indexed it in google, to force crawling, and added it to the metadata of the header file:
<meta name="robots" content="index, follow"/>
<link rel="canonical" href="My site URL">
<meta name="google-site-verification" content="The key provided by google"/>
But the pages are still not indexed by Google. Is it because I have to submit a sitemap? I have created the XML file, but I don't know how to link it to the site, so I can submit it to Google via their search console page. What do existing themes (as in Hugo) that induce the site created by combining with blogdown and netlify to be indexed then?
Thanks in advance for the help!

Convert shared layout of asp.net to html

I recently figured that hosting a microsoft webdomain is expencive. Therefore I want to change my website to a simple HTML file with JScript and Css.
Does anyone know how i change this code from the shared-layout of my project to normal HTML code that i can paste into my index page?
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>#ViewBag.Title</title>
#Styles.Render("~/css/style.css")
#Styles.Render("~/Content/css")
#Styles.Render("~/Content/bootstrap.css")
#Styles.Render("~/css/animate.css")
#Styles.Render("~/css/animations.css")
#Styles.Render("~/css/custom.css")
</head>
<body>
#RenderBody()
#Scripts.Render("~/bundles/jquery")
#RenderSection("scripts", required: false)
</body>
Just display any page from your web site in your browser, right click on the page, and select "View page source". Copy and paste that into a new file - the HTML is all there. No need to worry about what the above Render functions do as you are capturing the HTML after it has been rendered! Next add lines to the head section to link each .css file (keeping the same order as in the original script, that's important), and move copies of those files to your new site, and that should be it.

jsf 2 ui:include .html give error "XML Parsing Error: no element found"

I include a header.html (not .xhtml) to my page, but when I preview my page, it give me error "XML Parsing Error: no element found". I do know that it is the tag no properly closed issue, but since my header page is a html file, not a xhtml file, it shouldn't must close the tag, am I right?
If I do close all the meta tag in my header.html, my page is working fine, but I wish to know that is it a must close all the tag properly in html file if I include them in jsf2, thanks.
header.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Header</title>
<meta name="description" content="">
</head>
<body>header content</body>
</html>
welcome1.xhtml
<ui:include src="header.html" />
<p>welcome page</p>
From Oracle's documentation, <ui:include> is used to encapsulate and reuse content among multiple XHTML pages. The src attribute is expected to point to a well-formed XML document. Even if you want to include .html pages, you need to make sure all tags are closed properly.
If you look more closely, you will see the closing <html> tag in you header.html, which should end the HTML document, as you can see in Structure of an HTML document. This way, when you include the file in the final view you break that contract.
In JSF you'd be better off using the templating option of facelets. For example in a master template you can make insert points, like the scripts section, and later define inserted contents in template client pages (final views). Kickoff example can be found in this tutorial by mkyong.

Force facebook share title

I have a wordpress website with a few simple pages and a facebook share button in the header. As it is now, facebook uses the wordpress page name as the title for the share, but I'd like it to use the html title instead (or just specify my own). How would I go about this?
Check this plugin. It allows you to add open graph tags on page or post basis or default settings for your site.
http://wordpress.org/extend/plugins/open-graph-protocol-in-posts-and-pages/
Just set the <meta property> tags in your HTML. Notice the indented lines:
<html prefix="og: http://ogp.me/ns#">
<head>
<title>Your Title</title>
<meta property="og:title" content="Your Title" />
<meta property="og:image" content="http://www.example.com/myimage.jpg" />
...
</head>
...
</html>
You have a wide variety of properties to choose from: Open Graph Protocol Official Documentation. Ultimately, this is just a problem of using the right HTML.

Best solution to redirect a site internally

I have a site hosted on a commercial provider and all site were developed on /portal folder.
Until today I redirect the site using frameset:
<html>
<head>
<title>Titulo</title>
<meta name="google-site-verification" content="xxx" />
<meta http-equiv="Content-Language" content="pt-br">
<meta name="description" content="xxxx">
</head>
<FRAMESET>
<FRAME SRC="http://www.test.com.br/portal" NORESIZE>
<body></body>
</FRAMESET>
</html>
Now, the host provider suggests me to use:
<script>window.location='http://www.test.com.br/portal';</script>
Is this faster or better than the frameset approach ?
Is Google or other search engine will continue to search for the content?
You have different ways to redirect to another page. If you're using a server-side language like php you can use this (before the headers has been sent):
header("Location: http://www.test.com.br/portal");
using HTML you can do this:
<meta http-equiv="refresh" content="0;url=http://www.test.com.br/portal">
Using Javascript you can do this:
<script>window.location='http://www.test.com.br/portal';</script>
The best way, in my opinion, is the first because of you can also specify the type of redirect (permanent or temporary) and this is better from a SEO point of view. Google and the other search engines will be able to crawl your page easily if you choose the first solution.
Just add this tag to the head section
<meta http-equiv="refresh" content="0; URL=http://www.test.com.br/portal"/>
For some reasons it's better than using framesets.
In addition to
<script>window.location='http://www.test.com.br/portal';</script>
you can put a link to that page into your HTML body, something like this:
<p>You will now be redirected to another page.<br/>
If it didn't happen, use this link:
http://www.test.com.br/portal</p>
But the solution with php's header function (Aurelio De Rosa's answer) is better indeed.