Add robots.txt , update meta tags, add meta tag noindex for bots

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@53547 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2018-10-24 09:15:13 +00:00
parent a742833ea7
commit f33872655c
7 changed files with 19 additions and 37 deletions

View File

@ -9,7 +9,7 @@
"outDir": "dist/browser",
"assets": [
"assets",
"favicon.ico"
"robots.txt"
],
"index": "index.html",
"main": "main.ts",
@ -38,7 +38,8 @@
"outDir": "dist/server",
"assets": [
"assets",
"favicon.ico"
"robots.txt"
],
"index": "index.html",
"main": "main.server.ts",

View File

@ -1,4 +1,5 @@
{
"productionMode" : false,
"enablePiwikTrack" : true,
"enableHelper" : true,
"useCache" : true,
@ -92,7 +93,7 @@
"searchLinkToAdvancedPeople" : "/search/advanced/people",
"lastIndexInformationLink" : "https://www.openaire.eu/aggregation-and-content-provision-workflows",
"showLastIndexInformationLink" : true,
"showLastIndexInformationLink" : false,
"widgetLink" : "https://beta.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId="
}

View File

@ -44,8 +44,8 @@ export class CommunitiesComponent {
private _communitiesService:CommunitiesService,
private config: ConfigurationService) {
var description = "Community Dashboard";
var title = "Community Dashboard";
var description = "OpenAIRE - Connect, Community Dashboard, research community";
var title = "OpenAIRE - Connect";
this._meta.updateTag({content:description},"name='description'");
this._meta.updateTag({content:description},"property='og:description'");

View File

@ -30,8 +30,6 @@ export class CommunityComponent {
public piwiksub: any;
public subfunders: any;
public pageTitle = "OpenAIRE"
public publicationTotal = null;
public researchDataTotal = null;
public softwareTotal = null;
@ -72,8 +70,8 @@ export class CommunityComponent {
private _communityService:CommunityService,
private _searchEntriesService:SearchEntriesService) {
var description = "Community Dashboard";
var title = "Community Dashboard";
var description = "OpenAIRE - Connect, Community Dashboard, research community";
var title = "OpenAIRE - Connect";
this._meta.updateTag({content:description},"name='description'");
this._meta.updateTag({content:description},"property='og:description'");
this._meta.updateTag({content:title},"property='og:title'");

View File

@ -1,4 +1,5 @@
{
"productionMode" : false,
"enablePiwikTrack" : false,
"enableHelper" : true,
"useCache" : false,

View File

@ -7,22 +7,22 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<base href="/" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<!--meta name="description" content="OpenAIRE, Connect,Community Dashboard, communities, open access, research, projects "/>
<meta name="description" content="OpenAIRE Connect, Connect,Community Dashboard, communities, open access, research, projects "/>
<meta property="og:description" content="OpenAIRE, Connect,Community Dashboard, communities, open access, research, projects"/>
<meta property="og:title" content="OpenAIRE Connect | Community Dashboard"/>
<meta property="og:description" content="OpenAIRE Connect, Connect,Community Dashboard, communities, open access, research, projects"/>
<meta property="og:title" content="OpenAIRE - Connect "/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://beta.connect.openaire.eu"/>
<meta property="og:site_name" content="OpenAIRE"/-->
<meta property="og:site_name" content="OpenAIRE - Connect"/>
<meta property="og:image" content="assets/common-assets/common/Symbol.png"/>
<meta property="og:image:secure_url" content="assets/common-assets/common/Symbol.png" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="360" />
<meta property="og:image:height" content="359" />
<meta name="robots" content="noindex">
<link rel="apple-touch-icon" sizes="57x57" href="assets/common-assets/logo/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="assets/common-assets/logo/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="assets/common-assets/logo/apple-icon-72x72.png">
@ -99,29 +99,6 @@ $(document).ready(function(){
<!-- <script async src="assets/common-assets/common/theme.js"></script> -->
<!-- Google sitename markup-->
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "WebSite",
"name" : "OpenAIRE",
"url" : "http://demo.openaire.eu"
}
</script>
<!-- End of Google sitename markup-->
<!-- Google sitelinks search markup-->
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url" : "http://demo.openaire.eu",
"potentialAction": {
"@type": "SearchAction",
"target": "http://demo.openaire.eu/search/find/?keyword={search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
<script src="assets/common-assets/clipboard.min.js"></script>
<!--script type='text/javascript' src="node_modules/clipboard/dist/clipboard.min.js"></script-->

4
src/robots.txt Normal file
View File

@ -0,0 +1,4 @@
User-Agent: *
Disallow: /cache
Disallow: /upload
Disallow: /