Skip to content

Commit

Permalink
Add call to scripts.html partial
Browse files Browse the repository at this point in the history
  • Loading branch information
regisphilibert committed May 19, 2020
1 parent ac83849 commit 2db11f0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ module:
target: layouts/page
- source: func
target: layouts/partials/tnd-netlifycms
- source: partials
target: layouts/partials/tnd-netlifycms
outputFormats:
netlifycms_debug:
baseName: config
Expand Down
3 changes: 3 additions & 0 deletions partials/scripts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ with resources.Get "netlifycms.js" }}
<script>{{ .Content | safeJS }}</script>
{{ end }}
1 change: 1 addition & 0 deletions templates/netlifycms.html.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
<body>
<!-- Include the script that builds the page and powers Netlify CMS -->
<script src="https://unpkg.com/netlify-cms@2.10.35/dist/netlify-cms.js"></script>
{{ partial "tnd-netlifycms/scripts.html" . }}
</body>
</html>

0 comments on commit 2db11f0

Please sign in to comment.