Skip to content

Commit

Permalink
Feature: Editorial workflow (#21)
Browse files Browse the repository at this point in the history
* turn on editorial workflow

https://decapcms.org/docs/configuration-options/#publish-mode

* hide first column

this workflow looks not very customisable from the docs

* uncomfortably fragile tweak...

* improve selector to limit to workflow

* use universal

sorry -- there's no way to do this on local atm so it's a bit noisy pushing everything up
  • Loading branch information
SallyMcGrath committed Feb 8, 2024
1 parent a666cfe commit c8a611a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions static/admin/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
backend:
name: git-gateway
branch: main
publish_mode: editorial_workflow
media_folder: static/img
public_folder: /img
collections:
Expand Down
6 changes: 5 additions & 1 deletion static/admin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@
<title>Content Manager</title>
<!-- Include the script that enables Netlify Identity on this page. -->
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
<!-- Decap CMS bugfix, see https://github.com/decaporg/decap-cms/issues/5092 -->
<!-- 1. Decap CMS bugfix, see https://github.com/decaporg/decap-cms/issues/5092 -->
<!-- 2. Decap CMS customisation, see https://github.com/CodeYourFuture/CYF-PD/issues/18 -->
<style>
[data-slate-editor] {
-webkit-user-modify: read-write !important;
}
#nc-root [class*="WorkflowContainer"] [style]:first-of-type {
display: none;
}
</style>
</head>
<body>
Expand Down

0 comments on commit c8a611a

Please sign in to comment.