Skip to content

Commit

Permalink
Added robots.txt sitemap.xml gtag and meta data
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman-Codes committed Feb 15, 2021
1 parent 4ce6d90 commit 442b142
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 5 deletions.
3 changes: 2 additions & 1 deletion frontend/.env
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
REACT_APP_API=http://localhost:5000/api
REACT_APP_API=http://localhost:5000/api
#REACT_APP_API=https://pennamechooser.herokuapp.com/api
45 changes: 41 additions & 4 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,52 @@
<link rel="icon" href="%PUBLIC_URL%/logo.svg" />
<meta name="viewport" content="minimum-scale=1, width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Pen Name Chooser"
/>
<meta name="description" content="Pen Name Chooser is a website that helps you to select a unique pen name for your online presence, be it any platform where you code or publish your content on"/>
<meta name="keywords" content="pen name chooser, username chooser, pen name picker, username picker, pen name checker, username checker">
<meta name="author" content="Aman Dwivedi">
<meta name="theme-color" content="#ffffff">

<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo.svg" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" />
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Reggae+One&display=swap" rel="stylesheet">

<title>Pen Name Chooser</title>
<!-- To run web application in full-screen -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Status Bar Style (see Supported Meta Tags below for available values) -->
<!-- Has no effect unless you have the previous meta tag -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">

<!-- FaceBook Meta Data -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://pennamechooser.herokuapp.com/">
<meta property="og:title" content="Pen Name Chooser">
<meta property="og:image" content="https://pennamechooser.herokuapp.com/logo.svg">
<meta property="og:description" content="Pen Name Chooser is a website that helps you to select a unique pen name for your online presence, be it any platform where you code or publish your content on">
<meta property="og:site_name" content="Pen Name Chooser">
<meta property="og:locale" content="en_US">
<!-- Next tags are optional but recommended -->
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">

<!-- Twitter Meta Data -->
<meta name="twitter:card" content="Pen Name Chooser is a website that helps you to select a unique pen name for your online presence, be it any platform where you code or publish your content on">
<meta name="twitter:url" content="https://pennamechooser.herokuapp.com/">
<meta name="twitter:title" content="Pen Name Chooser">
<meta name="twitter:description" content="Pen Name Chooser is a website that helps you to select a unique pen name for your online presence, be it any platform where you code or publish your content on">
<meta name="twitter:image" content="https://pennamechooser.herokuapp.com/logo.svg">

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SMPL3DCYLZ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-SMPL3DCYLZ');
</script>

</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
1 change: 1 addition & 0 deletions frontend/public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Sitemap: https://pennamechooser.herokuapp.com/sitemap.xml
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
7 changes: 7 additions & 0 deletions frontend/public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>https://pennamechooser.herokuapp.com/</loc>
<lastmod>2021-02-15T08:59:09+00:00</lastmod>
<priority>1.00</priority>
</url>
</urlset>

0 comments on commit 442b142

Please sign in to comment.