Giter VIP home page Giter VIP logo

Comments (9)

UnipiNotes avatar UnipiNotes commented on June 15, 2024 1

@makayla-moster I'm pretty sure that you can. I just recommended that way cause that's the "official" way according to the docs. My solution would be to change the _config.yml, specifically the baseurl.

Let's say that your repo has the name note-garden, your baseurl should be /note-garden. But now you will have broken links and in general the assets won't work.

What you have to do is, go to any html layout/include and check the links and assets and make sure they are correctly linked to note-garden. You can easily do that by just applying {{site.baseurl}} in that link.

For example a link that I see in the navbar should be changed to {{site.baseurl}}/posts, it will then correctly point out to /note-garden/posts.

Note: I would first test the site a lot after changing the baseurl and inserting {{site.baseurl}} to links just to make sure that everything works.

from jekyll-garden.github.io.

hfactor avatar hfactor commented on June 15, 2024 1

@makayla-moster : I just forked the repo, created one named sub-notes and it's working fine. (The UI is different as homepage CSS is loading over this sub-domain)

Here is what I did :

  1. Went to the Project page, and forked by clicking "Use this template"
  2. Named it "sub-notes"
  3. Modified config.yml line 23 and 24
baseurl: "/sub-notes" 
url: "" 
  1. Went to Github pages settings, activated Pages.
  2. Finally, modified some markdown, so that Jekyll will trigger and create Github Page environment
  3. Done! (I have CNAME already set, hence it's going to hiran.in/sub-notes)

Try this! :)

from jekyll-garden.github.io.

makayla-moster avatar makayla-moster commented on June 15, 2024 1

@hfactor Thank you! I'll check it out!

from jekyll-garden.github.io.

hfactor avatar hfactor commented on June 15, 2024
  1. Both are fine, what you need is there in the main branch.
  2. Yes
  3. As-is is fine. Github page now supports any branch
  4. Nope. No need.

Check documentation at https://jekyll-garden.github.io/posts/how-to
I will add point 1 to that doc so that it's clear for everyone.

from jekyll-garden.github.io.

makayla-moster avatar makayla-moster commented on June 15, 2024

I'm also having this trouble trying to deploy this as a template from a project repository at makayla-moster.github.io/note-garden.

The theme isn't displaying correctly, is there something I've done incorrectly? I was super hype for this template to work with GH pages and it isn't, unfortunately.

My code is here.

from jekyll-garden.github.io.

UnipiNotes avatar UnipiNotes commented on June 15, 2024

@makayla-moster I think the problem with your setup is that you forked the theme in a Repository called note-garden. In the official how-to of the theme (check here) you can see that it wants you to create a Repository with a specific name yourusername.github.io (in your case it should be makayla-moster.github.io).

After that the theme should work just fine.

from jekyll-garden.github.io.

makayla-moster avatar makayla-moster commented on June 15, 2024

@UnipiNotes so there's no way to host this project outside of yourusername.github.io? I use that for my personal website and would rather keep the two separate.

from jekyll-garden.github.io.

hfactor avatar hfactor commented on June 15, 2024

There are URL-level bugs, as I have hard-coded at most places and baseurl was never considered. This is a bug to be sorted. Ref : Link

from jekyll-garden.github.io.

hfactor avatar hfactor commented on June 15, 2024

Subpath is fixed. Check the latest version!

from jekyll-garden.github.io.

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.