Git Product home page Git Product logo

Comments (7)

markdumay avatar markdumay commented on July 21, 2024 1

I haven't deployed the theme to GitHub pages myself yet, mostly because it does not support configuration of security headers. However, have you tried following Hugo's deployment instructions?

A key difference with the main Hugo site is that Hinode uses npm. The correct build command is npm run build. GitHub provides a starter template.

I'm not sure how familiar you are with GitHub actions. Let me know if you need any further help.

from hinode.

jorisfalter avatar jorisfalter commented on July 21, 2024

Thanks for the reply, I'm pretty much a beginner in Hugo and a self-taught dev overall.

I tried Netlify instead of github, but in that case it always redirects to the demo page https://hinode-demo.markdumay.org/

I wanted to use the theme for a simple blog with some content and pics and figured I could just deploy and start modifying but deploying already proves harder than I thought.

from hinode.

markdumay avatar markdumay commented on July 21, 2024

No worries, Hugo can be pretty intimidating in the beginning. You should adjust baseURL in the file config/default/config.toml too. It probably still points to the demo page of Hinode. You could share your repository if you're still stuck, so I can have a look at it.

I'm working on a more elaborate documentation, but it's still work in progress.

from hinode.

jorisfalter avatar jorisfalter commented on July 21, 2024

Thanks!

This is the Github repository I'm using, it's literally a clone from the original, except that I changed baseURL to https://magical-torrone-3d2095.netlify.app

It seems to break the layout when I deploy to Netlify

Edit: Note, it appends en to the URL. When I manually remove the en it redirects to the demo site.

from hinode.

markdumay avatar markdumay commented on July 21, 2024

I noticed you used the main repository as starting point. Unless you plan to do a lot of customization, I suggest you use the child theme instead. There's button called Use this template to instantiate a repository. The child theme uses a npm reference to the main theme of Hinode, and has far less source files in its repository. It will keep your personal repository more tidy.

Regarding the main repository, the main branch is unstable right now. I'm fixing quite a few issues, but the current version is still in alpha. If you prefer to use the main repository instead of the child repository, I suggest you use the latest stable branch:

git clone --depth 1 --branch v0.7.9 https://github.com/markdumay/hugo-theme-hinode.git
cd hugo-theme-hinode
npm install
npm run start

from hinode.

markdumay avatar markdumay commented on July 21, 2024

I added documentation on how to deploy to Netlify. Hope this helps! I'm closing the issue for now, let me know if you need additional assistance.

from hinode.

jorisfalter avatar jorisfalter commented on July 21, 2024

Cool, thanks a lot for your help!

from hinode.

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.