Giter Site home page Giter Site logo

Comments (4)

styxlab avatar styxlab commented on May 17, 2024

Welcome @machinelearnear! Cool that you are running your site with this repo. I must disappoint you now: this repo uses Ghost as a headless CMS: this means changing themes (i.e. the head) on Ghost CMS has zero effect here.

Currently this repo only supports one theme which is a Ghost Casper clone.

from next-cms-ghost.

nicolasmetallo avatar nicolasmetallo commented on May 17, 2024

Thanks! It's like I was missing some important bit of info about how Ghost API actually worked there 😄 . For anyone wondering about the same, this is a good place to start.

Any advice/tips on how to port a new theme? I know there's a lot of work already done when you ported Casper.

Thank you again for the great work!

from next-cms-ghost.

styxlab avatar styxlab commented on May 17, 2024

The answer to your question depends on what you want to achieve. A rough guidance would be:

  1. If you want to make minor changes with no or little styling, such as extending the header or footer the best is to add a new option to this repository. Have a look at the customNavigation option to get an idea how this could be done. PRs are welcome.

  2. If you just want to tweak styles but stay close to the original theme, you can simply swap stylesheets under the styles folder. Even better is to add your own themes that only override some parts of the existing screen.css. To get an idea how this can be accomplished have a look at styles/prism.css or styles/toc.css. This repository uses a global theme approach which is namespaced, so it does not conflict with other themes when using this project as part of a larger website.

  3. If you want a completely new theme with different animations, toolbars etc. then you would also need to change React component logic. In this case, I recommend you create your own fork and use this repository as a boilerplate for your own, fully customized version.

from next-cms-ghost.

styxlab avatar styxlab commented on May 17, 2024

Closing as answered. As always, this thread can be re-opened if needed.

from next-cms-ghost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.