diff --git a/_config.yml b/_config.yml index 122aa3b..268ba8c 100755 --- a/_config.yml +++ b/_config.yml @@ -82,7 +82,6 @@ include: - _pages exclude: - - admin/ # Disable Netlify CMS temporarily - Gemfile - Gemfile.lock - node_modules diff --git a/admin/README-CMS.md b/admin/README-CMS.md deleted file mode 100644 index d83d711..0000000 --- a/admin/README-CMS.md +++ /dev/null @@ -1,27 +0,0 @@ -# RUG-Search CMS - -The `/admin` directory contains configuration files for the content management system (CMS) of the RUG-Search website. It allows site admins to manage most content present on the website without having to use Git. - -## Deploying CMS - -This section outlines how to deploy the CMS. - -### CMS on Netlify.com - -This approach uses Netlify's identity service and static website hosting to host the CMS. The website administrator can invite users to the CMS and they can sign up through email or using their GitHub account. - -1. Create an account at [Netlify.com](https://app.netlify.com/signup) - -2. [Deploy the repo](https://docs.netlify.com/get-started/#deploy-a-project-to-netlify) containing the CMS to Netlify. - -3. Navigate to `Site Settings > Identity` for the newly deployed site and enable [Netlify Identity](https://docs.netlify.com/visitor-access/identity/) and [Git Gateway](https://docs.netlify.com/visitor-access/git-gateway/#app) - -4. Manage Identity settings. - - - To enable CMS users to log in with Github, navigate to `Site Settings > Identity > Registration`, and add Github as an external provider. - - - To only enable invited users to accessing the CMS change registration to invite only. - -5. When the page has been successfully deployed you can manage website content by navigating to `/admin` under the netlify deployed site. - -> WARNING: If you have any anti-tracking or AD block extensions the netlify login widget might be blocked, and the page won't load. Make sure to whitelist the domain or disable your extension to use the CMS. diff --git a/admin/config.yml b/admin/config.yml deleted file mode 100644 index 159afc0..0000000 --- a/admin/config.yml +++ /dev/null @@ -1,266 +0,0 @@ -# config.yml -backend: - name: git-gateway - repo: search-rug/search-rug.github.io - branch: main - # TODO: Initalize CMS in js so enviromnent variables can be used. - # Also change `CMS_URL` in admin/index.html when changeing urls below. - identity_url: "https://search-rug.netlify.app/.netlify/identity" - gateway_url: "https://search-rug.netlify.app/.netlify/git" - site_domain: "https://search-rug.netlify.app" -media_folder: "/uploads/miscellaneous" -collections: - - name: "team" - label: "Team" - folder: "_team" - create: true - editor: - preview: false - fields: - - { name: "title", widget: string } - - { name: "position", widget: string } - - name: "image" - label: "avatar" - widget: "image" - media_folder: "/uploads/team-avatars" - allow_multiple: false - required: false - - name: "status" - widget: "object" - fields: - - name: "promoted" - widget: "boolean" - hint: "Appear in home page" - default: false - - name: "former" - widget: "boolean" - hint: "Former group member" - default: false - - name: "group_graduate" - widget: "boolean" - hint: "Graduated PHD student" - default: false - - name: "contact" - widget: "object" - fields: - - { name: "homepage", required: false } - - { name: "email" } - - { name: "phone", required: false } - - { name: "room", required: false } - - name: "social" - widget: "object" - fields: - - { name: "linkedin", required: false } - - { name: "twitter", required: false } - - { name: "mastadon", required: false } - - { name: "github", required: false } - - name: "publications" - widget: "object" - fields: - - { name: "pure", required: false } - - { name: "gscholar", required: false } - - { name: "orcid", required: false } - - { name: "dbpl", required: false } - # TODO: add (research) fields and topics fields - - - name: "news" - label: "News" - folder: "_news" - create: true - editor: - preview: false - fields: - - { name: "title" } - - { name: "keywords", widget: "list" } - - { name: "date", widget: "date" } - - { name: "body", widget: "markdown" } - - - name: "courses" - label: "Courses" - folder: "_courses" - create: true - editor: - preview: false - fields: - - { name: "code", label: "Course Code" } - - { name: "name" } - - { name: "ocasys", label: "Ocasys Link" } - - name: "coordinators" - widget: "relation" - required: false - collection: "team" - value_field: "contact.email" - display_fields: ["title"] - search_fields: ["title"] - multiple: true - - name: "lecturers" - widget: "relation" - required: false - collection: "team" - value_field: "contact.email" - search_fields: ["title"] - display_fields: ["title"] - multiple: true - - name: "external_coordinators" - widget: "list" - required: false - fields: - - { name: "name" } - - { name: "email" } - - name: "external_lecturers" - widget: "list" - required: false - fields: - - { name: "name" } - - { name: "email" } - - - name: "projects" - label: "Research Project" - folder: "_projects" - create: true - editor: - preview: false - fields: - - { name: "title" } - - name: "short" - label: "short description" - widget: "text" - pattern: ["^.{100,350}$", "Must have between 100 and 350 characters."] - - name: "status" - widget: "select" - hint: "The current state of the research project." - options: ["In Progress", "Concluded"] - default: "In Progress" - - name: "archived" - widget: "boolean" - hint: "Archived projects are still visible on website, but is not promoted with its own card component." - - { name: "homepage", required: false } - - name: "logo" - widget: "image" - media_folder: "/uploads/project-logos" - allow_multiple: false - required: false - - name: "body" - widget: "markdown" - required: false - hint: "A longer description of the project. Rendered on a separate page in the style of an article." - - name: "members" - widget: "relation" - collection: "team" - value_field: "contact.email" - search_fields: ["title"] - display_fields: ["title"] - multiple: true - - name: "funding" - widget: "list" - required: false - fields: - - { name: "agency" } - - name: "shortname" - # TODO: correct? funding agency or funding instrument? - hint: "Shortname or acronym for funding agency." - - { name: "number" } - - - name: "sprojects" - label: "Student Project" - folder: "_sprojects" - create: true - editor: - preview: false - fields: - - { name: "title" } - - name: "short" - label: "short description" - widget: "text" - pattern: ["^.{100,350}$", "Must have between 100 and 350 characters."] - - name: "status" - widget: "select" - hint: "The current state of the student project." - options: ["Available", "In Progress", "Concluded"] - default: "Available" - - name: "archived" - widget: "boolean" - hint: "Archived projects are still visible on website, but is not promoted with its own card component." - - { name: "category" } - - name: "keywords" - widget: "list" - hint: "A comma separated list of project keywords. Should give students an intuition for what the project is about." - - name: "types" - label: "suitable for" - widget: "select" - options: ["MSc", "BSc", "MSc Int"] - multiple: true - - name: "supervisors" - widget: "relation" - collection: "team" - value_field: "contact.email" - search_fields: ["title"] - display_fields: ["title"] - multiple: true - - { name: "is_group", widget: "boolean" } - - { name: "posted", widget: "date" } - - name: "body" - widget: "markdown" - required: false - hint: "A longer description of the project. Rendered on a separate page in the style of an article." - - - name: "pages" - label: "Pages" - files: - - name: "index" - label: "Landing" - file: "index.md" - editor: - preview: false - fields: - - { name: "title" } - - { name: "description" } - - name: "intro_image" - widget: "image" - media_folder: "/images/illustrations" - allow_multiple: false - required: false - - { name: "body", widget: "markdown" } - - - name: "team" - label: "Team" - file: "team.md" - editor: - preview: false - fields: - - { name: "title" } - - { name: "description" } - - { name: "body", widget: "markdown" } - - - name: "education" - label: "Education" - file: "education.md" - editor: - preview: false - fields: - - { name: "title" } - - { name: "description" } - - { name: "body", widget: "markdown" } - - - name: "contact" - label: "Contact" - file: "contact.md" - editor: - preview: false - fields: - - { name: "title" } - - { name: "description" } - - { name: "body", widget: "markdown" } - - name: "group_leader" - widget: "object" - fields: - - { name: "show", widget: "boolean" } - - { name: "title" } - - name: "secretariat" - widget: "object" - fields: - - { name: "show", widget: "boolean" } - - { name: "title" } - - { name: "email" } - - { name: "phone" } - - { name: "fax" } diff --git a/admin/index.html b/admin/index.html deleted file mode 100644 index 8b2614b..0000000 --- a/admin/index.html +++ /dev/null @@ -1,24 +0,0 @@ - - - -
- - -