zhenyuanzhaothu / academic-kickstart-netlify-cms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Academic Kickstart Netlify CMS

Description

This repository it based on the Academic Theme Hugo. It has been integrated with NetlifyCMS and the following content has been added:

  • Posts
  • Publications
  • Projects
  • Teaching
  • Contact
  • Talks

In addition, pages for the managments of the CMS' sections.

  • Global configuration
  • About
  • Contact
  • Posts
  • Projects
  • Publications
  • Publications selected
  • Tags
  • Teaching

The original template has been modified in order to match with the structure of pictures of Netlify CMS (almost all the changes are related to images path in the partials of the theme)

Instructions

If you want to deploy this in NetlifyCMS easily, follow the next steps:

  1. Deploying this repository in NetlifyCMS

Deploy to Netlify

  1. Enable Identity service and Git Gateway

  2. Add postprocessing script for admin zone access

  • Insert this before end of head:
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
  • Insert this code before end of body:
<script>
  if (window.netlifyIdentity) {
    window.netlifyIdentity.on("init", user => {
      if (!user) {
        window.netlifyIdentity.on("login", () => {
          document.location.href = "/admin/";
        });
      }
    });
  }
</script>
  1. Give access to users

5 Confirm email and set password

  1. Access to your new site admin page with /admin

  2. In this section you can start editing your site

WIP

  • Bugs in the talks section
  • Check carefully all fields

Result

References:

Thanks a lot to :

About

License:MIT License


Languages

Language:HTML 51.1%Language:TeX 25.6%Language:Shell 23.3%