Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
picardch
picardch.pages.ensimag.fr
Commits
bd6df74f
Commit
bd6df74f
authored
Jun 15, 2020
by
George Cushen
Browse files
feat(cms): add support for projects and make subtitle/summary optional
parent
691e3c16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
7 deletions
+75
-7
static/admin/config.yml
static/admin/config.yml
+75
-7
No files found.
static/admin/config.yml
View file @
bd6df74f
...
...
@@ -81,10 +81,10 @@ collections:
create
:
true
# Allow users to create new documents in this collection
fields
:
# The fields each document in this collection have
-
{
label
:
"
Title"
,
name
:
"
title"
,
widget
:
"
string"
}
-
{
label
:
"
Subtitle"
,
name
:
"
subtitle"
,
widget
:
"
string"
}
-
{
label
:
"
Subtitle"
,
name
:
"
subtitle"
,
widget
:
"
string"
,
required
:
false
}
-
{
label
:
"
Body"
,
name
:
"
body"
,
widget
:
"
markdown"
}
-
{
label
:
"
Publish
this
page
on"
,
name
:
"
date"
,
widget
:
"
datetime"
}
-
{
label
:
"
Summary"
,
name
:
"
summary"
,
widget
:
"
markdown"
}
-
{
label
:
"
Summary"
,
name
:
"
summary"
,
widget
:
"
markdown"
,
required
:
false
}
-
label
:
"
Draft"
name
:
"
draft"
widget
:
"
boolean"
...
...
@@ -125,6 +125,74 @@ collections:
-
{
label
:
Description for screen readers
,
name
:
alt_text
,
widget
:
string
,
required
:
false
}
-
{
label
:
"
Where's
the
focal
point
in
the
image?
Smart,
Center,
TopLeft,
Top,
TopRight,
Left,
Right,
BottomLeft,
Bottom,
BottomRight."
,
name
:
focal_point
,
widget
:
string
,
required
:
false
,
default
:
"
Smart"
}
-
{
label
:
Thumbnail Only
?,
name
:
preview_only
,
widget
:
boolean
,
default
:
false
}
-
name
:
projects
label
:
Projects
label_singular
:
Project
folder
:
'
content/project'
path
:
'
{{slug}}/index'
create
:
true
# Allow users to create new documents in this collection
fields
:
# The fields each document in this collection have
-
{
label
:
"
Title"
,
name
:
"
title"
,
widget
:
"
string"
}
-
{
label
:
"
Subtitle"
,
name
:
"
subtitle"
,
widget
:
"
string"
,
required
:
false
}
-
{
label
:
"
Body"
,
name
:
"
body"
,
widget
:
"
markdown"
,
required
:
false
}
-
{
label
:
"
Publish
this
page
on"
,
name
:
"
date"
,
widget
:
"
datetime"
}
-
{
label
:
"
Summary"
,
name
:
"
summary"
,
widget
:
"
markdown"
,
required
:
false
}
-
label
:
"
Draft"
name
:
"
draft"
widget
:
"
boolean"
default
:
false
-
label
:
"
Featured"
name
:
"
featured"
widget
:
"
boolean"
default
:
false
-
label
:
"
Authors"
name
:
"
authors"
required
:
false
widget
:
"
list"
-
label
:
"
Tags"
name
:
"
tags"
required
:
false
widget
:
"
list"
-
label
:
"
Categories"
name
:
"
categories"
required
:
false
widget
:
"
list"
-
{
label
:
"
External
link
(optional
-
replaces
link
to
project
page)"
,
name
:
"
external_link"
,
widget
:
"
string"
}
-
label
:
Links
name
:
links
required
:
false
widget
:
list
fields
:
-
{
label
:
Link
,
name
:
url
,
widget
:
string
}
-
{
label
:
Link text
,
name
:
name
,
widget
:
string
,
required
:
false
}
-
label
:
Icon pack
name
:
icon_pack
widget
:
select
multiple
:
false
required
:
false
options
:
-
{
label
:
"
None"
,
value
:
"
"
}
-
{
label
:
"
Solid"
,
value
:
"
fas"
}
-
{
label
:
"
Regular"
,
value
:
"
far"
}
-
{
label
:
"
Brand"
,
value
:
"
fab"
}
-
{
label
:
"
Academic"
,
value
:
"
ai"
}
-
{
label
:
"
Icon
(see
https://sourcethemes.com/academic/docs/page-builder/#icons)"
,
name
:
icon
,
widget
:
string
,
required
:
false
}
-
label
:
"
Featured
Image"
name
:
"
image"
required
:
false
widget
:
object
fields
:
-
label
:
"
Upload
an
image
named
`featured.jpg/png`"
name
:
"
filename"
widget
:
"
image"
default
:
"
featured"
media_library
:
config
:
multiple
:
false
-
{
label
:
Caption
,
name
:
caption
,
widget
:
string
,
required
:
false
}
-
{
label
:
Description for screen readers
,
name
:
alt_text
,
widget
:
string
,
required
:
false
}
-
{
label
:
"
Where's
the
focal
point
in
the
image?
Smart,
Center,
TopLeft,
Top,
TopRight,
Left,
Right,
BottomLeft,
Bottom,
BottomRight."
,
name
:
focal_point
,
widget
:
string
,
required
:
false
,
default
:
"
Smart"
}
-
{
label
:
Thumbnail Only
?,
name
:
preview_only
,
widget
:
boolean
,
default
:
false
}
-
name
:
talks
label
:
Talks
label_singular
:
Talk
...
...
@@ -201,7 +269,7 @@ collections:
-
{
label
:
Description for screen readers
,
name
:
alt_text
,
widget
:
string
,
required
:
false
}
-
{
label
:
"
Where's
the
focal
point
in
the
image?
Smart,
Center,
TopLeft,
Top,
TopRight,
Left,
Right,
BottomLeft,
Bottom,
BottomRight."
,
name
:
focal_point
,
widget
:
string
,
required
:
false
,
default
:
"
Smart"
}
-
{
label
:
Thumbnail Only
?,
name
:
preview_only
,
widget
:
boolean
,
default
:
false
}
-
{
label
:
"
Details"
,
name
:
"
body"
,
widget
:
"
markdown"
}
-
{
label
:
"
Details"
,
name
:
"
body"
,
widget
:
"
markdown"
,
required
:
false
}
-
name
:
pages
label
:
"
Pages"
files
:
...
...
@@ -211,8 +279,8 @@ collections:
fields
:
-
{
label
:
"
Title"
,
name
:
"
title"
,
widget
:
"
string"
}
-
{
label
:
"
Publish
Date"
,
name
:
"
date"
,
widget
:
"
datetime"
}
-
{
label
:
"
Subtitle"
,
name
:
"
subtitle"
,
widget
:
"
string"
}
-
{
label
:
"
Summary"
,
name
:
"
summary"
,
widget
:
"
markdown"
}
-
{
label
:
"
Subtitle"
,
name
:
"
subtitle"
,
widget
:
"
string"
,
required
:
false
}
-
{
label
:
"
Summary"
,
name
:
"
summary"
,
widget
:
"
markdown"
,
required
:
false
}
-
label
:
"
Draft"
name
:
"
draft"
required
:
false
...
...
@@ -225,8 +293,8 @@ collections:
fields
:
-
{
label
:
"
Title"
,
name
:
"
title"
,
widget
:
"
string"
}
-
{
label
:
"
Publish
Date"
,
name
:
"
date"
,
widget
:
"
datetime"
}
-
{
label
:
"
Subtitle"
,
name
:
"
subtitle"
,
widget
:
"
string"
}
-
{
label
:
"
Summary"
,
name
:
"
summary"
,
widget
:
"
markdown"
}
-
{
label
:
"
Subtitle"
,
name
:
"
subtitle"
,
widget
:
"
string"
,
required
:
false
}
-
{
label
:
"
Summary"
,
name
:
"
summary"
,
widget
:
"
markdown"
,
required
:
false
}
-
label
:
"
Draft"
name
:
"
draft"
required
:
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment