Thursday 3 May 2018

Create your AMP HTML page

Code:

<!doctype html>
<html amp lang="en">
  <head>
    <meta charset="utf-8">
    <script async src="https://cdn.ampproject.org/v0.js"></script>
    <title>Hello, AMPs</title>
    <link rel="canonical" href="http://example.ampproject.org/article-metadata.html">
    <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
    <script type="application/ld+json">
      {
        "@context": "http://schema.org",
        "@type": "NewsArticle",
        "headline": "Open-source framework for publishing content",
        "datePublished": "2015-10-07T12:02:41Z",
        "image": [
          "logo.jpg"
        ]
      }
    </script>
    <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
  </head>
  <body>
    <h1>Welcome to the mobile web</h1>
  </body>
</html>

AMP HTML documents MUST:


Use this tag in main non AMP page

<link rel="amphtml" href="https://www.bajajfinserv.in/amp/business-loan" />

Friday 2 February 2018

Geo/ KML Sitemap Generation

Location.KML File

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
<name>Locations for Hunt Lease Association of America</name>
<atom:link rel="related" href="https://huntinginsurance.com" />
<Folder>
<Placemark>
<name><![CDATA[Hunt Lease Association of America]]></name>
<address><![CDATA[1371 Hecla Drive Ste E., Louisville, Colorado, 80027, United States]]></address>
<phoneNumber><![CDATA[888-683-7808]]></phoneNumber>
<description><![CDATA["We provide wide verity of specialized insurance programs to help you with all your hunt lease, outfitters and guides insurance needs.]]></description>
<Point>
<coordinates>-105.125113,39.9901587,0</coordinates>
</Point>
</Placemark>
</Folder>
</Document>
</kml>

GeoSiteMap.XML File

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:geo="http://www.google.com/geo/schemas/sitemap/1.0">
<url>
<loc>https://huntinginsurance.com/locations.kml</loc>
</url>
</urlset>

Note: Use https://www.geositemapgenerator.com/ tool to generate Location.KML & GeoSiteMap.XML file and upload it to root folder of the server.