Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
monnaie-libre-fr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
websites
monnaie-libre-fr
Commits
01627c26
Commit
01627c26
authored
4 years ago
by
Emmanuel Salomon
Browse files
Options
Downloads
Patches
Plain Diff
netlify: Added previews + fixes in conifg
parent
6a966cab
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
static/admin/app.css
+3
-0
3 additions, 0 deletions
static/admin/app.css
static/admin/config.yml
+2
-1
2 additions, 1 deletion
static/admin/config.yml
static/admin/index.html
+20
-0
20 additions, 0 deletions
static/admin/index.html
with
25 additions
and
1 deletion
static/admin/app.css
0 → 100644
+
3
−
0
View file @
01627c26
This diff is collapsed.
Click to expand it.
static/admin/config.yml
+
2
−
1
View file @
01627c26
...
@@ -36,7 +36,7 @@ collections:
...
@@ -36,7 +36,7 @@ collections:
preview_path
:
"
{{slug}}"
preview_path
:
"
{{slug}}"
fields
:
fields
:
-
{
label
:
Titre
,
name
:
title
,
widget
:
string
}
-
{
label
:
Titre
,
name
:
title
,
widget
:
string
}
-
{
label
:
Résumé
,
name
:
description
,
widget
:
string
,
hint
:
Le résumé est affiché dans l
a
recherche.
}
-
{
label
:
Résumé
,
name
:
description
,
widget
:
string
,
hint
:
Le résumé est affiché dans l
es résultats de
recherche.
}
-
{
label
:
Contenu
,
name
:
body
,
widget
:
markdown
}
-
{
label
:
Contenu
,
name
:
body
,
widget
:
markdown
}
-
name
:
blog
-
name
:
blog
...
@@ -71,6 +71,7 @@ collections:
...
@@ -71,6 +71,7 @@ collections:
format
:
frontmatter
format
:
frontmatter
folder
:
content/lexique
folder
:
content/lexique
create
:
true
create
:
true
preview_path
:
"
lexique/{{slug}}"
fields
:
fields
:
-
{
label
:
Titre
,
name
:
title
,
widget
:
string
}
-
{
label
:
Titre
,
name
:
title
,
widget
:
string
}
-
{
label
:
Résumé
,
name
:
description
,
widget
:
string
,
hint
:
Le résumé est affiché dans le lexique et dans les bulles d'info.
}
-
{
label
:
Résumé
,
name
:
description
,
widget
:
string
,
hint
:
Le résumé est affiché dans le lexique et dans les bulles d'info.
}
...
...
This diff is collapsed.
Click to expand it.
static/admin/index.html
+
20
−
0
View file @
01627c26
...
@@ -83,5 +83,25 @@
...
@@ -83,5 +83,25 @@
<body>
<body>
<!-- Include the script that builds the page and powers Netlify CMS -->
<!-- Include the script that builds the page and powers Netlify CMS -->
<script
src=
"https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"
></script>
<script
src=
"https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"
></script>
<script>
CMS
.
registerPreviewStyle
(
'
/admin/app.css
'
)
var
PagePreview
=
createClass
({
render
:
function
()
{
var
entry
=
this
.
props
.
entry
return
h
(
'
div
'
,
{},
h
(
'
div
'
,
{
className
:
'
prose
'
},
this
.
props
.
widgetFor
(
'
body
'
))
)
},
})
CMS
.
registerPreviewTemplate
(
'
pages
'
,
PagePreview
)
CMS
.
registerPreviewTemplate
(
'
blog
'
,
PagePreview
)
CMS
.
registerPreviewTemplate
(
'
faq
'
,
PagePreview
)
CMS
.
registerPreviewTemplate
(
'
lexique
'
,
PagePreview
)
</script>
</body>
</body>
</html>
</html>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment