Format project code and put the right url to preview css

This commit is contained in:
Rémi Weng 2020-10-09 23:10:20 +02:00
parent 213da09b55
commit 32204eb9b0
3 changed files with 18 additions and 20 deletions

View file

@ -1,19 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Content Manager</title>
</head>
</head>
<body>
<body>
<!-- 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 async src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
<script>
CMS.registerPreviewStyle("/styles/main.css");
CMS.registerPreviewStyle('/assets/styles/main.css');
</script>
</body>
</body>
</html>

View file

@ -47,7 +47,7 @@
}
</script>
<% } %> <%- include('webpack.ejs') %>
<script async src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
<script>
if (window.netlifyIdentity) {
window.netlifyIdentity.on('init', (user) => {

View file

@ -5,10 +5,10 @@ layout: layouts/base.ejs
<article>
<header>
<h1 class="text-center font-bold text-3xl text-gray-800"><%= title %></h1>
<div class="text-center text-sm mb-8"><%= this.dateFns.format(new Date(date), 'LLLL d, yyyy') %></div>
<div class="text-center text-sm mb-8">
<%= this.dateFns.format(new Date(date), 'LLLL d, yyyy') %>
</div>
</header>
<section class="content">
<%- content %>
</section>
<section class="content"><%- content %></section>
</article>