Format project code and put the right url to preview css
This commit is contained in:
parent
213da09b55
commit
32204eb9b0
3 changed files with 18 additions and 20 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<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" />
|
||||||
|
|
@ -10,10 +9,9 @@
|
||||||
<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>
|
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
|
||||||
<script>
|
<script>
|
||||||
CMS.registerPreviewStyle("/styles/main.css");
|
CMS.registerPreviewStyle('/assets/styles/main.css');
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<% } %> <%- include('webpack.ejs') %>
|
<% } %> <%- 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>
|
<script>
|
||||||
if (window.netlifyIdentity) {
|
if (window.netlifyIdentity) {
|
||||||
window.netlifyIdentity.on('init', (user) => {
|
window.netlifyIdentity.on('init', (user) => {
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,10 @@ layout: layouts/base.ejs
|
||||||
<article>
|
<article>
|
||||||
<header>
|
<header>
|
||||||
<h1 class="text-center font-bold text-3xl text-gray-800"><%= title %></h1>
|
<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>
|
</header>
|
||||||
|
|
||||||
<section class="content">
|
<section class="content"><%- content %></section>
|
||||||
<%- content %>
|
|
||||||
</section>
|
|
||||||
</article>
|
</article>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue