SEO & GTM
This commit is contained in:
Родитель
d392116b0a
Коммит
6f20c0313f
|
@ -5,6 +5,43 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="theme-color" content="#000000">
|
||||
<base href="%PUBLIC_URL%/" />
|
||||
<!-- Google Tag Manager -->
|
||||
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','GTM-MPTZGWL');</script>
|
||||
<!-- End Google Tag Manager -->
|
||||
|
||||
<meta content="IE=edge" http-equiv="X-UA-Compatible">
|
||||
<meta charset="utf-8">
|
||||
<meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
|
||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
||||
|
||||
<meta property='og:type' content='website'>
|
||||
<meta property="og:title" content="Kick start your cloud-native .NET apps with Initializr" />
|
||||
<meta property="og:url" content="https://start.steeltoe.io" />
|
||||
<meta property="og:image" content="https://steeltoe.io/images/favicon.png" />
|
||||
<meta property="og:description" content="Steeltoe Initializr provides an extensible API and UI to generate .NET WebAPI-based projects with customizations for specific cloud components in mind." />
|
||||
<meta name='twitter:title' content='Kick start your cloud-native .NET apps with Initializr.'>
|
||||
|
||||
<meta content="Kick start your cloud-native .NET apps with Initializr." name="DC.Title" xml:lang="EN">
|
||||
<meta content="cloud-native, .net, dotnet, framework, cloud, developer" name="DC.Subject" xml:lang="EN">
|
||||
<meta content="Steeltoe Initializr provides an extensible API and UI to generate .NET WebAPI-based projects with customizations for specific cloud components in mind." name="description" xml:lang="EN">
|
||||
<meta content="EN" name="DC.Language" scheme="dcterms:RFC1766">
|
||||
<meta content="https://start.steeltoe.io/" name="DC.Identifier" schema="DCterms:URI">
|
||||
<meta content="text/html" name="DC.Format" schema="DCterms:IMT">
|
||||
<meta content="Pivotal Software" name="DC.Creator">
|
||||
<meta content="Steeltoe OSS" name="DC.Publisher">
|
||||
<meta content="info@steeltoe.io" name="DC.Publisher.Address">
|
||||
<meta content="Steeltoe OSS" name="DC.Contributor">
|
||||
<meta content="2019-10-03" name="DC.Date" scheme="ISO8601">
|
||||
<meta content="text/html" name="DC.Type">
|
||||
<meta content="https://start.steeltoe.io/" name="DC.Identifier">
|
||||
|
||||
<title>Steeltoe OSS - Initializr</title>
|
||||
<link href='https://start.steeltoe.io/' rel='canonical'>
|
||||
|
||||
<!--
|
||||
manifest.json provides metadata used when your web app is added to the
|
||||
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
|
||||
|
@ -20,9 +57,12 @@
|
|||
work correctly both with client-side routing and a non-root public URL.
|
||||
Learn how to configure a non-root public URL by running `npm run build`.
|
||||
-->
|
||||
<title>Steeltoe Initializr</title>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Google Tag Manager (noscript) -->
|
||||
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MPTZGWL"
|
||||
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
<!-- End Google Tag Manager (noscript) -->
|
||||
<noscript>
|
||||
You need to enable JavaScript to run this app.
|
||||
</noscript>
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
using Microsoft.AspNetCore.Mvc.Abstractions;
|
||||
using Microsoft.AspNetCore.Mvc.ActionConstraints;
|
||||
using Microsoft.AspNetCore.Routing;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Steeltoe.Initializr.Controllers
|
||||
{
|
||||
public class IsCurlRequestAttribute : ActionMethodSelectorAttribute
|
||||
{
|
||||
public override bool IsValidForRequest(RouteContext routeContext, ActionDescriptor action)
|
||||
{
|
||||
var headers = routeContext.HttpContext.Request.Headers;
|
||||
return headers["User-Agent"].Any(h => h.ToLower().Contains("curl"));
|
||||
}
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче