mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-25 10:50:50 +02:00
feat: add options for branch, local_backend, and publish_mode (editorial flow)
Example for a YAML config: ``` cms: branch: main local_backend: true publish_mode: ``` Close #2124
This commit is contained in:
parent
60d36e66d2
commit
e470c4e2cf
13 changed files with 601 additions and 543 deletions
|
@ -2,6 +2,7 @@ title: Wowchemy Test
|
|||
baseurl:
|
||||
module:
|
||||
imports:
|
||||
- path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms
|
||||
- path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy
|
||||
outputs:
|
||||
home: [HTML, RSS, JSON, WebAppManifest, headers, redirects]
|
||||
|
@ -14,11 +15,6 @@ params:
|
|||
font: native
|
||||
main_menu:
|
||||
enable: false
|
||||
search:
|
||||
engine: 0
|
||||
security:
|
||||
csp:
|
||||
policy:
|
||||
report_only: false
|
||||
cms:
|
||||
branch: master
|
||||
local_backend: true
|
||||
publish_mode:
|
||||
|
|
7
test/content/admin/index.md
Normal file
7
test/content/admin/index.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
# Generate Wowchemy CMS
|
||||
type: wowchemycms
|
||||
outputs:
|
||||
- wowchemycms_config
|
||||
- HTML
|
||||
---
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
widget: blank
|
||||
widget_id: hello
|
||||
headless: true
|
||||
weight: 1
|
||||
design:
|
||||
|
|
|
@ -2,6 +2,10 @@ module github.com/wowchemy/wowchemy-hugo-modules/test
|
|||
|
||||
go 1.15
|
||||
|
||||
require github.com/wowchemy/wowchemy-hugo-modules/wowchemy master
|
||||
require (
|
||||
github.com/wowchemy/wowchemy-hugo-modules/wowchemy main
|
||||
github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms main
|
||||
)
|
||||
|
||||
replace github.com/wowchemy/wowchemy-hugo-modules/wowchemy => ../wowchemy
|
||||
replace github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms => ../wowchemy-cms
|
||||
|
|
15
test/package.json
Normal file
15
test/package.json
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"name": "wowchemy-test",
|
||||
"version": "0.0.1",
|
||||
"description": "Wowchemy Test Build",
|
||||
"main": "",
|
||||
"repository": "https://github.com/wowchemy/wowchemy-hugo-modules",
|
||||
"author": "George Cushen",
|
||||
"license": "MIT",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"view": "hugo server --port 8080 --bind 0.0.0.0",
|
||||
"build": "hugo --minify --cleanDestinationDir --gc --templateMetrics --templateMetricsHints",
|
||||
"cms": "(trap 'kill 0' SIGINT; npx netlify-cms-proxy-server & hugo server --port 8080 --bind 0.0.0.0)"
|
||||
}
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
hugo server -p 1330 --minify --templateMetrics --templateMetricsHints
|
Loading…
Add table
Add a link
Reference in a new issue