Format index.html and add netlify identity widget script
This commit is contained in:
parent
6fd04a8011
commit
ec409e62e2
2 changed files with 60 additions and 50 deletions
|
|
@ -10,6 +10,7 @@
|
||||||
<body>
|
<body>
|
||||||
<!-- Include the script that builds the page and powers Netlify CMS -->
|
<!-- Include the script that builds the page and powers Netlify CMS -->
|
||||||
<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
|
<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
|
||||||
|
<script async src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,29 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
<head>
|
||||||
<head>
|
<meta charset="UTF-8" />
|
||||||
<meta charset="UTF-8" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
<link rel="icon" href="/favicon.ico" />
|
<title><%= title %></title>
|
||||||
<title><%= title %></title>
|
<meta
|
||||||
<meta name="description" content="<%= (!!locals.description) ? description : site.description %>" />
|
name="description"
|
||||||
<meta name="author" content="<%= site.author %>" />
|
content="<%= (!!locals.description) ? description : site.description %>"
|
||||||
<meta property="og:title" content="<%= title %>" />
|
/>
|
||||||
<meta property="og:description" content="<%= (!!locals.description) ? description : site.description %>" />
|
<meta name="author" content="<%= site.author %>" />
|
||||||
<meta property="og:locale" content="<%= site.locale %>" />
|
<meta property="og:title" content="<%= title %>" />
|
||||||
<meta property="og:site_name" content="<%= site.site_name %>" />
|
<meta
|
||||||
<% if (locals.tags == "posts") { %>
|
property="og:description"
|
||||||
<meta property="og:type" content="article" />
|
content="<%= (!!locals.description) ? description : site.description %>"
|
||||||
<meta property="article:published_time" content="<%= date.toISOString() %>" />
|
/>
|
||||||
<script type="application/ld+json">
|
<meta property="og:locale" content="<%= site.locale %>" />
|
||||||
|
<meta property="og:site_name" content="<%= site.site_name %>" />
|
||||||
|
<% if (locals.tags == "posts") { %>
|
||||||
|
<meta property="og:type" content="article" />
|
||||||
|
<meta property="article:published_time" content="<%= date.toISOString() %>" />
|
||||||
|
<script type="application/ld+json">
|
||||||
{
|
{
|
||||||
"description": "<%= (!!locals.description) ? description : site.description %>",
|
"description": "<%= (!!locals.description) ? description : site.description %>",
|
||||||
"author": { "@type": "Person", "name": "<%= site.author %>" },
|
"author": { "@type": "Person", "name": "<%= site.author %>" },
|
||||||
|
|
@ -41,38 +46,42 @@
|
||||||
"@context": "http://schema.org"
|
"@context": "http://schema.org"
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<% } %> <%- include('webpack.ejs') %>
|
<% } %> <%- include('webpack.ejs') %>
|
||||||
</head>
|
<script async src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
<body class="antialiased w-full text-gray-700">
|
<body class="antialiased w-full text-gray-700">
|
||||||
<div class="max-w-screen-md mx-auto">
|
<div class="max-w-screen-md mx-auto">
|
||||||
<div class="border-b border-gray-300">
|
<div class="border-b border-gray-300">
|
||||||
<div class="pt-16 pb-8">
|
<div class="pt-16 pb-8">
|
||||||
<h1 class="font-semibold text-3xl text-gray-800"><%= site.title %></h1>
|
<h1 class="font-semibold text-3xl text-gray-800"><%= site.title %></h1>
|
||||||
<div class="text-xl"><%= site.description %></div>
|
<div class="text-xl"><%= site.description %></div>
|
||||||
|
</div>
|
||||||
|
<nav>
|
||||||
|
<ul class="flex flex-wrap text-xl">
|
||||||
|
<li class="mr-6">
|
||||||
|
<a class="text-gray-700 border-none hover:no-underline hover:text-gray-800" href="/"
|
||||||
|
>Home</a
|
||||||
|
>
|
||||||
|
</li>
|
||||||
|
<li class="mr-6">
|
||||||
|
<a
|
||||||
|
class="text-gray-700 border-none hover:no-underline hover:text-gray-800"
|
||||||
|
href="https://github.com/ixartz/Eleventy-Starter-Boilerplate"
|
||||||
|
>
|
||||||
|
GitHub
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="text-xl py-5"><%- content %></div>
|
||||||
|
|
||||||
|
<div class="border-t border-gray-300 text-center py-8">
|
||||||
|
Made with <span role="img" aria-label="Love">♥</span> by
|
||||||
|
<a href="https://creativedesignsguru.com">CreativeDesignsGuru</a>
|
||||||
</div>
|
</div>
|
||||||
<nav>
|
|
||||||
<ul class="flex flex-wrap text-xl">
|
|
||||||
<li class="mr-6">
|
|
||||||
<a class="text-gray-700 border-none hover:no-underline hover:text-gray-800" href="/">Home</a>
|
|
||||||
</li>
|
|
||||||
<li class="mr-6">
|
|
||||||
<a class="text-gray-700 border-none hover:no-underline hover:text-gray-800"
|
|
||||||
href="https://github.com/ixartz/Eleventy-Starter-Boilerplate">
|
|
||||||
GitHub
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</div>
|
</div>
|
||||||
|
</body>
|
||||||
<div class="text-xl py-5"><%- content %></div>
|
|
||||||
|
|
||||||
<div class="border-t border-gray-300 text-center py-8">
|
|
||||||
Made with <span role="img" aria-label="Love">♥</span> by <a
|
|
||||||
href="https://creativedesignsguru.com">CreativeDesignsGuru</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue