Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Rough test for Netlify CMS #21

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ assets:
plugins:
- jekyll-seo-tag
- jekyll-sitemap
- jekyll-assets
#- jekyll-assets
#- jekyll-multiple-languages-plugin

#languages: ["en", "es"]
Expand Down
47 changes: 47 additions & 0 deletions admin/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
backend:
name: git-gateway
branch: gh-pages # Branch to update (optional; defaults to master)
publish_mode: editorial_workflow
media_folder: "assets/img"
public_folder: "/assets" # The src attribute for uploaded media will begin with /images/uploads

collections:
- name: "projects"
label: "Projects"
folder: "_projects"
create: true
slug: "{{slug}}"
fields:
- {label: "Layout", name: "layout", widget: "hidden", default: "project"}
- {label: "Title", name: "title", widget: "string"}
- {label: "Client", name: "client", widget: "string"}
- {label: "Description", name: "description", widget: "markdown"}
- label: "Screens"
name: "screens"
widget: "list"
field: {label: Image, name: image, widget: image}

# layout: project
# title: Barcelona
# name: Decidim Barcelona
# client: Barcelona City Council
# description: The city of Barcelona is developing its own open source participation platform. We are the responsibles of the UX and design for 2018. We have also designed and developed the accountability module and the global accountability section, which shows all accountability initiatives across the City Council.
# services:
# - ux
# - dev
# - data
# technology:
# - Ruby On Rails
# - Decidim
# img: projects/screens/BCN-Decidim-0.jpg
# screens:
# - projects/screens/BCN-Decidim-1.jpg
# - projects/screens/BCN-Decidim-2.jpg
# - projects/screens/BCN-Decidim-3.jpg
# - projects/screens/BCN-Decidim-4.jpg
# - projects/screens/BCN-Decidim-5.jpg
# - projects/screens/BCN-Decidim-6.jpg
# screen_1: projects/screens/panama-papers-1.jpg
# public_url: https://decidim.barcelona/
# client_url: https://ajuntament.barcelona.cat/
# weight: 3
27 changes: 27 additions & 0 deletions admin/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Content Manager</title>
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>

</head>
<body>
<!-- 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>
if (window.netlifyIdentity) {
window.netlifyIdentity.on("init", user => {
if (!user) {
window.netlifyIdentity.on("login", () => {
document.location.href = "/admin/";
});
}
});
}
</script>

</body>
</html>
Binary file removed img/JPG/BCN-Decidim-1.jpg
Binary file not shown.
Binary file removed img/JPG/GencatPresupuestos-2.jpg
Binary file not shown.
Binary file removed img/JPG/Legislacion-1.jpg
Binary file not shown.
Binary file removed img/JPG/Sencelles-Consultas-2.jpg
Binary file not shown.