Skip to content

Commit

Permalink
feat: add the decap_cms.js_url parameter for specifying script URL
Browse files Browse the repository at this point in the history
fix: replace Netlify CMS script with Decap CMS
  • Loading branch information
razonyang committed Nov 16, 2023
1 parent 72cac61 commit 75806cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ notAlternative = true
mediaType = "application/yaml"

[params.decap_cms]
js_url = ""
# local_backend = false
publish_mode = "editorial_workflow"
media_folder = "static/images/uploads"
Expand Down
3 changes: 1 addition & 2 deletions layouts/_default/decap-cms.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
{{- end }}
</head>
<body>
<!-- Include the script that builds the page and powers Decap CMS -->
<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/cms.js"></script>
<script src="{{ default `https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js` site.Params.decap_cms.js_url }}"></script>
</body>
</html>

0 comments on commit 75806cf

Please sign in to comment.