human-anatomy-3d/src/_includes/layouts/base.ejs

120 lines
3.9 KiB
Text
Raw Normal View History

2020-06-20 18:16:50 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<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="16x16" href="/favicon-16x16.png" />
<link rel="icon" href="/favicon.ico" />
<title><%= title %></title>
<meta
name="description"
content="<%= (!!locals.description) ? description : site.description %>"
/>
<meta name="author" content="<%= site.author %>" />
<meta property="og:title" content="<%= title %>" />
<meta
property="og:description"
content="<%= (!!locals.description) ? description : site.description %>"
/>
<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">
2020-06-20 18:16:50 +00:00
{
"description": "<%= (!!locals.description) ? description : site.description %>",
"author": { "@type": "Person", "name": "<%= site.author %>" },
"@type": "BlogPosting",
"url": "<%= `${site.url}${page.url}` %>",
"publisher": {
"@type": "Organization",
"logo": {
"@type": "ImageObject",
"url": "<%= `${site.url}/assets/images/logo.png` %>"
},
"name": "<%= site.author %>"
},
"headline": "<%= title %>",
"datePublished": "<%= date.toISOString() %>",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "<%= `${site.url}${page.url}` %>"
},
"@context": "http://schema.org"
}
</script>
<% } %><%- include('webpack.ejs') %> <% if (page.url == "/") { %>
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
<script>
if (window.netlifyIdentity) {
window.netlifyIdentity.on('init', (user) => {
if (!user) {
window.netlifyIdentity.on('login', () => {
document.location.href = '/admin/';
});
}
});
}
</script>
<% } %>
</head>
2020-10-04 21:50:01 +00:00
<body class="antialiased w-full text-gray-700">
<div class="max-w-screen-lg mx-auto">
<div class="">
<header class="site-header ">
<img src="<%= `${site.url}/assets/images/logo.png` %>" alt="">
<h1 class="site-title font-semibold text-3xl text-gray-800"><%= site.title %></h1>
<!-- <div class="text-xl"><%= site.description %></div> -->
</header>
<!-- <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> -->
2020-10-04 21:50:01 +00:00
</div>
<div class="text-xl py-4"><%- content %></div>
2020-10-04 21:50:01 +00:00
<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>
2020-10-04 21:50:01 +00:00
</div>
</body>
2020-06-20 18:16:50 +00:00
</html>
<style>
.site-header{
display: flex;
justify-content: center;
}
.site-title {
font-family: Bebas Neue;
font-style: normal;
font-weight: normal;
font-size: 52.72px;
line-height: 63px;
letter-spacing: 0.24em;
text-transform: uppercase;
width: auto;
}
</style>